Skip to main content

Change Position Type

POST

/az/future/user/v1/position/change-type

Limit Flow Rules​

200/s/apikey

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringtrueN/ATrading pair
positionSidestringfalseN/APosition sideLONG;SHORT
positionTypestringtrueN/APosition typeCROSSED;ISOLATED
positionTypeAllSymbolbooleanfalseN/AWhether to apply the position type change to all trading pairs
marginCoinstringfalsequoteCoinMargin coin (optional, defaults to the quote coin)

Java

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

Response

{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {},
"returnCode": 0
}