接口描述:
  • 获取合约交易的市场深度
请求URL:
  • https://apiv2.bitz.com/Market/getContractOrderBook
请求方式:
  • GET
参数:
参数名 必选 类型 备注
contractId int 合约ID
depth string 深度条数 5, 10, 15, 20, 30, 100,默认10
请求示例:
  • https://apiv2.bitz.com/Market/getContractOrderBook?contractId=101&depth=5
返回结果实例:
{
    "status":200,
    "msg":"",
    "data":{
          "bids":[
            {
                "price":"8201.32",//买一价格
                "amount":"2820"//买一️数量
            },
            ...
        ],
        "asks":[
            {
                "price":"8202.14",//卖一价格
                "amount":"4863"//卖一数量
            },
            ...
        ]
    }
    "time": 1532671288,
    "microtime": "0.23065700 1532671288",
    "source": "api"
}

results matching ""

    No results matching ""