GET /api/v5/public/instruments

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/web3okx/api/v5/public/instrumentsCache cached 300s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Public instrument metadata

Parameters

nameintypedescription
instTypequerystrrequired
example: SPOT
instIdquerystroptional
example: BTC-USDT

Response

type: array
pagination: none
sample: {
  "[0]": "object{alias:str,auctionEndTime:str,baseCcy:str,category:str,contTdSwTime:str,ctMult:str,ctType:str,ctVal:str,ctValCcy:str,expTime:str,floatPxLmtPct:str,freq:str,futureSettlement:bool,groupId:str,initPxLmtPct:str,instCategory:str,instFamily:str,instId:str,instIdCode:int,instType:str,lever:str,listTime:str,longPosRemainingQuota:str,lotSz:str,maxIcebergSz:str,maxLmtAmt:str,maxLmtSz:str,m

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/public/instruments?instType=SPOT&instId=BTC-USDT"