Skip to main content

Get the open position of a trading pair

GET

/az/future/market/v1/public/contract/open-interest

Limit Flow Rules​

1/s/ip
Note:This method does not require a signature.

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringtrueN/ATrading pair

Java

public void getKLine() {
String text = HttpUtil.get(URL + "/data/api/az/future/market/v1/getKLine?market=btc_usdt&type=1min&since=0");
System.out.println(text);
}

Response

{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "success",
"returnCode": 0,
"result": {
"symbol": "btc_usdt", //Trading pair
"openInterest": "222.6832", //Open position
"openInterestUsd": "24442143.06946",//Open value
"time": 1761985665202 //Timestamp
}
}