24-hour Ticker
Subscribe URL
wss://stream.bittap.com/endpoint?format=JSON
Subscribe Parameters
Stream Name: s_ticker@<symbol>
| Parameter | Description |
|---|---|
| symbol | indicates the trading pair |
24-hour simplified ticker information refreshed every second by Symbol, symbol indicates the trading pair.
Data Update
| Name | Type | Description |
|---|---|---|
| e | STRING | Topic |
| E | LONG | Event time |
| s | STRING | Symbol |
| c | STRING | Last price |
| o | STRING | First trade price 24 hours ago |
| h | STRING | Highest price in 24 hours |
| l | STRING | Lowest price in 24 hours |
| v | STRING | Volume |
| q | STRING | Quote asset volume |
| p | STRING | 24-hour price change |
| P | STRING | 24-hour price change (percentage) |
Subscribe Example
{
"method": "SUBSCRIBE",
"params": [
"s_ticker@BTC-USDT"
],
"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": "s_ticker", // topic
"E": 1672515782136, // Event time
"s": "BNBBTC", // Symbol
"c": "0.0025", // Last price
"o": "0.0010", // First trade price 24 hours ago
"h": "0.0025", // Highest price in 24 hours
"l": "0.0010", // Lowest price in 24 hours
"v": "10000", // Volume
"q": "18" , // Quote asset volume
"p": "0.0015", // 24-hour price change
"P": "250.00" // 24-hour price change (percentage)
}Unsubscribe Example
{
"method": "UNSUBSCRIBE",
"params": [
"s_ticker@BTC-USDT"
],
"id": "8goj2qh"
}Error Codes
No information available
Code Example
Last updated on: