Skip to main content
GET
Fetch OHLCV candles for a single contract

Authorizations

X-Client-Id
string
header
required

Credential client id (kairos_ck_...). Must be sent together with X-Api-Key and X-Api-Secret.

X-Api-Key
string
header
required

64-char hex API key.

X-Api-Secret
string
header
required

64-char hex API secret.

Query Parameters

provider
string
required

Venue identifier, matched case-insensitively against the live provider registry (e.g. kalshi, polymarket). Unknown providers return 400.

contract_id
string
required

Provider-specific contract/market/token identifier. Whitespace is trimmed; empty or >128 chars returns 400.

Required string length: 1 - 128
timeframe_seconds
enum<integer>
required

Candle bucket width in seconds. FastAPI first enforces >= 1; the handler then rejects any value not exactly one of [1, 60, 300, 900, 3600, 14400, 86400] (1s, 1m, 5m, 15m, 1h, 4h, 1d) with 400.

Available options:
1,
60,
300,
900,
3600,
14400,
86400
start
string<date-time>
required

Window start, ISO 8601 (any offset; normalized to UTC internally). Unparseable values return 400.

end
string<date-time>
required

Window end, ISO 8601. Must be strictly after start (400 otherwise).

outcome
integer | null

Zero-based outcome index for multi-outcome markets. Omitted/null is treated as 0 (the first/primary outcome). An index invalid for the contract's outcome count returns 400.

Required range: x >= 0
rebuild
boolean
default:false

When true, bypasses the cache and forces a fresh fetch/rebuild.

Response

OHLCV series for the requested window.

candles
object[]
required