> ## 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 Price History



## OpenAPI

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

        **Interval options:**
        - `interval=1d` — daily OHLC from market reports (~30 min delay)
        - `interval=latest` — real-time price from trades

        **Data refresh:** ~30 minutes (daily), real-time (latest)
      operationId: kalshi-prices
      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: >-
            Predefined time range: `7d`, `30d`, `90d`, `180d`, or `1y`. Ignored
            when `interval=latest`.
          explode: false
          in: query
          name: time_range
          schema:
            default: 30d
            description: >-
              Predefined time range: `7d`, `30d`, `90d`, `180d`, or `1y`.
              Ignored when `interval=latest`.
            enum:
              - 7d
              - 30d
              - 90d
              - 180d
              - 1y
            examples:
              - 30d
            type: string
        - description: >-
            Data interval: `1h` for hourly, `1d` for daily OHLC, `latest` for
            real-time price from trades
          explode: false
          in: query
          name: interval
          schema:
            default: 1d
            description: >-
              Data interval: `1h` for hourly, `1d` for daily OHLC, `latest` for
              real-time price from trades
            enum:
              - 1h
              - 1d
              - latest
            examples:
              - 1d
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseKalshiPricePoint'
          description: OK
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataAPIError'
          description: Error
      security:
        - AccessToken: []
components:
  schemas:
    DataResponseKalshiPricePoint:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataResponseKalshiPricePoint.json
          format: uri
          readOnly: true
          type: string
        data:
          items:
            $ref: '#/components/schemas/KalshiPricePoint'
          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
    KalshiPricePoint:
      additionalProperties: false
      properties:
        high:
          description: Highest price as probability (0-1)
          format: double
          type: number
        low:
          description: Lowest price as probability (0-1)
          format: double
          type: number
        open:
          description: Opening price as probability (0-1). Present for daily interval only.
          format: double
          type: number
        side_a:
          $ref: '#/components/schemas/KalshiPriceSide'
          description: Yes outcome price data (close price for daily/hourly)
        side_b:
          $ref: '#/components/schemas/KalshiPriceSide'
          description: No outcome price data (close price for daily/hourly)
        timestamp:
          description: >-
            Unix timestamp in seconds (midnight UTC for daily, hour start for
            hourly, trade time for latest)
          format: int64
          type: integer
      required:
        - timestamp
        - side_a
        - side_b
        - high
        - low
      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
    KalshiPriceSide:
      additionalProperties: false
      properties:
        label:
          description: 'Outcome label: `Yes` or `No`'
          type: string
        price:
          description: Price as probability (0-1)
          format: double
          type: number
      required:
        - label
        - price
      type: object

````