Premium Index Subscription
Info
- The push delay of this method is: real-time
Premium Index Subscription
- Method:
premium.subscribe - Parameters:
| Parameter Name | Required | Type | Notes |
|---|---|---|---|
| market_list | true | []string | List of market names |
- Example:
{
"method": "premium.subscribe",
"params": {
"market_list": ["BTCUSDT", "ETHUSDT"]
},
"id": 1
}
Premium Index Push
- Method:
premium.update - Parameters:
| Parameter Name | Type | Notes |
|---|---|---|
| market | string | Market name |
| updated_at | int | Timestamp (millisecond) |
| premium_index | string | Premium Index |
- Example:
{
"method": "premium.update",
"data": {
"market": "BTCUSDT",
"premium_index": "0.0005",
"updated_at": 1711900800123
},
"id": null
}
Unsubscribe to Premium Index
- Method:
premium.unsubscribe - Parameters:
| Parameter Name | Required | Type | Notes |
|---|---|---|---|
| market_list | true | []string | List of market names. Empty list to unsubscribe to all markets. |
- Example:
// Cancel BTCUSDT and ETHUSDT subscriptions
{
"method": "premium.unsubscribe",
"params": {
"market_list": ["BTCUSDT", "ETHUSDT"]
},
"id": 1
}
// Cancel all market subscriptions
{
"method": "premium.unsubscribe",
"params": {
"market_list": []
},
"id": 1
}