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

Market candles

Returns a stream of candles for specified markets. If you are falling behind (slow client) you will get warning message first, then error message and disconnection will happen.

get
Authorizations
api_keystringRequired

Coin Metrics API key can be specified as ?api_key= query parameter.

Query parameters
marketsstring[]Required

Comma separated list of markets or market patterns like exchange-* or exchange-*-spot or *USDT-future.
Use a corresponding /catalog-all-v2/market-{dataType} endpoint for the full list of supported markets for a given data type.

frequencystringOptional

Candle duration. Supported values are 1m, 5m, 10m, 15m, 30m, 1h, 4h, 1d.

Default: 1mExample: 1m
backfillstring · enumOptional

What data should be sent upon a connection.
By default the latest values are sent just before real-time data.

Default: latestPossible values:
prettybooleanOptional

Human-readable formatting of JSON responses.

Default: false
Responses
200

Candle WebSocket message.

application/json

Information about market candle.

marketstringRequired

Unique name of the market.

timestring · date-timeRequired

The time in ISO 8601 date-time format. Always with nanoseconds precision.

price_openstring · decimalRequired

The opening price of the candle.

price_closestring · decimalRequired

The closing price of the candle.

price_highstring · decimalRequired

The high price of the candle.

price_lowstring · decimalRequired

The low price of the candle.

vwapstring · decimalRequired

The volume-weighted average price of the candle.

volumestring · decimalRequired

The volume of the candle in units of the base asset.

candle_usd_volumestring · decimalRequired

The volume of the candle in USD.

candle_trades_countstring · int64Required

The number of trades used for candle calculation.

cm_sequence_idstringRequired

The monotonically increasing message number, resets on disconnection.

get/timeseries-stream/market-candles

Last updated

Was this helpful?