跳到主要内容

调整杠杆

  • POST /capi/v2/account/leverage

权重(IP): 10, 权重(UID): 20

请求参数

参数名类型是否必填说明
symbolString币对名
marginModeInteger保证金模式
1: 全仓模式
3: 逐仓模式
必须设置为账户当前使用的模式
longLeverageString多仓杠杆倍数,在全仓模式下,必须与shortLeverage保持一致
shortLeverageString空仓杠杆倍数,在全仓模式下,必须与longLeverage保持一致

请求示例

curl -X POST "https://api-contract.weex.com/capi/v2/account/leverage" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol":"cmt_bchusdt","marginMode":1,"longLeverage":"2"}'

返回参数

参数名类型说明
msgstring返回信息
requestTimestring时间戳
codestring返回码

返回示例

{
"msg": "success",
"requestTime": 1713339011237,
"code": "200"
}