Skip to main content

Repay

You can repay partial loan. If there is interest occurred, interest will be repaid in priority

Permission: "Spot trade"

info
  • The repaid amount will be duducted from Funding account
  • 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/repay

Request Parameters

ParameterRequiredTypeComments
orderIdtruestringLoan order ID
amounttruestringRepay amount

Response Parameters

ParameterTypeComments
repayIdstringRepayment transaction ID

Request Example

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

{
"orderId": "1794267532472646144",
"amount": "100"
}

Response Example

{
"retCode": 0,
"retMsg": "request.success",
"result": {
"repayId": "1794271131730737664"
},
"retExtInfo": {},
"time": 1728629786884
}