Symbol Best Book Ticker
Pushes real-time best bid/ask information for a specific symbol.
Subscribe URL
wss://stream.bittap.com/endpoint?format=JSON
Subscribe Parameters
Stream Name: f_bookTicker@<symbol>
| Parameter | Description |
|---|---|
| symbol | Trading Pair |
Data Update
| Name | Type | Description |
|---|---|---|
| e | STRING | Event Type |
| s | STRING | Symbol |
| E | LONG | Event Time |
| b | STRING | Best bid price |
| B | STRING | Best bid quantity |
| a | STRING | Best ask price |
| A | STRING | Best ask quantity |
| u | LONG | Update ID |
Subscribe Example
{
"method": "SUBSCRIBE",
"params": [
"f_bookTicker@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_bookTicker", // Event Type
"s": "BTC-USDT-M", // Symbol
"E": 1562306400000, // Event Time
"b": "95276.47", // Best bid price
"B": "0.782329", // Best bid quantity
"a": "95276.48", // Best ask price
"A": "1.083608", // Best ask quantity
"u": 471998034 // Update ID
}Unsubscribe Example
{
"method": "UNSUBSCRIBE",
"params": [
"f_bookTicker@BTC-USDT-M"
],
"id": "8goj2qh"
}Error Codes
No information available
Code Example
Last updated on: