Documentation Index
Fetch the complete documentation index at: https://docs.polyhistorical.com/llms.txt
Use this file to discover all available pages before exploring further.
List Markets
Returns markets sorted by start_time descending (newest first).
Request
https://api.polyhistorical.com/v1/markets
Query parameters
Cryptocurrency to query. Supported: BTC, ETH, SOL
Number of results to return (1-100)
Filter by market type: 5m, 15m, 1hr (all coins), 4hr, 24hr (BTC only)
Filter by resolution status. false for active markets, true for resolved.
Filter markets starting after this time. Accepts epoch milliseconds or ISO 8601.
Filter markets starting before this time. Accepts epoch milliseconds or ISO 8601.
Response
Total number of markets matching the filter
Number of results returned
Current pagination offset
Warning message if applicable (null otherwise)
Market object fields
Market interval — 5m, 15m, 1hr (all coins), 4hr, 24hr (BTC only)
Market start time (ISO 8601)
Market end time (ISO 8601)
Coin price at market start (null if not yet recorded)
Coin price at market end (null if unresolved)
CLOB token ID for the “Up” outcome
CLOB token ID for the “Down” outcome
Winning outcome (null if unresolved)
Final trading volume (null if unresolved)
Final liquidity (null if unresolved)
Resolution timestamp (null if unresolved)
Record creation timestamp
Record last updated timestamp
Examples
Get active 5-minute BTC markets
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.polyhistorical.com/v1/markets?coin=BTC&market_type=5m&resolved=false&limit=10"
Response
{
"markets": [
{
"slug": "btc-updown-5m-1774975800",
"winner": "Down",
"market_id": "1793728",
"event_id": "325933",
"market_type": "5m",
"start_time": "2026-03-31T16:50:00Z",
"end_time": "2026-03-31T16:55:00Z",
"coin_price_start": 67701.82777476,
"condition_id": "0x740cfdbafa8d1b1d51729da79b05e641158d3a7c889175dab1eab20a2c92b5cc",
"clob_token_up": "83511279567738325562016865404511480598726292757090195771777541218161914729159",
"clob_token_down": "66091509674921971407227514952521456996907573303653223323107401767726760115252",
"final_volume": 202849.44,
"final_liquidity": 12435.04,
"coin_price_end": 67611.61304387,
"resolved_at": "2026-03-31T16:55:25Z",
"created_at": "2026-03-31T16:50:00.943587Z",
"updated_at": "2026-03-31T17:21:20.768590Z"
}
],
"total": 2289,
"limit": 50,
"offset": 0,
"warning": null
}
Market access limits by plan
| Plan | BTC 5m & 15m | BTC 1h & 4h | BTC 24h | ETH (5m, 15m, 1h) | SOL (5m, 15m, 1h) |
|---|
| Starter (Free) | Last 50 | Last 24 | Last 5 | — | — |
| Pro | All | All | All | All | All |
| Enterprise | All | All | All | All | All |