GET/cached/tokens/chart/{chainName}/rate

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/pancakeswap/cached/tokens/chart/{chainName}/rateCache cached 15s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Historical OHLC exchange-rate candles between two tokens on an EVM chain.

Try this endpoint

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/pancakeswap/cached/tokens/chart/bsc/rate?tokenA=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82&tokenB=0x55d398326f99059ff775485246999027b3197955&period=1D"

Parameters

nameintypedescription
chainNamepathstrrequiredEVM network slug: bsc, ethereum, base, arbitrum, zksync, linea, opbnb, monad, or polygon-zkevm (common aliases such as eth, bnb, arb, or numeric chain IDs are accepted).
example: bsc
tokenAquerystrrequiredBase token contract address.
example: 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
tokenBquerystrrequiredQuote token contract address.
example: 0x55d398326f99059ff775485246999027b3197955
periodquerystroptionalLookback window: 1H, 1D, 1W, 1M, or 1Y.
default: 1D
example: 1D

Response

type: array
pagination: none
sample: {
  "bucket": "str",
  "open": "str",
  "close": "str",
  "high": "str",
  "low": "str"
}