Interface description
  • Get Kline data
Request URL:
  • https://apiv2.bitz.com/Market/kline
Request Method:
  • GET
Parameters:
Parameter Required Type Description
size false integer get number range:1-300
to false string microsecond. Return the data before this microsecond
symbol true string eth_btc、ltc_btc
resolution true 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
Example of return result:
{
    "status": 200,
    "msg": "",
    "data": {
        "bars": [
            {
                "time": "1530288000000",
                "open": "0.00127236",  //Opening Price
                "high": "0.00159900",  //Highest Price
                "low": "0.00120082",  //Lowest Price
                "close": "0.00120148",  //Closing Price
                "volume": "539601.23460000",//Volume
                "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",  //type
        "symbol": "eos_btc",  //trading pair
        "from": "1530288000000",
        "to": "1506700800000",
        "size": "300"
    },
    "time": 1532671796,
    "microtime": "0.95496500 1532671796",
    "source": "api"
}

results matching ""

    No results matching ""