GET
/v1/markets/:id/snapshotsGet Market Snapshots
Paginated time-series orderbook snapshots for a specific market. Rows carry category/subcategory/label for identity; crypto and crypto_price appear only on crypto-category markets (omitted on sports/weather/equities — the underlying spot price only exists for crypto). Raw rows (default and includebook modes) also carry four data-fidelity fields — event_timestamp (Polymarket emit time), capture_timestamp (our store time; the difference is ingestion latency), sequence_number (monotonic per-stream counter for gap detection) and crypto_price_age_ms (spot-price staleness, -1 when untracked) — matching /api/snapshot?includebook=true. These are NOT present on interval (OHLC candle) rows.
Path Parameters
idstringrequiredMarket ID (conditionId)
Query Parameters
sidestringToken side filter
fromstringStart timestamp
tostringEnd timestamp
intervalstringDownsample to OHLC candles instead of raw rows. Each bucket returns open/high/low/close/vwap_mid plus avg spread, depth and a snapshot_count — one candle per (bucket × token_side). Turns a 200k-row pull into a few thousand rows: a 4-day market at 500ms cadence goes from ~89k rows (18 pages) to ~1.5k candles in a single call.
limitnumberdefault:500Max rows (default 500, max 5000)
offsetnumberdefault:0Pagination offset
includebookbooleandefault:falseInclude full bid/ask arrays in each row. Off by default for payload size; turn on when you need depth.
orderstringdefault:descSort by timestamp: asc/oldest (chronological) or desc/newest (reverse). Defaults to desc.
contextstringSet to "replay" to apply free-tier replay quota gating
Response
200401403404500
Successful Response
Code Snippet
curl -X GET "https://api.resolvedmarkets.com/v1/markets/:id/snapshots" \ -H "X-API-Key: YOUR_API_KEY"
200
{
"market_id": "0x...",
"total": 5400,
"limit": 100,
"offset": 0,
"data": [
{
"timestamp": "2026-03-02 15:30:00.123",
"token_side": "UP",
"best_bid": 0.52,
"best_ask": 0.53,
"event_timestamp": "2026-03-02 15:30:00.081",
"capture_timestamp": "2026-03-02 15:30:00.123",
"sequence_number": 148213,
"crypto_price_age_ms": 42
}
]
}
