Get Trading Pair Information of Kline
GET
/az/future/market/v1/public/q/kline
Note:This method does not require a signature.
Parameters
| Parameter | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| symbol | string | true | N/A | Trading pair | |
| interval | string | true | N/A | Time-interval | 1m;3m;5m;15m;30m;1h;2h;4h;6h;8h;12h;1d;2d;3d;1w;1M |
| startTime | integer | false | current time | Start time | |
| endTime | integer | false | current time | End time | |
| limit | integer | false | 500 | Limit |
Java
public void getKLine() {
String text = HttpUtil.get(URL + "/data/api/v1/getKLine?market=btc_usdt&type=1min&since=0");
System.out.println(text);
}
Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "success",
"returnCode": 0,
"result": [
{
"s": "btc_usdt", //Symbol
"p": "btc_usdt", //Trading pair
"t": 1761981840000, //Timestamp
"o": "110099.8", //Open price
"c": "110134.7", //Close price
"h": "110134.8", //Highest price
"l": "110089.3", //Lowest price
"a": "2998", //Volume
"v": "33010.77054" //Turnover
}
]
}