跳到主要内容

全仓一键还款

限速规则 10次/1s (IP)

描述

HTTP请求

  • POST /api/v2/margin/crossed/account/flash-repay
请求示例
curl -X POST "https://api.bitget.com/api/v2/margin/crossed/account/flash-repay" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{"coin": "BTC"}'

请求参数

参数名参数类型是否必须描述
coinString全仓还款币种
不传则是全仓所有币种全部还款
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1695619576187,
"data":
{
"repayId": "3423423",
"coin": "ETH"
}
}

返回参数

返回字段参数类型字段说明
repayIdString还款id
coinString还款币种,如果是还全部,则coin没有值返回