Index price
Subscribe
For both linear and inverse contracts, use the same symbol (e.g., for inverse BTC_USD, use BTC_USDT when subscribing to index price).
{
"method": "sub.index.price",
"param": {
"symbol": "BTC_USDT"
},
"gzip": false
}
Unsubscribe
{
"method": "unsub.index.price",
"param": {
"symbol": "BTC_USDT"
}
}
Sample data
{
"channel": "push.index.price",
"data": {
"price": 0.001,
"symbol": "BTC_USDT"
},
"symbol": "BTC_USDT",
"ts": 1587442022003
}
Get the contract’s index price; updates are pushed whenever there are changes.
Response fields:
| Field | Type | Description |
|---|---|---|
| symbol | string | Contract |
| price | decimal | Price |