Get Max. Allowed Reduction Collateral Amount
Query the maximum allowed reduction collateral amount
Permission: "Spot trade"
HTTP Request
GET /v5/crypto-loan/max-collateral-amount
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
orderId | true | string | Loan coin ID |
Response Parameters
Parameter | Type | Comments |
---|---|---|
maxCollateralAmount | string | Max. reduction collateral amount |
Request Example
- HTTP
- Python
- Node.js
GET /v5/crypto-loan/max-collateral-amount?orderId=1794267532472646144 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1728634289933
X-BAPI-RECV-WINDOW: 5000
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getMaxAllowedReductionCollateralAmount({ orderId: '1794267532472646144' })
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "request.success",
"result": {
"maxCollateralAmount": "0.00210611"
},
"retExtInfo": {},
"time": 1728634291554
}