OKX Options
OKX Options historical market data details - instruments, data coverage and data collection specifics
OKX historical data for all its options instruments is available since 2020-02-01.
Downloadable CSV files
Historical CSV datasets for the first day of each month are available to download without a Data API key. See downloadable CSV files documentation.
API Access and data format
Historical data format is the same as provided by real-time OKX WebSocket v5 API with addition of local timestamps (before 2021-12-23 it was v3 API version). If you'd like to work with normalized data format instead (same format for each exchange) see downloadable CSV files or official client libs that can perform data normalization client-side.
See Python client docs.
See Node.js client docs.
See HTTP API docs.
Tardis-machine is a locally runnable server that exposes API allowing efficiently requesting historical market data for whole time periods in contrast to HTTP API that provides data only in minute by minute slices.
See tardis-machine docs.
Captured real-time channels
Current channels (API v5, since 2021-12-23):
trades Public options trade executions stream
trades-all — available since 2023-10-19 All trades stream including non-aggregated trade messages
option-trades — available since 2023-03-30 Option trades stream
books-l2-tbt — available until 2026-05-21 Tick-by-tick L2 options order book updates
books — available from 2023-02-24 to 2024-07-19, and from 2026-05-21 onward Incremental options order book depth updates
bbo-tbt — available since 2022-05-05 Tick-by-tick best bid and offer updates
tickers 24h options ticker updates
opt-summary Option summary with greeks, implied volatility and contract statistics
index-tickers Index ticker updates with keepalive up to 1m when unchanged
open-interest Open interest updates
mark-price Mark price updates with keepalive up to 10s when unchanged
status Exchange status and maintenance notifications
instruments Instrument state updates (listing, suspension, parameter changes)
price-limit Price limit updates
estimated-price Estimated delivery/settlement price updates
public-block-trades — available since 2023-01-01 Public block trades stream
public-struc-block-trades — available since 2023-01-01 Public structured block trades stream
Legacy channels (API v3, until 2021-12-23):
option/trade — available until 2021-12-23 Public options trade executions stream
option/trades — available since 2020-07-30, until 2021-12-23 Public options trade executions stream
option/depth — available until 2020-02-13 Incremental options order book updates (legacy depth channel)
option/depth_l2_tbt — available since 2020-02-07, until 2021-12-23 Tick-by-tick L2 options order book updates with sequencing
option/ticker — available until 2021-12-23 24h options ticker updates
option/summary — available until 2021-12-23 Option summary with greeks, implied volatility and contract statistics
index/ticker — available since 2020-06-08, until 2021-12-23 Index ticker for options contracts with keepalive up to 1m when unchanged
option/instruments — available until 2021-12-23 Option instruments metadata updates (listing, expiry, contract parameter changes)
system/status — available since 2020-07-01, until 2021-12-23 Exchange status and maintenance notifications
Market data collection details
Market data collection infrastructure for OKX Options is located in GCP asia-northeast1 region (Tokyo, Japan) since 2026-05-21. Before that it was located in AWS ap-east-1 region (Hong Kong, China) from 2022-05-04, in GCP asia-northeast1 region (Tokyo, Japan) from 2020-05-15, and initially in GCP europe-west2 region (London, UK).
Real-time market data is captured via multiple WebSocket connections to wss://ws.okx.com/ws/v5/public. Earlier endpoints:
wss://awscolows1.okx.com:8443/ws/v5/public(2023-11-24 – 2026-05-21)wss://ws.okx.com:8443/ws/v5/public(2022-05-04 – 2023-11-24)wss://wsaws.okex.com:8443/ws/v5/public(2021-12-23 – 2022-05-04)wss://real.okex.com:8443/ws/v3(until 2021-12-23)
Last updated
Was this helpful?
