OKX Spot

OKX Spot historical market data details - currency pairs, data coverage and data collection specifics

OKX historical data for spot high caps currency pairs is available since 2019-03-30, data for all spot currency pairs is available since 2021-03-11.

See OKX Spot 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-USDT

2020-01-01

trades

BTC-USDT

2020-01-01

quotes

BTC-USDT

2020-01-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.

Captured real-time channels

See OKX Spot WebSocket API docs providing documentation for each captured channel's format
circle-info

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

Current channels (API v5, since 2021-12-23):

Legacy channels (API v3, until 2021-12-23):

Market data collection details

Market data collection infrastructure for OKX Spot is located in AWS HK region (Hong Kong, China, VPC colo setup).

Real-time market data is captured via multiple WebSocket connections to wss://awscolows1.okx.com:8443/ws/v5/public.

circle-info

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

Last updated