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

# Market Price History

> Price time-series for a specific market with configurable lookback period



## OpenAPI

````yaml GET /api/v1/markets/{platform}/{market_id}/history
openapi: 3.0.3
info:
  title: EventGraph API
  description: >-
    Unified prediction market data across Polymarket, Kalshi, Limitless, and
    OpinionTrade.
  version: 1.0.0
  contact:
    name: EventGraph
    url: https://eventgraph.ai
    email: info@eventgraph.ai
servers:
  - url: https://app.eventgraph.ai
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/markets/{platform}/{market_id}/history:
    get:
      tags:
        - Markets
      summary: Market Price History
      description: >-
        Price time-series for a specific market. Returns snapshots with
        yes_price and volume.
      operationId: getMarketHistory
      parameters:
        - name: platform
          in: path
          required: true
          schema:
            type: string
            enum:
              - polymarket
              - kalshi
              - limitless
              - opiniontrade
        - name: market_id
          in: path
          required: true
          schema:
            type: string
        - name: hours
          in: query
          schema:
            type: integer
            default: 24
            minimum: 1
            maximum: 720
          description: Hours of history (max 30 days)
      responses:
        '200':
          description: Price history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          description: Invalid or missing API key
        '403':
          description: Endpoint not available on your tier
components:
  schemas:
    Envelope:
      type: object
      properties:
        data:
          description: Response payload
        timestamp:
          type: string
          format: date-time
        meta:
          type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your EventGraph API key (eg_live_...)

````