跳到主要内容

调整杠杆

限速规则: 5次/1s (uid)

描述

调整杠杆倍数

HTTP请求

  • POST /api/v2/mix/account/set-leverage
请求示例
curl -X POST "https://api.bitget.com/api/v2/mix/account/set-leverage" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{"symbol":"btcusdt","productType":"USDT-FUTURES","marginCoin":"usdt","leverage":"20","holdSide":"long"}'

请求参数

参数名参数类型是否必须描述
symbolString交易币对
productTypeString产品类型
USDT-FUTURES USDT专业合约
COIN-FUTURES 混合合约
USDC-FUTURES USDC专业合约
SUSDT-FUTURES USDT专业合约模拟盘
SCOIN-FUTURES 混合合约模拟盘
SUSDC-FUTURES USDC专业合约模拟盘
marginCoinString保证金币种 必须大写
leverageString杠杆倍数
holdSideString持仓方向(全仓模式下不传,会忽略此参数)
long:多仓;
short:空仓
返回示例
{
"code": "00000",
"data": {
"symbol": "BTCUSDT",
"marginCoin": "USDT",
"longLeverage": "25",
"shortLeverage": "20",
"crossMarginLeverage": "20",
"marginMode": "crossed"
},
"msg": "success",
"requestTime": 1627293049406
}

返回参数

返回字段参数类型字段说明
symbolString币对名称
marginCoinString保证金币种
longLeverageString多仓杠杆
shortLeveageString空仓杠杆
crossMarginLeverageString全仓杠杆
marginModeString保证金模式。 isolated逐仓模式;crossed 全仓模式