Identifiers
Discovery objects include both anid and a slug. History routes accept either on {id_or_slug}.
Persist the exact
id or slug you used, plus the timestamp when you built the universe. Discovery results change as markets open and resolve. If the universe drifts, backtests are not comparable.{token_id}:
GET /v1/tokens/{token_id}/pricesGET /v1/tokens/{token_id}/books
Timestamps
Keep the pipeline in UTC.- Discovery date filters use ISO 8601 timestamps.
- History
start_tsis inclusive.end_tsis exclusive. - Both accept ISO 8601 (
2025-09-01T00:00:00Z) or Unix seconds (1756684800). - History rows expose
tas ISO 8601.
Resolutions
History endpoints requireresolution. Allowed values: 1m, 10m, 1h, 6h, 1d.
Your plan’s finest allowed resolution comes back on
GET /v1/usage as limits.granularity_allowed. Requesting a finer bucket returns 403.
What each history family is for
- Prices — token probability from
0.0to1.0. Field name isp. - Metrics — market-level
volume,liquidity, andspread. - Books —
bidsandasksas[price, size]arrays, best level first.