GET/cached/tokens/chart/{chainName}/rate
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 freeHistorical 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
| name | in | type | description | |
|---|---|---|---|---|
chainName | path | str | required | EVM 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 |
tokenA | query | str | required | Base token contract address. example: 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82 |
tokenB | query | str | required | Quote token contract address. example: 0x55d398326f99059ff775485246999027b3197955 |
period | query | str | optional | Lookback window: 1H, 1D, 1W, 1M, or 1Y. default: 1Dexample: 1D |
Response
type: array
pagination: none
sample: {
"bucket": "str",
"open": "str",
"close": "str",
"high": "str",
"low": "str"
}