Latest Mark Price
Subscribe URL
wss://stream.bittap.com/endpoint?format=JSON
Subscribe Parameters
Stream name: f_markPrice@<symbol>
| Parameter | Description |
|---|---|
| symbol | Trading Pair |
Data Update
| Name | Type | Description |
|---|---|---|
| e | STRING | Topic |
| E | LONG | event time |
| s | STRING | trading pair |
| p | STRING | mark price |
| I | STRING | spot index price |
| r | STRING | funding rate |
| T | LONG | next 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: