深度信息

1) 请求地址

{haoquote_host}/api/v1/quote/depth

2) 调用方式:HTTP GET
3) 接口描述:

委托盘深度数据

4) 请求参数:
GET参数:
字段名称 类型 必填 字段说明 备注
symbol string Y 交易对的symbol eg: symbol=usdjpy
limit int N 默认10,最大500
5) 请求返回结果:
{
    "data": {
        "asks": [
            [
                "121.097",
                "0.51"
            ],
            [
                "121.134",
                "1.00"
            ],
            [
                "121.172",
                "1.00"
            ],
            [
                "121.284",
                "1.00"
            ],
            [
                "121.358",
                "1.00"
            ],
            [
                "121.584",
                "1.00"
            ],
            [
                "121.619",
                "1.00"
            ],
            [
                "121.624",
                "1.00"
            ],
            [
                "121.681",
                "1.00"
            ],
            [
                "121.751",
                "1.00"
            ]
        ],
        "bids": [
            [
                "120.819",
                "1.00"
            ],
            [
                "120.760",
                "1.00"
            ],
            [
                "120.678",
                "1.00"
            ],
            [
                "120.630",
                "1.00"
            ],
            [
                "120.507",
                "1.00"
            ],
            [
                "120.485",
                "1.00"
            ],
            [
                "120.248",
                "1.00"
            ],
            [
                "120.156",
                "1.00"
            ],
            [
                "120.019",
                "1.00"
            ],
            [
                "119.943",
                "1.00"
            ]
        ]
    },
    "ok": 1
}
6) 请求返回结果参数说明:
字段名称 类型 字段说明 备注
asks [][2]string 卖盘 string[0]:价格,string[1]:数量
bids [][2]string 买盘 同上
END
Copyright © HaoTrader 2023 all right reserved,powered by GitbookFile Modify: 2024-04-22 06:49:46

results matching ""

    No results matching ""