GET /api/v1/token_mcap_candles/{chain}/{address}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/gmgn/api/v1/token_mcap_candles/{chain}/{address}Cache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing free

Token market-cap OHLCV candlestick history

Parameters

nameintypedescription
chainpathstringrequiredBlockchain slug: sol, eth, base, bsc, tron
default: sol
example: sol
addresspathstringrequiredToken contract or mint address
default: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
example: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
pool_typequerystringoptionalPool aggregation mode
default: tpool
example: tpool
resolutionquerystringoptionalBar resolution
default: 1h
example: 1h
limitqueryintegeroptionalMax candles
default: 100
example: 100

Response

type: object
pagination: none
sample: {
  "_debug_tpool": null,
  "_debug_tpool_desc": "exchange orca not support tpool",
  "list": "list(100)"
}

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/gmgn/api/v1/token_mcap_candles/sol/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263?pool_type=tpool&resolution=1h&limit=100"