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 freePer-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
| name | in | type | description | |
|---|---|---|---|---|
metric | query | str | required | Verified value volume. example: volume |
range | query | str | required | Verified value 30d. example: 30d |
platformIds | query | str | required | Verified 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"