跳至主要内容

查詢風險率

HTTP 請求

GET /v5/ins-loan/ltv

請求參數

返回參數

參數類型說明
ltvInfoarrayObject
> ltvstring風險率
> parentUidstring用戶ID
> subAccountUidsarray綁定的子UID
> unpaidAmountstring總負債 (USDT)
> unpaidInfoarray負債明細
>> tokenstring幣種
>> unpaidQtystring未還本金
>> unpaidIntereststring未還利息
> balancestring總資產(保證金幣種資產折算為USDT資產). 可以參考這裡了解詳細計算
> spotBalanceInfoarray現貨資產明細
>> tokenstring現貨保證金幣種
>> pricestring現貨保證金幣種價格
>> qtystring現貨保證金數量
> contractInfoarray合約資產明細
>> tokenstring合約保證金幣種
>> pricestring合約保證金幣種指數價格
>> qtystring合約保證金幣種數量 (合約可用餘額,不參與LTV計算)

請求示例

curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/private/margin-ltv' \
--header 'X-BAPI-SIGN-TYPE: 2' \
--header 'X-BAPI-API-KEY: XXXXXXXXXXX' \
--header 'X-BAPI-TIMESTAMP: 1669367335035' \
--header 'X-BAPI-RECV-WINDOW: 5000' \
--header 'X-BAPI-SIGN: XXXXXXXX'

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"ltvInfo": [
{
"ltv": "0.1147",
"parentUid": "999805",
"subAccountUids": [
"999805"
],
"unpaidAmount": "",
"unpaidInfo": [
{
"token": "USDT",
"unpaidQty": "6351.49614274",
"unpaidInterest": "264.0137162"
}
],
"balance": "57626.875915433333333332400000000",
"spotBalanceInfo": [
{
"token": "BTC",
"price": "16375.621333333333333332",
"qty": "0.2"
},
....
{
"token": "XRP",
"price": "0.409517",
"qty": "10000"
}
],
"contractInfo": [
{
"token": "USDT",
"price": "1",
"qty": "0"
}
]
}
]
},
"retExtInfo": {},
"time": 1669367335608
}