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

OKCoin

OKCoin historical market data details - available instruments, data coverage and data collection specifics

OKCoin historical data for all its currency pairs is available since 2019-11-19 until 2025-10-01.

See OKCoin 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

2020-01-01

trades

BTC-USD

2020-01-01

quotes

BTC-USD

2020-01-01

API Access and data format

Historical data format is the same as provided by real-time OKCoin WebSocket API with addition of local timestamps. 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 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 OKCoin 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.

v5 API channels (since 2023-04-27):

  • trades — available since 2023-04-27 Public spot trade executions stream

  • books — available since 2023-04-27 Incremental spot order book depth updates

  • bbo-tbt — available since 2023-04-27 Tick-by-tick best bid and offer updates

  • tickers — available since 2023-04-27 24h spot ticker updates

v3 API channels (until 2023-04-27):

  • spot/trade — available until 2023-04-27 Public spot trade executions stream

  • spot/depth — available until 2020-02-18 Incremental spot order book updates stream (legacy depth channel)

  • spot/depth_l2_tbt — available since 2020-02-12, until 2023-04-27 Tick-by-tick L2 spot order book updates with sequencing

  • spot/ticker — available until 2023-04-27 Spot ticker updates stream

Market data collection details

Market data collection infrastructure for OKCoin since 2020-05-15 was located in GCP asia-northeast1 (Tokyo, Japan), before that it was located in GCP europe-west2 region (London, UK).

Real-time market data was captured via multiple WebSocket connections to wss://real.okcoin.com:8443/ws/v5/public.

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

Last updated

Was this helpful?