Order Book
Get spot specified instrument information
Http Request
GET
/api/spot/instruments/depth
Request Frequency Restriction:
- 2times / 1second
Postman
pay attention to replace "restful_base_endpoint"
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
instrument_id | string | YES | the name of a currency pair, such as BTC/USDT. |
depth | string | YES | the depth gear with values of 5, 10, 50 and 100. |
Response fields description
Name | Type | Description |
---|---|---|
ask | array | seller depth, [price, quantity] |
bid | array | buyer depth, [price, quantity] |
timestamp | string | utc timestamp |
Response
{
"code": 200,
"message": null,
"data": {
"asks": [
[
"29888.04",
"6.0034"
],
[
"29888.05",
"1.2743"
],
[
"29888.06",
"6.1207"
],
[
"29888.07",
"0.824"
],
[
"29888.08",
"0.0042"
]
],
"bids": [
[
"29888.03",
"3.7688"
],
[
"29888.02",
"0.0099"
],
[
"29888.01",
"5.8579"
],
[
"29888",
"5.7497"
],
[
"29887.99",
"3.4658"
]
],
"timestamp": 1681726494419
}
}