Candles
Definition
Candles consist of summary statistics derived from individual trades that describe the trading activity of a market or pair over an interval of time.
Details
Coin Metrics engineers several statistics based on trades data that occurred over an interval of time: opening price, high price, low price, close price, volume-weighted average price, total volume in base asset units, total volume in U.S. dollars, and number of trades in the interval**.**
Candles are generated at regular time intervals and at a time granularity that is suitable for charting and analysis. For instance, several technical analysis indicators can be calculated using data in candles format.
We produce our candles at 1m
, 5m
, 10m
, 15m
, 30m
, 1h
, 4h
, 1d
intervals. Our candles are calculated directly from our trades data. We construct gapless candles which means that if there are no trades in a candle interval, we fill forward candles through time, setting the open, high, low, and close to the close of the previous candle, setting the vwap to the vwap of the previous candle, and setting the volume to zero.
Coin Metrics calculates candles for spot and future markets from exchanges that are listed on our exchange coverage universe.
API Endpoints
Candles can be accessed using the timeseries/market-candles
or timeseries/pair-candles
endpoint.
Example
Market Candles
An sample of the candles data from the coinbase-btc-usd-spot
market from our /timeseries/market-candles
API endpoint is provided below.
time
: The time of the beginning of the candle interval in ISO 8601 date-time format.\market
: The id of the market. Market ids use the following naming convention:exchangeName-baseAsset-quoteAsset-spot
for spot markets,exchangeName-futuresSymbol-future
for futures markets, andexchangeName-optionsSymbol-option
for options markets.price_open
: The opening price of the candle.\price_high
: The high price of the candle.\price_low
: The low price of the candle.\price_close
: The close price of the candle.\vwap
: The volume-weighted average price of the candle.\volume
: The volume of the candle in units of the base asset.\candle_usd_volume
: The volume of the candle in units of U.S. dollars. \candle_trades_count
: The number of trades in the candle interval.
Pair Candles
An sample of the pair candles data for the btc-usd
pair from our /timeseries/pair-candles
API endpoint is provided below.
time
: The time of the beginning of the candle interval in ISO 8601 date-time format.\pair
: The id of the pair. \price_open
: The opening price of the candle.\price_high
: The high price of the candle.\price_low
: The low price of the candle.\price_close
: The close price of the candle.
Release History
CM MDF v1.0 on April 2020: Added candles for all spot markets on major exchanges. CM MDF v2.0 on December 9, 2019: Added candles for spot markets on Binance.US. Added candles for futures markets on BitMEX and Huobi. \
CM MDF v2.1 on May 5, 2020: Added candles for spot markets on Kucoin and FTX. Added candles for futures markets on Deribit, OKEx, Binance, FTX, and Bitfinex. \
CM MDF v2.2 on December 2, 2020: Added candles for futures markets on bitFlyer and Kraken. \
CM MDF v2.3 on April 25, 2021: Added candles for spot markets on LMAX. Added candles for futures markets on CME and Bybit. \
CM MDF v2.4 on September 1, 2021: Extended candles data for Ethereum futures markets on CME.
Known Data Issues
Candles data is filled forward longer than needed for markets that are delisted. We are working on a future upgrade to our candles that will correct this.
Availability
The previous 24 hours of trades data is available through our community API. Community data is available via HTTP API only and is limited to 10 API requests per 6 seconds per IP address. All of our trades data is available through our professional API with higher rate limits. The professional API supports trades data through both our HTTP API and websocket API.
Our coverage can be found by querying our /catalog/markets
or /catalog-all/markets
API endpoints. Alternatively, you can query our /catalog/exchanges
or /catalog-all/exchanges
API endpoints which contain the same information but organized by exchange. See our coverage pages:
Last updated