Manual Repay
info
- If neither
coinnoramountis passed in input parameter, then repay all the liabilities. - If
coinis passed in input parameter andamountis not, the coin will be repaid in full.
important
- 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.
- 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
- 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
| Parameter | Required | Type | Comments |
|---|---|---|---|
| coin | false | string | coin name, uppercase only |
| amount | false | string | Repay amount. If coin is not passed in input parameter, amount can not be passed in input parameter |
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| result | array | Object |
| > resultStatus | string |
|
Request Example
- HTTP
- Python
- Node.js
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
}