GET /coins/{id}/contract/{contract_address}/market_chart

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/coingecko/coins/{id}/contract/{contract_address}/market_chartCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Historical price, market cap and volume series for a token contract address.

Parameters

nameintypedescription
idpathstrrequiredAsset platform id.
default: ethereum
example: ethereum
contract_addresspathstrrequiredToken contract address.
example: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
vs_currencyquerystrrequiredQuote currency.
default: usd
example: usd
daysquerystr
1 | 7 | 14 | 30 | 90 | 180 | 365
requiredLook-back window in days.
default: 7
example: 7

Response

type: object
data key: prices
pagination: none
sample: {
  "prices": "array[169]",
  "market_caps": "array[169]",
  "total_volumes": "array[169]"
}

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/coingecko/coins/ethereum/contract/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/market_chart?vs_currency=usd&days=7"