GET /dex/u-kline/v1/k-line/candles

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cmc/dex/u-kline/v1/k-line/candlesCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing free

Candles for a platform and token address, as arrays of 7 unlabeled numbers.

name=dex_candles. platform=Solana with a capital S. interval is required (platform+address alone answers an edge 502); limit is optional and 10 keeps the row set bounded. List of 7-number arrays. Index 5 is a millisecond timestamp. Sample row [103.812, 103.812, 101.968, 101.968, 3.059, 1792047600000, 1].

Parameters

nameintypedescription
platformquerystrrequiredCapital S. Verified value Solana.
example: Solana
addressquerystrrequiredToken address. Wrapped SOL So11111111111111111111111111111111111111111 is the verified sample.
example: So11111111111111111111111111111111111111111
intervalquerystrrequiredBucket size. Accepted tokens differ by route; use this route's verified example.
example: 1h
unitquerystroptionalCandle unit. No verified value is recorded.
pmquerystroptionalCandle query flag. No verified value is recorded.
toquerystroptionalWindow end. No verified value is recorded for this param.
limitquerystroptionalMaximum rows to return.
example: 10

Response

type: array
pagination: none
sample: {
  "len": "10",
  "[0]": "[106.60033308541604, 106.98048821588908, 106.60033308541604, 106.98048821588908, 593.2619606813402, 1791936000000, 5]",
  "[0].len": "7"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cmc/dex/u-kline/v1/k-line/candles?platform=Solana&address=So11111111111111111111111111111111111111111&interval=1h&limit=10"