接口描述:
  • 獲取合約交易的市場深度
請求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 ""