get-ohlc
Get OHLC candlestick data
Returns OHLC (open/high/low/close) candlestick data for a specific outcome token over a given time range and bucket interval. Provide token ID or outcome index (not both). Payout fields are included for resolved markets.
get/api/v1/market-data/ohlc
Request
- Base URLhttps://rest.ft.42.space
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
marketstring required
Market contract address
token_idstring
Outcome token ID (provide token_id or outcome_index, not both)
outcome_indexinteger
Outcome index, 0-based (provide token_id or outcome_index, not both)
interval'1s' | '10s' | '1m' | '3m' | '30m' | '2h' | '6h' | '12h' | '1d' required
Candle bucket interval
start_tsinteger
Start unix timestamp (default: 24h before end_ts)
end_tsinteger
End unix timestamp (default: now)
limitinteger
Max data points returned (default 500, max 5000)
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.