polymarket_get_snapshots
Historical order-book snapshots (time series) for one Polymarket market. Use interval to downsample and include_orderbook for the full ladder. History depth is gated by plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | No | Crypto asset. Every account plan reaches all seven; only the keyless demo surface is BTC-only. | btc |
| fill | No | ffill returns ONE ROW PER BUCKET for the whole window, carrying the last captured book into buckets that held no capture. Each row then carries `filled` (0 = a capture, 1 = carried forward) and `as_of_ts`, the moment that book was recorded. Requires `interval`. Without it, `interval` returns only the buckets that held a capture — a short series means the market is quoted infrequently, not that data is missing. | |
| limit | No | Page size (1–1000). | |
| cursor | No | Opaque pagination cursor from a previous response's pagination.next_cursor. | |
| end_time | No | End of time as ms-epoch or ISO-8601. History is clamped to your plan's window. | |
| interval | No | Downsample bucket — 30s, 1m, 5m, 1h, up to 1d. Returns the newest book in each bucket. Omit for every recorded book change. | |
| market_id | Yes | Market id from polymarket_search_markets. | |
| start_time | No | Start of time as ms-epoch or ISO-8601. History is clamped to your plan's window. | |
| include_orderbook | No | Include the full bid/ask ladder per snapshot (default top-of-book). |