v32

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-076085232.1 KB
Trading

Get Historical Prices

Retrieve historical price data for a specific market with configurable time intervals

get/markets/{slug}/historical-price

Path parameters

slugstring required
Example:presidential-election-2024

Market slug identifier

Query parameters

tostring
Example:2024-01-31T23:59:59Z

End date for historical data

fromstring
Example:2024-01-01T00:00:00Z

Start date for historical data

interval'1h' | '6h' | '1d' | '1w' | '1m' | 'all'

Time interval for data points

Response

Historical price data

titlestring

Example response

[
  {
    "title": "YES Token",
    "prices": [
      {
        "price": 0.75,
        "timestamp": "2024-01-15T10:30:00Z"
      }
    ]
  }
]