Skip to main content

Candles

The CANDLES channel streams OHLCV candlestick data for a market at a chosen interval. Use it for charts and historical-style series. Candles with no activity are not sent.

Subscribe

Send a SUBSCRIBE with a unique channelUuid, "channel": "CANDLES", the market symbol, and interval (candle length in minutes).

{
"action": "SUBSCRIBE",
"channel": "CANDLES",
"channelUuid": "your-unique-uuid",
"symbol": "ETH-USD",
"interval": 60
}
FieldTypeDescription
channelUuidUUIDUnique id for this subscription
symbolStringMarket to receive candles for
intervalLongCandle interval in minutes (e.g. 1, 60)

Response

There is no initial snapshot. After you subscribe, the server sends one message per candle when that interval has ended and there was activity. Intervals are aligned to the start of the day (UTC), or to the market day for 24h candles (market day start 6:30 AM PT).

Example message:

{
"channelUuid": "61d3f4ec-75c9-4880-bc72-ccfd4e389a06",
"date": "2023-12-13T20:00:00Z",
"open": "2071.00",
"close": "2072.00",
"low": "2071.00",
"high": "2073.00",
"volume": "2.23",
"marketId": "ETH-USD"
}
FieldTypeDescription
channelUuidUUIDMatches your subscription
dateStringStart of the candle interval (ISO 8601)
openStringFirst price in the interval
closeStringLast price in the interval
low / highStringLowest / highest price in interval
volumeStringQuantity traded in the interval
marketIdStringMarket identifier