Mark Price
Subscribe to mark price pushes for a specified trading pair.
- Channel Format:
- Default frequency (3-second sampling):
{symbol}@markPrice - High frequency (1-second real-time):
{symbol}@markPrice@1s
- Default frequency (3-second sampling):
- Access: Public
Subscribe Request
{
"op": "subscribe",
"args": [
"BTC_USDT@markPrice",
"BTC_USDT@markPrice@1s"
]
}
Unsubscribe
{
"op": "unsubscribe",
"args": ["BTC_USDT@markPrice"]
}
Push Example
{
"ch": "BTC_USDT@markPrice@1s",
"d": {
"symbol": "BTC_USDT",
"markPrice": "49012.34",
"t": 1768205315166
}
}
Push Fields
| Field | Type | Description |
|---|---|---|
symbol | string | Trading pair |
markPrice | string | Mark price |
t | number | Timestamp (milliseconds) |
Notes
@markPrice: pushed every 3 seconds by sampling@markPrice@1s: pushed in real time for each updatekafka.topics.markPriceis an optional configuration. If unset or empty, mark price messages are not processed.