Appearance
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
Parameter | Type | Required | Description |
---|---|---|---|
symbol | string | true | Trading pair, based on the symbolName, i.e. BTCUSDT |
limit | string | false | Fixed 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
Parameter | Type | Description |
---|---|---|
asks.index[0] | string | ask price |
asks.index[1] | string | ask amount |
bids.index[0] | string | bid price |
bids.index[1] | string | bid 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"}