查詢最大可減少的質押金額
查詢某個借貸訂單允許的最大可減少質押金額
權限: "現貨交易"
HTTP 請求
GET /v5/crypto-loan/max-collateral-amount
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
orderId | true | string | 借貸訂單ID |
響應參數
參數 | 類型 | 說明 |
---|---|---|
maxCollateralAmount | string | 最大可減少金額 |
請求示例
- 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);
});
響應示例
{
"retCode": 0,
"retMsg": "request.success",
"result": {
"maxCollateralAmount": "0.00210611"
},
"retExtInfo": {},
"time": 1728634291554
}