修改保证金
POST
/az/future/user/v1/position/margin
限流规则
200/s/apikey
请求参数
| 参数 | 类型 | 是否必须 | 默认值 | 描述 | 取值范围 |
|---|---|---|---|---|---|
| symbol | string | true | N/A | 交易对 | |
| margin | number | true | N/A | 数量 | |
| positionSide | string | true | N/A | 持仓方向:LONG;SHORT | |
| type | string | true | N/A | 调整方向(ADD:增加逐仓保证金;SUB:减少逐仓保证金) | ADD;SUB |
| marginCoin | string | false | quoteCoin | 保证金币种(可选,默认计价币) |
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
}