Skip to main content

Repay Coins

Repay Coins

Description​

Repay Coins

HTTP Request​

  • POST /api/v3/loan/repay
  • Rate limit: 10/sec/UID
  • Permission: UTA mgt. (read & write)
Request
curl -X POST "https://api.bitget.com/api/v3/loan/repay" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{"orderId":"BTC","repayAll":"yes""}'

Request Parameters​

ParameterTypeRequiredComments
orderIdStringYesOrder ID
repayAllStringYesRepay in full
yes
no
If yes, the repayment amount will be ignored
amountStringNoRepayment amount
Required when repayAll=no
repayUnlockStringNoWhether to redeem collateral
yesredeem
nodo not redeem
Default is no if omitted.
Not effective when repayAll=yes
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1770191055753,
"data": {
"loanCoin": "USDT",
"pledgeCoin": "BGB",
"repayAmount": "1.00000713",
"payInterest": "0.00000712",
"repayLoanAmount": "1.00000001",
"repayUnlockAmount": "0.50791233"
}
}

Response Parameters​

ParameterTypeComments
loanCoinStringBorrowed coin
pledgeCoinStringCollateral coin
repayAmountStringRepayment amount
payInterestStringInterest paid (in the borrowed coin)
repayLoanAmountStringPrincipal repaid (in the borrowed coin)
repayUnlockAmountStringRedeemed (unlocked) amount

How was your Reading Experience with us?

★
★
★
★
â˜