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

# Kalshi Trades



## OpenAPI

````yaml openapi.json GET /gateway/v1/prediction-market/kalshi/trades
openapi: 3.1.0
info:
  title: Hermod
  version: 0.0.1
servers:
  - url: https://api.asksurf.ai
security: []
paths:
  /gateway/v1/prediction-market/kalshi/trades:
    get:
      tags:
        - Prediction Market
      summary: Kalshi Trades
      description: |-
        Returns individual trade records for a Kalshi market.

        **Filters:** `taker_side`, `min_contracts`, and date range.

        **Sort:** `timestamp` or `num_contracts`.

        **Data refresh:** real-time
      operationId: kalshi-trades
      parameters:
        - description: Market ticker identifier
          explode: false
          in: query
          name: ticker
          required: true
          schema:
            description: Market ticker identifier
            examples:
              - KXBTCD-26MAR31-B99999
            type: string
        - description: 'Filter by taker side: `yes` or `no`'
          explode: false
          in: query
          name: taker_side
          schema:
            description: 'Filter by taker side: `yes` or `no`'
            enum:
              - 'yes'
              - 'no'
            examples:
              - 'yes'
            type: string
        - description: Minimum notional volume in USD (each contract = $1)
          explode: false
          in: query
          name: min_amount
          schema:
            description: Minimum notional volume in USD (each contract = $1)
            examples:
              - 10000
            format: int64
            minimum: 0
            type: integer
        - description: >-
            Start of time range. Accepts Unix seconds (`1704067200`) or date
            string (`2024-01-01`)
          explode: false
          in: query
          name: from
          schema:
            description: >-
              Start of time range. Accepts Unix seconds (`1704067200`) or date
              string (`2024-01-01`)
            examples:
              - '2024-01-01'
            type: string
        - description: >-
            End of time range. Accepts Unix seconds (`1706745600`) or date
            string (`2024-02-01`)
          explode: false
          in: query
          name: to
          schema:
            description: >-
              End of time range. Accepts Unix seconds (`1706745600`) or date
              string (`2024-02-01`)
            examples:
              - '2024-02-01'
            type: string
        - description: Field to sort results by
          explode: false
          in: query
          name: sort_by
          schema:
            default: timestamp
            description: Field to sort results by
            enum:
              - timestamp
              - notional_volume_usd
            examples:
              - timestamp
            type: string
        - description: Sort order
          explode: false
          in: query
          name: order
          schema:
            default: desc
            description: Sort order
            enum:
              - asc
              - desc
            examples:
              - desc
            type: string
        - description: Results per page
          explode: false
          in: query
          name: limit
          schema:
            default: 50
            description: Results per page
            examples:
              - 50
            format: int64
            maximum: 500
            minimum: 1
            type: integer
        - description: Pagination offset
          explode: false
          in: query
          name: offset
          schema:
            default: 0
            description: Pagination offset
            examples:
              - 0
            format: int64
            minimum: 0
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseKalshiTrade'
          description: OK
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataAPIError'
          description: Error
      security:
        - AccessToken: []
components:
  schemas:
    DataResponseKalshiTrade:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataResponseKalshiTrade.json
          format: uri
          readOnly: true
          type: string
        data:
          items:
            $ref: '#/components/schemas/KalshiTrade'
          type:
            - array
            - 'null'
        meta:
          $ref: '#/components/schemas/OffsetMeta'
      required:
        - data
        - meta
      type: object
    DataAPIError:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataAPIError.json
          format: uri
          readOnly: true
          type: string
        error:
          $ref: '#/components/schemas/DataAPIErrorDetail'
      required:
        - error
      type: object
    KalshiTrade:
      additionalProperties: false
      properties:
        market_ticker:
          description: Unique market ticker identifier
          type: string
        no_price:
          description: No outcome price as probability (0-1)
          format: double
          type: number
        notional_volume_usd:
          description: Notional volume in USD (each contract = $1)
          format: int64
          type: integer
        taker_side:
          description: 'Taker side: `yes` or `no`'
          type: string
        timestamp:
          description: Unix timestamp in seconds
          format: int64
          type: integer
        trade_id:
          description: Unique trade identifier
          type: string
        yes_price:
          description: Yes outcome price as probability (0-1)
          format: double
          type: number
      required:
        - timestamp
        - trade_id
        - market_ticker
        - taker_side
        - yes_price
        - no_price
        - notional_volume_usd
      type: object
    OffsetMeta:
      additionalProperties: false
      properties:
        cached:
          description: Whether this response was served from cache
          type: boolean
        credits_used:
          description: Credits deducted for this request
          format: int64
          type: integer
        limit:
          description: Maximum number of items returned in this response
          format: int64
          type: integer
        offset:
          description: Number of items skipped (pagination offset)
          format: int64
          type: integer
        total:
          description: >-
            Total number of matching items (before pagination). Omitted when
            total is unknown.
          format: int64
          type: integer
      required:
        - limit
        - offset
        - credits_used
        - cached
      type: object
    DataAPIErrorDetail:
      additionalProperties: false
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object

````