Skip to main content

Repay Liability

You can manually repay the liabilities of Unified account

Permission: USDC Contracts

HTTP Request

POST /v5/account/quick-repayment

Request Parameters

ParameterRequiredTypeComments
coinfalsestringThe coin with liability, uppercase only
  • Input the specific coin: repay the liability of this coin in particular
  • No coin specified: repay the liability of all coins

Response Parameters

ParameterTypeComments
listarrayObject
> coinstringCoin used for repayment
  • The order of currencies used to repay liability is based on liquidationOrder from this endpoint
> repaymentQtystringRepayment qty

Request Example

POST /v5/account/quick-repayment HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1701848610019
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 22

{
"coin": "USDT"
}

Response Example

{
"retCode": 0,
"retMsg": "SUCCESS",
"result": {
"list": [
{
"coin": "BTC",
"repaymentQty": "0.10549670"
},
{
"coin": "ETH",
"repaymentQty": "2.27768114"
}
]
},
"retExtInfo": {},
"time": 1701848610941
}