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

HTX USDT-M Contracts

HTX USDT-M Contracts historical market data details - instruments, data coverage and data collection specifics

HTX USDT-M Contracts historical data for all its instruments is available since 2020-10-30.

See HTX USDT-M Contracts 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

2023-03-01

trades

BTC-USDT

2023-03-01

derivative_ticker

BTC-USDT

2023-03-01

API Access and data format

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

  • trade Trade executions stream

  • depth 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. Uses depth.size_150.high_freq which natively provides incremental updates with "event":"update"|"snapshot" field.

  • bbo Best bid and ask quote updates stream

  • liquidation_orders Liquidation events stream

  • basis Basis and index price updates stream

  • funding_rate Funding rate updates stream

  • open_interest — generated channel Generated open interest snapshots from REST endpoint every 4-6 seconds per instrument. Messages marked as "ch":"market.<symbol>.open_interest" and "generated":true with data field in the same format as REST API response.

  • detail 24h contract statistics stream

  • contract_info Contract definition and status updates stream

  • elite_account_ratio — generated channel Generated elite account long/short ratio snapshots from REST endpoint using 5min period buckets.

  • elite_position_ratio — generated channel Generated elite position long/short ratio snapshots from REST endpoint using 5min period buckets.

Market data collection details

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

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

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

Last updated

Was this helpful?