Skip to Content

Latest Mark Price

Subscribe URL

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

Subscribe Parameters

Stream name: f_markPrice@<symbol>

ParameterDescription
symbolTrading Pair

Data Update

NameTypeDescription
eSTRINGTopic
ELONGevent time
sSTRINGtrading pair
pSTRINGmark price
ISTRINGspot index price
rSTRINGfunding rate
TLONGnext funding time

Subscribe Example

{ "method": "SUBSCRIBE", "params": [ "f_markPrice@BTC-USDT-M" ], "id": "eru1bat" }

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_markPrice", // topic "E": 1562305380000, // event time "s": "BTC-USDT-M", // trading pair "p": "11794.15000000", // mark price "I": "11784.62659091", // spot index price "r": "0.00038167", // funding rate "T": 1562306400000 // next funding time }

Unsubscribe Example

{ "method": "UNSUBSCRIBE", "params": [ "f_markPrice@BTC-USDT-M" ], "id": "eru1bat" }

Error Codes

No information available

Code Example

Last updated on: