Get Ticker

The real-time ticker includes the last traded price, the last traded size, transaction ID, the side of liquidity taker, the best bid price and size, the best ask price and size as well as the transaction time of the orders. These messages can also be obtained through Websocket. The Sequence Number is used to judge whether the messages pushed by Websocket is continuous.

HTTP REQUEST

GET /api/v1/ticker

Example

GET /api/v1/ticker?symbol=XBTUSDM

{
  "code": "200000",
  "data": {
    "sequence": 1001, //Sequence number
    "symbol": "XBTUSDM", //Symbol
    "side": "buy", //Side of liquidity taker
    "size": 10, //Filled quantity
    "price": "7000.0", //Filled price
    "bestBidSize": 20, //Best bid size
    "bestBidPrice": "7000.0", //Best bid price
    "bestAskSize": 30, //Best ask size
    "bestAskPrice": "7001.0", //Best ask price
    "tradeId": "5cbd7377a6ffab0c7ba98b26", //Transaction ID
    "ts": 1550653727731 //Filled time - nanosecond
  }
}
REQUEST URL

This endpoint support Futures URL

REQUEST RATE LIMIT

Public weight:2

PARAMETERS
Param Type Mandatory Description
symbol string Yes Symbol of the contract
RESPONSES
Param Description
sequence Sequence number
symbol Symbol
side Side of liquidity taker
size Filled quantity
price Filled price
bestBidSize Best bid size
bestBidPrice Best bid price
bestAskSize Best ask size
bestAskPrice Best ask price
tradeId Transaction ID
ts Filled time - nanosecond