Skip to content

Get Depth

Rate Limit: 10 req/sec/ip

Description

Interface is used to get future order book.

HTTP Request

  • GET /api/v1/futures/market/depth

Request Parameters

ParameterTypeRequiredDescription
symbolstringtrueTrading pair, based on the symbolName, i.e. BTCUSDT
limitstringfalseFixed gear enumeration value: 1/5/15/50/max, passing max returns the maximum gear of the trading pairWhen the actual depth does not meet the limit, return according to the actual gear . If max is passed in, the maximum level of the trading pair will be returned.

Request Example

bash
curl -X 'GET'  --location 'https://fapi.bitunix.com/api/v1/futures/market/depth?symbol=BTCUSDT&limit=max'

Response Parameters

ParameterTypeDescription
asks.index[0]stringask price
asks.index[1]stringask amount
bids.index[0]stringbid price
bids.index[1]stringbid amount

Response Example

json
{"code":0,"data":{"asks":[[0.1001,0.1],[0.1002,10]],"bids":[[0.1,1],[0.0999,10.23]]},"msg":"Success"}