全仓还款
限速规则 10次/1s (IP)
描述
HTTP请求
- POST /api/v2/margin/crossed/account/repay
请求示例
curl -X POST "https://api.bitget.com/api/v2/margin/crossed/account/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", "repayAmount":"0.1"}'
请求参数
参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|
coin | String | 是 | 还款币种 |
repayAmount | String | 是 | 还款数量 (最长为8位小数) |
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1695636742119,
"data": {
"coin": "USDT",
"repayId": "12313123213",
"remainDebtAmount": "0.2",
"repayAmount": "0.1"
}
}
返回参数
返回字段 | 参数类型 | 字段说明 |
---|---|---|
remainDebtAmount | String | 剩余欠款 |
repayId | String | 还款ID |
coin | String | 币种 |
repayAmount | String | 还款金额 |