Change Position Type
POST
/az/future/user/v1/position/change-type
Limit Flow Rules
200/s/apikey
Parameters
| Parameter | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| symbol | string | true | N/A | Trading pair | |
| positionSide | string | false | N/A | Position side | LONG;SHORT |
| positionType | string | true | N/A | Position type | CROSSED;ISOLATED |
| positionTypeAllSymbol | boolean | false | N/A | Whether to apply the position type change to all trading pairs | |
| marginCoin | string | false | quoteCoin | Margin 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
}