Get Candles
Fetch OHLCV candles from the Polymarket CLOB /prices-history endpoint.
The CLOB returns price history keyed by token_id, not condition_id.
This endpoint resolves the token_id from the cached price data.
If outcome is omitted, the first available outcome is used automatically
(supports binary Yes/No and categorical Up/Down markets).
Sub-hour intervals (1m/5m/15m) are not supported because
Polymarket’s CLOB /prices-history upstream is hourly-granular —
we can’t reconstruct 5-minute buckets from 1-hour samples. The
funded-key audit on 2026-05-07 caught these silently returning
[]; we now 400 explicitly so SDK porters fail loudly instead of
rendering empty charts.
Authorizations
Issue from /v1/keys (or admin-issued for enterprise tier).
Headers
Your PolySimulator API key
Polymarket-CLOB-compat alias for X-API-Key (underscore form). SDK clients ported from Polymarket can authenticate without changing header names. X-API-Key takes precedence when both are provided.
PM-CLOB-compat dashed-form alias for X-API-Key. Same value semantics as POLY_API_KEY but with HTTP-conventional dash separators. Audit P1 (staging audit 2026-05-16 0817 PR #1296): the per-tier middleware accepts both spellings but the auth dependency originally only matched the underscore form — now both work end-to-end.
PM-CLOB-compat: Authorization: Bearer ps_live_... (or ps_test_...) is accepted as an alias for X-API-Key so py-clob-client and other ported SDKs authenticate without header name changes. Bearer JWTs are NOT accepted here — use the dashboard-auth endpoints for those.
Path Parameters
Query Parameters
Outcome label (e.g. Yes, No, Up, Down). Defaults to first available outcome.
Interval: 1h, 6h, 1d, 1w, max