Skip to Content

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>

ParameterDescription
symbolTrading Pair

Data Update

NameTypeDescription
eSTRINGEvent Type
sSTRINGSymbol
ELONGEvent Time
bSTRINGBest bid price
BSTRINGBest bid quantity
aSTRINGBest ask price
ASTRINGBest ask quantity
uLONGUpdate 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: