K-line candlestick and OHLCV price data for DEX pairs. This category includes 2 endpoints:
- /v1/k-line/points - Get K-line Points
- /v1/k-line/candles - Get K-line Candles
Get K-line points
Get K-line price points for a token.
Response Format: Each point is an array with 3 elements:
- [0] price: Token price
- [1] volume: Trading volume
- [2] timestamp: UNIX timestamp (seconds)
Example: [[1.23, 50000, 1705363200], ...]
query Parameters
platformPlatform name or id
addressToken or pool address
intervalKline interval: 1s/5s/30s/1min/3min/5min/15min/30min/1h/2h/4h/6h/8h/12h/1d/3d/1w/1m
fromStart timestamp (UNIX epoch)
toEnd timestamp (UNIX epoch)
unitKline unit: usd, native, quote
limitNumber of points to load
pmKline type: p (price), m (marketcap)
Headers
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Get K-line points › Responses
OK
Get K-line candles
Get K-line candle (OHLCV) data for a token.
Response Format: Each candle is an array with 7 elements:
- [0] open: Opening price
- [1] high: Highest price
- [2] low: Lowest price
- [3] close: Closing price
- [4] volume: Trading volume
- [5] timestamp: UNIX timestamp (seconds)
- [6] traders: Number of unique traders
Example: [[1.23, 1.45, 1.20, 1.40, 50000, 1705363200, 128], ...]
query Parameters
platformPlatform name or id
addressToken or pool address
intervalKline interval: 1s/5s/30s/1min/3min/5min/15min/30min/1h/2h/4h/6h/8h/12h/1d/3d/1w/1m
fromStart timestamp (UNIX epoch)
toEnd timestamp (UNIX epoch)
unitKline unit: usd, native, quote
limitNumber of candles to load
pmKline type: p (price), m (marketcap)
Headers
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Get K-line candles › Responses
OK