> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simmer.markets/llms.txt
> Use this file to discover all available pages before exploring further.

# Kalshi Quote

> Get an unsigned Kalshi transaction for BYOW trading.

Flow: Client calls /quote → signs locally → calls /submit with signed tx.
The SDK handles this automatically when SOLANA_PRIVATE_KEY is set.



## OpenAPI

````yaml /openapi.json post /api/sdk/trade/kalshi/quote
openapi: 3.1.0
info:
  title: Simmer API
  description: Agent-native trading infrastructure for prediction markets.
  version: 1.0.0
servers:
  - url: https://api.simmer.markets
security: []
paths:
  /api/sdk/trade/kalshi/quote:
    post:
      summary: Kalshi Quote
      description: >-
        Get an unsigned Kalshi transaction for BYOW trading.


        Flow: Client calls /quote → signs locally → calls /submit with signed
        tx.

        The SDK handles this automatically when SOLANA_PRIVATE_KEY is set.
      operationId: api_sdk_kalshi_quote_api_sdk_trade_kalshi_quote_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KalshiQuoteRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KalshiQuoteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    KalshiQuoteRequest:
      properties:
        market_id:
          type: string
          title: Market Id
        side:
          type: string
          title: Side
        amount:
          type: number
          title: Amount
          default: 0
        shares:
          type: number
          title: Shares
          default: 0
        action:
          type: string
          title: Action
          default: buy
        wallet_address:
          type: string
          title: Wallet Address
      type: object
      required:
        - market_id
        - side
        - wallet_address
      title: KalshiQuoteRequest
      description: Request for Kalshi BYOW quote (unsigned transaction).
    KalshiQuoteResponse:
      properties:
        success:
          type: boolean
          title: Success
        transaction:
          anyOf:
            - type: string
            - type: 'null'
          title: Transaction
        quote_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Quote Id
        in_amount:
          anyOf:
            - type: number
            - type: 'null'
          title: In Amount
        out_amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Out Amount
        price:
          anyOf:
            - type: number
            - type: 'null'
          title: Price
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      required:
        - success
      title: KalshiQuoteResponse
      description: Response with unsigned Kalshi transaction.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````