Get Price History
get_price_historyRetrieves historical Yes and No display prices for a single market by slug, using fixed intervals or a custom Unix timestamp range.
Instructions
Returns book-derived Yes and No display prices for one market. Use the market slug as symbol.
Supported fixed profiles:
INTERVAL_1Hwithfidelity=1: approximately one-minute points for the last hourINTERVAL_6Hwithfidelity=1: approximately one-minute points for the last six hoursINTERVAL_1Dwithfidelity=5: five-minute points for the last dayINTERVAL_1Wwithfidelity=180: three-hour points for the last weekINTERVAL_1Mwithfidelity=180: three-hour points for the last 30 daysINTERVAL_ALLwithfidelity=180: three-hour points for newer markets and daily points for longer historiesINTERVAL_LIVEwithfidelity=1: from 15 minutes before the event starts through now
For a custom range, provide both Unix timestamps and use fidelity=1. Custom ranges are intended for short windows of up to 24 hours and return stored observations, which may be irregular or more frequent than once per minute.
longPrice is the Yes display price, normally derived from the best ask. shortPrice is the No display price, normally derived from one minus the best bid. They can sum to more than 1 because they preserve the bid-ask spread; these are not individual trades.
The endpoint supports one market per request. Cache identical responses for at least 30 seconds, stagger refreshes across markets, and observe the 20 requests/second/IP public limit. For live updates after loading history, use the Markets WebSocket.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Query parameters and pagination; use the exact field names shown. |