Skip to main content

Repay

Fully or partially repay a loan. If interest is due, that is paid off first, with the loaned amount being paid off only after due interest.

Permission: "Spot trade"
UID rate limit: 1 req / second

info
  • The repaid amount will be deducted from the Funding wallet.
  • The collateral amount will not be auto returned when you don't fully repay the debt, but you can also adjust collateral amount

HTTP Request

POST /v5/crypto-loan-flexible/repay

Request Parameters

ParameterRequiredTypeComments
loanCurrencytruestringLoan currency
amounttruestringRepay amount

Response Parameters

ParameterTypeComments
repayIdstringRepayment transaction ID

Request Example

POST /v5/crypto-loan-flexible/repay HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1752569628364
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 52

{
"loanCurrency": "BTC",
"amount": "0.005"
}

Response Example

{
"retCode": 0,
"retMsg": "ok",
"result": {
"repayId": "1771"
},
"retExtInfo": {},
"time": 1752569614549
}