For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

See OKX Options historical data coverage: available symbols, channels, date ranges and incidents

Downloadable CSV files

Historical CSV datasets for the first day of each month are available to download without API key. See downloadable CSV files documentation.

data type
symbol
date

incremental_book_L2

BTC-USD-200327-8500-P

2020-03-01

trades

BTC-USD-200327-8500-P

2020-03-01

options_chain

OPTIONS

2020-03-01

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.

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

See OKX Options WebSocket API docs providing documentation for each captured channel's format

Click any channel below to see HTTP API response with historical data recorded for it.

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, from 2022-05-04, it was located in AWS HK region (Hong Kong, China, VPC colo setup), before that, since 2020-05-15 it was located in GCP asia-northeast1 region (Tokyo, Japan) and initially it was located in GCP europe-west2 region (London, UK).

Real-time market data is captured via multiple WebSocket connections to wss://ws.okx.com:8443/ws/v5/public. Before 2026-05-21, data was captured from the OKX colocation endpoint at wss://awscolows1.okx.com:8443/ws/v5/public.

OKX servers are located in Alibaba Cloud cn-hongkong region (Hong Kong, China).

Last updated

Was this helpful?