Skip to main content

Manual Repay

info
  • If neither coin nor amount is passed in input parameter, then repay all the liabilities.
  • If coin is passed in input parameter and amount is not, the coin will be repaid in full.
important
  1. When repaying, the system will first use the spot available balance of the debt currency. If that’s not enough, the remaining amount will be repaid by converting other assets according to the liquidation order.
  2. If you only want to repay using your spot balance and don't want to trigger currency convert repayment, please refer to Manual Repay Without Asset Conversion
  3. Repayment is prohibited between 04:00 and 05:30 per hour. Interest is calculated based on the BorrowAmount at 05:00 per hour.

HTTP Request

POST /v5/account/repay

Request Parameters

ParameterRequiredTypeComments
coinfalsestringcoin name, uppercase only
amountfalsestringRepay amount. If coin is not passed in input parameter, amount can not be passed in input parameter

Response Parameters

ParameterTypeComments
resultarrayObject
> resultStatusstring
  • P: Processing
  • SU: Success
  • FA: Failed

Request Example

POST /v5/account/repay HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1675842997277
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"coin":"BTC",
"amount":"0.01"
}

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"resultStatus": "P"
},
"retExtInfo": {},
"time": 1756295680801
}