Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get OHLC candlestick data

GET /api/v1/market-data/ohlc

Get OHLC candlestick data

get

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.

Query parameters
marketstringRequired

Market contract address

token_idstringOptional

Outcome token ID (provide token_id or outcome_index, not both)

outcome_indexintegerOptional

Outcome index, 0-based (provide token_id or outcome_index, not both)

intervalstring · enumRequired

Candle bucket interval

Possible values:
start_tsintegerOptional

Start unix timestamp (default: 24h before end_ts)

end_tsintegerOptional

End unix timestamp (default: now)

limitintegerOptional

Max data points returned (default 500, max 5000)

Responses
200

OK

application/json
get/api/v1/market-data/ohlc
GET /api/v1/market-data/ohlc?market=text&interval=1s HTTP/1.1
Host: rest.ft.42.space/
Accept: */*
{
  "data": [
    {
      "c": 1,
      "closeCollateral": 1,
      "closeMintedQuantity": 1,
      "h": 1,
      "l": 1,
      "o": 1,
      "openCollateral": 1,
      "openMintedQuantity": 1,
      "payoutClose": 1,
      "payoutHigh": 1,
      "payoutLow": 1,
      "payoutMid": 1,
      "payoutOpen": 1,
      "t": 1,
      "v": 1
    }
  ]
}

Last updated