GET /dex/dex/v1/chain/chart

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cmc/dex/dex/v1/chain/chartCache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing free

Per-platform DEX chart for a metric, range, and platformIds (platformId plus items).

name=dex_chain_chart. Verified metric=volume, range=30d, platformIds=1. Live row is {platformId, items}. items had 30 points of ts and value.

Parameters

nameintypedescription
metricquerystrrequiredVerified value volume.
example: volume
rangequerystrrequiredVerified value 30d.
example: 30d
platformIdsquerystrrequiredVerified value 1.
example: 1

Response

type: array
pagination: none
sample: {
  "len": "1",
  "[0]": "object",
  "[0].platformId": "1",
  "[0].items": "array[30]",
  "[0].items[0]": "ts,value"
}

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/dex/v1/chain/chart?metric=volume&range=30d&platformIds=1"