查詢風險率
HTTP 請求
GET /v5/ins-loan/ltv-convert
請求參數
無
返回參數
參數 | 類型 | 說明 |
---|---|---|
ltvInfo | array | Object |
> ltv | string | 風險率 |
> rst | string | 剩餘清算時間(UTC 時間,以秒為單位)。 未觸發時顯示為空字串。 |
> parentUid | string | 被指定綁定為機構借貸產品的風險單元Id |
> subAccountUids | array | 綁定場外借貸產品的UID |
> unpaidAmount | string | 總負債 (USDT) |
> unpaidInfo | array | 負債明細 |
>> token | string | 幣種 |
>> unpaidQty | string | 未還本金 |
>> unpaidInterest | string | 該字段無效, 暫時請忽略 |
> balance | string | 總資產(保證金幣種資產折算為USDT資產). 可以參考這裡了解詳細計算 |
> balanceInfo | array | 資產明細 |
>> token | string | 保證金幣種 |
>> price | string | 保證金幣種價格 |
>> qty | string | 保證金數量 |
>> convertedAmount | string | 保證金折算金額 |
請求示例
- HTTP
- Python
- Node.js
GET /v5/ins-loan/ltv-convert HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1686638165351
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getInstitutionalLendingLTVWithLadderConversionRate()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"retCode": 0,
"retMsg": "",
"result": {
"ltvInfo": [
{
"ltv": "0.75",
"rst": "",
"parentUid": "xxxxx",
"subAccountUids": [
"60568258"
],
"unpaidAmount": "30",
"unpaidInfo": [
{
"token": "USDT",
"unpaidQty": "30",
"unpaidInterest": "0"
}
],
"balance": "40",
"balanceInfo": [
{
"token": "USDT",
"price": "1",
"qty": "40",
"convertedAmount": "40"
}
]
}
]
},
"retExtInfo": {},
"time": 1686638166323
}