Interface description
  • Get Kline data
Request URL:
  • https://apiv2.bitz.com/Market/kline
Request Method:
  • GET
Parameter:
Parameter Whether or not Parameters of the mean Example
size no integer get number range:1-300
to no string microsecond. Return the data before this microsecond
symbol yes string eth_btc、ltc_btc
resolution yes string 1min 、5min 、15min 、30min 、60min、 4hour 、 1day 、5day 、1week、 1mon
Request example:
  • https://apiv2.bitz.com/Market/kline?symbol=eos_btc&resolution=1mon&size=300
An example of the result returned
{
    "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 ""