Skip to Content

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>

ParameterDescription
symbolTrading Pair

Data Update

NameTypeDescription
eSTRINGTopic
ELONGevent time
sSTRINGtrading pair
cSTRINGlast trade price
oSTRINGfirst trade price 24 hours ago
hSTRINGhighest trade price in 24 hours
lSTRINGlowest trade price in 24 hours
vSTRINGvolume
qSTRINGquote volume
pSTRING24-hour price change
PSTRING24-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: