Retrieve historical market data for OKX.
- Provider
- OKX API V5
- Input summary
- {"name":"module","type":"string","required":true,"description":"Data module type 1: Tick-by-tick trade history 2: 1-minute candlestick 3: Funding rate 4: 400-level orderbook 5: 5000-level orderbook (from Nov 1, 2025) 6: 50-level orderboo..., {"name":"instType","type":"string","required":true,"description":"Instrument type SPOT FUTURES SWAP OPTION","enum":["SPOT","FUTURES","SWAP","OPTION"]}, {"name":"instIdList","type":"string","required":false,"description":"List of instrument IDs, e.g. BTC-USDT , or ANY for all instruments (ANY is only supported for module = 1 , 2 , 3 & dateAggrType = daily ) Multiple instrument IDs should..., {"name":"instFamilyList","type":"string","required":false,"description":"List of instrument families, e.g. BTC-USDT , or ANY for all instruments (ANY is only supported for module = 1 , 2 , 3 & dateAggrType = daily ) Multiple instrument f..., {"name":"dateAggrType","type":"string","required":true,"description":"Date aggregation type daily (not supported for module = 3 & instFamilyList ≠ ANY ) monthly (not supported for module = 6 )","enum":["daily","monthly"]}, {"name":"begin","type":"string","required":true,"description":"Begin timestamp. Unix timestamp format in milliseconds (inclusive) Maximum range: 20 days for daily, 20 months for monthly"}, {"name":"end","type":"string","required":true,"description":"End timestamp. Unix timestamp format in milliseconds (inclusive) When module = 6 & instType = OPTION , only returns data for the day specified by end"}
- Output summary
- Not available
- Billing
- 1
- Freshness
- Not available
- Verification
- Not available