Skip to main content

Get Position Information (Maker)

GET

/az/future/cache/v1/positions

Note​

For Market Makers Only

Limit Flow Rules​

200/s/apikey

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringfalseN/ATrading pair (see the position information of all trading pairs if don't pass parameters)

Java

public void getMarketConfig() {
String text = HttpUtil.get(URL + "/data/api/user/v1/getMarketConfig");
System.out.println(text);
}

Response

{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": [
{
"symbol": "btc_usdt", //Trading pair
"positionType": "CROSSED", //Position type
"positionSide": "LONG", //Position side
"leverage": 20, //Leverage
"positionSize": "7000", //Position quantity (base coin)
"closeOrderSize": "0", //Quantity of open order (base coin)
"availableCloseSize": "7000", //Available quantity (base coin)
"entryPrice": "110000", //Average opening price
"openOrderSize": "0", //Opening warehouse orders occupied
"isolatedMargin": "3850", //Isolated Margin
"openOrderMarginFrozen": "0", //Occupied open position margin
"realizedProfit": "880.05305855", //Realized profit and loss
"closeProfit": "0", //Closed Profit and Loss
"totalFee": "-77.846426", //Total fee
"totalFundFee": "5857.22457151", //Total fund fee
"contractSize": "0.0001", //Contract multiplier(face value)
"markPrice": "106896.5", //Mark Price
"updatedTime": "1762221600282"
}
],
"returnCode": 0
}