Skip to main content
GET
/
price-history
Get price history for markets
curl --request GET \
  --url https://api-v2.polyrouter.io/price-history \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "timestamp": 1700000000,
      "price": {
        "close": 0.65,
        "open": 0.6,
        "high": 0.7,
        "low": 0.55
      },
      "platform": "kalshi",
      "marketId": "KXELONMARS-99",
      "volume": 10000,
      "openInterest": 5000,
      "bidAsk": {
        "bid": {
          "close": 0.65,
          "open": 0.6,
          "high": 0.7,
          "low": 0.55
        },
        "ask": {
          "close": 0.65,
          "open": 0.6,
          "high": 0.7,
          "low": 0.55
        }
      },
      "outcomeId": "yes"
    }
  ],
  "meta": {
    "total_points": 500,
    "platforms": [
      "polymarket",
      "kalshi"
    ],
    "time_range": {
      "start": 1700000000,
      "end": 1700100000
    },
    "interval": "1h",
    "request_time": 250,
    "cache_hit": true,
    "data_freshness": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Query Parameters

market_ids
string
required

Comma-separated list of market IDs (max 10)

Example:

"524153,KXELONMARS-99"

start_ts
string
required

Start timestamp (Unix seconds)

Example:

"1700000000"

end_ts
string
required

End timestamp (Unix seconds)

Example:

"1700100000"

interval
enum<string>

Time interval in minutes. Supported: 1 (1 minute), 60 (1 hour), 1440 (1 day)

Available options:
1,
60,
1440
Example:

"60"

limit
string

Maximum number of points to return (max 5000)

Example:

"1000"

Response

Price history data

data
object[]
required
meta
object
required