GET /priapi/v5/dex/token/market/stock-candles
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/web3okx/priapi/v5/dex/token/market/stock-candlesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeTokenized stock / RWA OHLCV candlesticks by ticker symbol
Returns 7-column OHLCV arrays [ts_ms, open, high, low, close, vol, volUsd] for tokenized equities on web3.okx.com.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
instId | query | str | required | Stock ticker symbol (e.g. NVDA, AAPL) example: NVDA |
bar | query | str1s | 5s | 15s | 30s | 1m | 3m | 5m | 15m | 30m | 1H | 2H | 4H | 6H | 12H | 1D | 1W | 1M | 1Dutc | 1Wutc | 1Mutc | optional | Candle interval default: 1Hexample: 1H |
limit | query | int | optional | Number of candles (1..1000) default: 100example: 100 |
after | query | str | optional | Pagination cursor (epoch ms) example: |
before | query | str | optional | Pagination cursor (epoch ms) example: |
Response
type: array
pagination: none
sample: {
"[0]": "array[7] [ts_ms:str, open:str, high:str, low:str, close:str, vol:str, volUsd: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/priapi/v5/dex/token/market/stock-candles?instId=NVDA&bar=1H&limit=100&after=&before="