Repay Liability
You can manually repay the liabilities of Unified account
Permission: USDC Contracts
HTTP Request
POST /v5/account/quick-repayment
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | false | string | The coin with liability, uppercase only
|
Response Parameters
Parameter | Type | Comments |
---|---|---|
list | array | Object |
> coin | string | Coin used for repayment
|
> repaymentQty | string | Repayment qty |
Request Example
- HTTP
- Python
- Node.js
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"
}
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.repayLiability({
coin: 'USDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "SUCCESS",
"result": {
"list": [
{
"coin": "BTC",
"repaymentQty": "0.10549670"
},
{
"coin": "ETH",
"repaymentQty": "2.27768114"
}
]
},
"retExtInfo": {},
"time": 1701848610941
}