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
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) |