get_history
Get historical OHLCV-style prediction market candles over a time range, including the latest stored depth snapshot within each bucket when available. Can also export CSV text or base64-encoded Parquet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Inclusive ISO 8601 end timestamp | |
| from | Yes | Inclusive ISO 8601 start timestamp | |
| venue | No | Venue filter, e.g. polymarket or kalshi | |
| format | No | Return JSON candles, CSV text payload, or base64-encoded Parquet payload | json |
| market_id | No | Platform-specific market ID | |
| granularity | No | Bucket size for history candles | 1d |
| canonical_id | No | Cross-venue canonical market ID |