Skip to Content

24-hour Ticker

Subscribe URL

wss://stream.bittap.com/endpoint?format=JSON

Subscribe Parameters

Stream Name: s_ticker@<symbol>

ParameterDescription
symbolindicates the trading pair

24-hour simplified ticker information refreshed every second by Symbol, symbol indicates the trading pair.

Data Update

NameTypeDescription
eSTRINGTopic
ELONGEvent time
sSTRINGSymbol
cSTRINGLast price
oSTRINGFirst trade price 24 hours ago
hSTRINGHighest price in 24 hours
lSTRINGLowest price in 24 hours
vSTRINGVolume
qSTRINGQuote asset volume
pSTRING24-hour price change
PSTRING24-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: