获取单个合约交易对深度数据
描述
查询单个合约交易对深度信息
HTTP请求
- GET /fapi/v1/market/depth
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| futuresName | String | 是 | 合约名称, 如: "E-BTC-USDT" |
请求示例
http
curl 'https://futuresopenapi.100ex.com/fapi/v1/market/depth?futuresName=E-BTC-USDT'返回参数
| 参数名 | 参数类型 | 描述 |
|---|---|---|
| asks | List<String> | 当前所有价位的卖单 |
| > Index 0 | String | 价格 |
| > Index 1 | String | 数量 |
| bids | List<String> | 当前所有价位的买单 |
| > Index 0 | String | 价格 |
| > Index 1 | String | 数量 |
| time | String | 当前深度对应的时间, ms |
返回示例
json
{
"code": "0",
"msg": "suc",
"data": {
"asks": [
[
"90904.5",
"20"
],
[
"90904.6",
"20"
],
...
],
"bids": [
[
"90904.4",
"12570"
],
[
"90904.3",
"14720"
],
...
],
"time": "1736769543000"
}
}