Skip to content

WebSocket / 24-Hour Ticker

Endpoint: /ws/v1/spot/market

Description

Provides real-time 24-hour ticker data for a trading pair, including: - Latest trade price - Best bid price - Best ask price - 24-hour trading volume and turnover

Channel Name

tickers

Subscription Parameters

Parameter Required Type Example Description
op Yes string sub Operation: sub to subscribe, unsub to unsubscribe
channel Yes string tickers Channel name
symbol Yes string BTC-USDT Trading pair

Subscription Example

JSON
{
  "op": "sub",
  "channel": "tickers",
  "symbol": "BTC-USDT"
}

Push Data Fields

Parameter Required Type Example Description
channel Yes string tickers Channel name
symbol Yes string BTC-USDT Trading pair
last Yes string 999.2 Latest trade price
ask Yes string 999.3 Best ask price
bid Yes string 999.1 Best bid price
open Yes string 999.1 24-hour open price
high Yes string 999.1 24-hour high price
low Yes string 999.1 24-hour low price
amount Yes string 2222 24-hour trading volume (base currency)
vol Yes string 999.1 24-hour trading turnover (quote currency)
ts Yes long 1597026383085 Event timestamp (milliseconds)

Push Example

JSON
{
  "channel": "tickers",
  "symbol": "BTC-USDT",
  "last": "999.2",
  "ask": "999.3",
  "bid": "999.1",
  "open": "999.0",
  "close": "999.2",
  "high": "999.2",
  "low": "999.0",
  "amount": "11",
  "vol": "22.22",
  "ts": 1597026383085
}