跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt

Use this file to discover all available pages before exploring further.

获取深度

获取交易对完整的深度。

请求URL

GET https://cloud-api.wooxpro.com/contract/public/depth

请求限制

参见 速率限制详细

请求参数

请求
curl https://cloud-api.wooxpro.com/contract/public/depth?symbol=BTCUSDT
参数类型是否必填描述
symbolString必填合约交易对(如BTCUSDT)

响应详情

响应
{
  "code": 1000,
  "message": "Ok",
  "trace": "b9bff62d-9ac8-4815-8808-8f745673c096",
  "data": {
    "asks": [
      [
        "23935.4",
        "65",
        "65"
      ]
    ],
    "bids": [
      [
        "23935.4",
        "65",
        "65"
      ]
    ],
    "timestamp": 1660285421287,
    "symbol": "BTCUSDT"
  }
}
字段类型描述
timestampLong当前系统时间(时间戳,精确到毫秒)
bidsList买方深度列表
asksList卖方深度列表
symbolString交易对
深度详情描述:
字段类型描述
第一位String当前深度价格。例如 23935.4
第二位String当前价格深度的总量。例如 65
第三位String当前价格深度之上(包含当前)的总量累加。例如 65