GET /api/v5/market/tickers
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/web3okx/api/v5/market/tickersCache cached 3s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePublic instrument tickers
Parameters
| name | in | type | description | |
|---|---|---|---|---|
instType | query | str | required | example: SPOT |
Response
type: array
pagination: none
sample: {
"[0]": "object{instType:str,instId:str,last:str,lastSz:str,askPx:str,askSz:str,bidPx:str,bidSz:str,open24h:str,high24h:str,low24h:str,volCcy24h:str,vol24h:str,ts:str,sodUtc0:str,sodUtc8:str}"
}
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/web3okx/api/v5/market/tickers?instType=SPOT"