Skip to content

Variable: WS_SPOT_PUBLIC_TOPICS ​

ts
const WS_SPOT_PUBLIC_TOPICS: readonly ["market.$symbol$.kline.$period$", "market.$symbol.bbo", "market.$symbol.depth.$type", "market.$symbol.fullDepth.$type", "market.$symbol.detail", "market.$symbol.mbp.$levels", "market.$symbol.mbp.refresh.$levels", "market.$symbol.ticker", "market.$symbol.trade.detail"];

HTX websocket topics are string templates, e.g.:

  • market.btcusdt.kline.1min
  • market.btcusdt.mbp.150
  • orders#btcusdt
  • orders.btc-usdt

The exchange publishes a large and evolving topic surface, so the SDK keeps the topic type open while exporting common topic groups for discovery and private/public routing.

Built by Siebly. Open source SDKs for exchange APIs.