Contract Market Data

//Contract Market Data
{
  "id": 1545910660742,
  "type": "subscribe",
  "topic": "/contract/instrument:XBTUSDM",
  "response": true
}

Topic:/contract/instrument:{symbol}

Subscribe this topic to get the market data of the contract.

Mark Price & Index Price
//Mark Price & Index Price
{
  "topic": "/contract/instrument:XBTUSDM",
  "subject": "mark.index.price",
  "data": {
    "granularity": 1000, //Granularity
    "indexPrice": 4000.23, //Index price
    "markPrice": 4010.52, //Mark price
    "timestamp": 1551770400000
  }
}
Funding Rate
//Funding Rate
{
  "topic": "/contract/instrument:XBTUSDM",
  "subject": "funding.rate",
  "data": {
    "granularity": 60000, //Granularity (predicted funding rate: 1-min granularity: 60000; Funding rate: 8-hours granularity: 28800000. )
    "fundingRate": -0.002966, //Funding rate
    "timestamp": 1551770400000
  }
}