HTX Futures

HTX Futures historical market data details - instruments, data coverage and data collection specifics

HTX Futures historical data for all its instruments is available since 2019-11-19.

See HTX Futures 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.

circle-info

Derivative ticker datasets are available since 2020-06-24.

data type
symbol
date

incremental_book_L2

BTC_CQ

2020-02-01

trades

BTC_CQ

2020-02-01

derivative_ticker

BTC_CQ

2020-07-01

API Access and data format

Historical data format is the same as provided by real-time HTX Futures 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.

Captured real-time channels

See HTX Coin-M Futures 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.

  • tradearrow-up-right Trade executions stream

  • deptharrow-up-right Order book snapshots and incremental updates stream. Order book integrity is validated using sequence numbers (version field) — on missed message the WebSocket connection is restarted. See also details below regarding depth channel data collection details.

  • bboarrow-up-right — available since 2020-06-23 Best bid and ask quote updates stream

  • liquidation_ordersarrow-up-right — available since 2020-06-23 Liquidation events stream

  • contract_infoarrow-up-right — available since 2020-06-23 Contract definition and status updates stream

  • basisarrow-up-right — available since 2020-06-23 Basis and index price updates stream

  • open_interestarrow-up-right — generated channel, available since 2020-06-23 Generated open interest snapshots from REST endpoint every 4-6 seconds per instrument. Messages are marked with "ch":"market.<symbol>.open_interest" and "generated":true fields and data field has the same format as REST API response data.

  • detailarrow-up-right 24h contract statistics stream

  • elite_account_ratioarrow-up-right — generated channel, available since 2020-10-29 Generated elite account long/short ratio snapshots from REST endpoint using 5min period buckets.

  • elite_position_ratioarrow-up-right — generated channel, available since 2020-10-29 Generated elite position long/short ratio snapshots from REST endpoint using 5min period buckets.

Up until 2020-01-31 depth channel was collected with step0 aggregation level (no aggregation) which produces full order book snapshots for each book change which is very inefficient to store. To circumvent this issue we stored only initial book snapshots and then incremental updates instead - incremental updates were calculated by diffing two subsequent book snapshots and provided in the same format as other depth messages, except having additional update: true flag set as in snippet below. Update with amount (second value in array) set to 0 means such level should be deleted, otherwise price level should be updated with new amount value.

On 2020-01-31 we've switched to depth.size_150.high_freq channel instead when collecting data and which natively provides incremental order book updates without workarounds described above.

Unfortunately it means that when requesting data for depth channel it may return slightly different format depending for which time period request was made. It's only slightly different and boils down to the way order book update messages are marked vs order book snapshots. In depth.size_150.high_freq order book message has event field always present with value update or snapshot, for example:

For messages before 2020-01-31 we used the depth.step0 channel for collecting order book data, which means an order book update message has the update flag set to true; if it's a snapshot, it doesn't have that flag at all, for example:

All other fields are the same (tick.bids, tick.asks, etc.).

Please feel free to contact usarrow-up-right if it's confusing in any way.

We also provide a normalization layer that handles those differences transparently via our client libs.

Market data collection details

Market data collection infrastructure for HTX Futures is located in GCP asia-northeast1 (Tokyo, Japan).

Real-time market data is captured via multiple WebSocket connections to wss://api.hbdm.vn/ws (proxied via Cloudflare).

circle-info

HTX servers are located in AWS ap-northeast-1 region (Tokyo, Japan).

Last updated