24hr Ticker
24-hour ticker information refreshed per second by symbol.
Subscribe URL
wss://stream.bittap.com/endpoint?format=JSON
Subscribe Parameters
Stream name: f_ticker@<symbol>
| Parameter | Description |
|---|---|
| symbol | Trading Pair |
Data Update
| Name | Type | Description |
|---|---|---|
| e | STRING | Topic |
| E | LONG | event time |
| s | STRING | trading pair |
| c | STRING | last trade price |
| o | STRING | first trade price 24 hours ago |
| h | STRING | highest trade price in 24 hours |
| l | STRING | lowest trade price in 24 hours |
| v | STRING | volume |
| q | STRING | quote volume |
| p | STRING | 24-hour price change |
| P | STRING | 24-hour price change (percentage) |
Subscribe Example
{
"method": "SUBSCRIBE",
"params": [
"f_ticker@BTC-USDT-M"
],
"id": "8goj2qh"
}Subscribe Success Example
{
"code": 0, // 0 means success, non-0 means failure
"msg":"", // failure reason, null when success
"topic": ["", ""], // topics that failed to subscribe
"id": 1
}Data Update Example
{
"e": "f_ticker", // topic
"E": 1672515782136, // event time
"s": "BTC-USDT-M", // trading pair
"c": "0.0025", // last trade price
"o": "0.0010", // first trade price 24 hours ago
"h": "0.0025", // highest trade price in 24 hours
"l": "0.0010", // lowest trade price in 24 hours
"v": "10000", // volume
"q": "18" , // quote volume
"p": "0.0015", // 24-hour price change
"P": "250.00" // 24-hour price change (percentage)
}Unsubscribe Example
{
"method": "UNSUBSCRIBE",
"params": [
"f_ticker@BTC-USDT-M"
],
"id": "8goj2qh"
}Error Codes
No information available
Code Example
Last updated on: