Skip to main content

Get Aggregated Market Information for Specific Trading Pair

Type: GET

Description: /future/market/v1/public/q/agg-ticker

Note:

This method does not require a signature.

Parameters

NameTypeMandatoryDefaultDescriptionRanges
symbolstringtrueN/ATrading pair

Response Example

Java
public void getKLine() {
String text = HttpUtil.get(URL + "/data/api/future/market/v1/getKLine?market=btc_usdt&type=1min&since=0");
System.out.println(text);
}
Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {
"a": "", // 24h volume
"ap": "", // ask price
"bp": "", // bid price
"c": "", // Latest price
"h": "", // Highest price in 24 hours
"i": "", // index price
"l": "", // Lowest price in 24 hours
"m": "", // mark price
"o": "", // The first transaction price 24 hours ago
"r": "", // 24h price fluctuation limit
"s": "", // Trading pair
"t": 0, // Time
"v": "" // 24h Turnover
},
"returnCode": 0
}