接口描述:
  • 獲取K線數據
請求URL:
  • https://apiv2.bitz.com/Market/kline
請求方式:
  • GET
參數:
參數名 必選 類型 備註
size integer 獲取數量 範圍:1-300
to string 微秒戳,返回傳入微秒戳之前的數據
symbol string eth_btc、ltc_btc 交易對
resolution string 1min 、5min 、15min 、30min 、60min、 4hour 、 1day 、5day 、1week、 1mon
請求示例:
  • https://apiv2.bitz.com/Market/kline?symbol=eos_btc&resolution=1mon&size=300
返回结果實例:
{
    "status": 200,
    "msg": "",
    "data": {
        "bars": [
            {
                "time": "1530288000000",
                "open": "0.00127236", //開盤價
                "high": "0.00159900",  //最高價價
                "low": "0.00120082",   //最低價
                "close": "0.00120148",  //收盤價
                "volume": "539601.23460000",  //成交量
                "datetime": "2018-06-30 00:00:00"
            },
            {
                "time": "1527696000000",
                "open": "0.00162150",
                "high": "0.00204430",
                "low": "0.00125145",
                "close": "0.00127348",
                "volume": "19151781.62590000",
                "datetime": "2018-05-31 00:00:00"
            },
        ],
        "resolution": "1mon",
        "symbol": "eos_btc",
        "from": "1530288000000",
        "to": "1506700800000",
        "size": "300"
    },
    "time": 1532671796,
    "microtime": "0.95496500 1532671796",
    "source": "api"
}

results matching ""

    No results matching ""