跳至主要内容

查詢借貸訂單信息

查詢借貸訂單的詳情

提示
  • 默認查詢過去2年的數據
  • 最多支持查詢過去2年的數據

HTTP 請求

GET /v5/ins-loan/loan-order

請求參數

參數是否必須類型說明
orderIdfalsestring借貸訂單ID. 若不傳,則返回全部. 按照loanTime降序排列
startTimefalseinteger開始時間戳 (毫秒)
endTimefalseinteger結束時間戳 (毫秒)
limitfalseinteger返回數量限制. [1, 100], 默認: 10

返回參數

參數類型說明
loanInfoarrayObject
> orderIdstring借貸訂單ID
> orderProductIdstring產品ID
> parentUidstring綁定場外借貸產品的UID
> loanTimestring放款時間(毫秒)
> loanCoinstring借款幣種
> loanAmountstring借款金額
> unpaidAmountstring未還本金
> unpaidIntereststring未還利息
> repaidAmountstring已還本金
> repaidIntereststring已還利息
> interestRatestring日利率
> statusstring1:未還清; 2:已還清
> leveragestring該借貸產品的最大槓桿倍數
> supportSpotstring是否支持現貨. 0:否; 1:是
> supportContractstring是否支持合約 . 0: 否; 1: 是
> supportMarginTradingstring是否支持現貨槓桿交易. 0: 否; 1: 是
> withdrawLinestring限制提幣線
> transferLinestring限制劃轉線
> spotBuyLinestring限制現貨買入線
> spotSellLinestring限制現貨交易線
> contractOpenLinestring限制USDT永續合約開倉線
> deferredLiquidationLinestring延期清算線
> deferredLiquidationTimestring延期清算時間
> reserveTokenstring備付金幣種
> reserveQuantitystring備付金幣種數量
> liquidationLinestring強平線
> stopLiquidationLinestring停止強平線
> contractLeveragestring允許USDT永續默認開倉倍數
> transferRatiostring現貨帳戶到合約帳戶的借貸資金劃轉比例
> spotSymbolsarray現貨交易對白名單. 若沒有配置白名單, 則返回[]
> contractSymbolsarrayUSDT永續合約交易對白名單
  • 若沒有配置白名單, 則返回[]
  • 若supportContract="0", 則也是[]
> supportUSDCContractstring是否支持USDC合約交易. '0':否; '1':是
> supportUSDCOptionsstring是否支持期權交易. '0':false; '1':true
> USDTPerpetualOpenLinestring限制USDT永續的開倉線
> USDCContractOpenLinestring限制USDC合約的開倉線
> USDCOptionsOpenLinestring限制期權的開倉線
> USDTPerpetualCloseLinestring限制USDT永續的交易線
> USDCContractCloseLinestring限制USDC合約的交易線
> USDCOptionsCloseLinestring限制期權的交易線
> USDCContractSymbolsarrayUSDC合約的白名單交易對
  • 若沒有配置白名單, 則是空數組[], 可以交易任何合約
  • 如果 supportUSDCContract="0", 則也是空數組[]
> USDCOptionsSymbolsarray期權的白名單交易對
  • 若沒有配置白名單, 則是空數組[], 可以交易任何合約
  • 如果 supportUSDCOptions="0", 則也是空數組[]
> marginLeveragestring全倉槓桿允許可開的最高槓桿
> USDTPerpetualLeveragearrayObject
  • 如果 supportContract="0", 則返回空數組[]
  • 如果沒有配置USDT永續交易對白名單, 則返回所有的合約和槓桿
  • 如果有白名單配置, 則只返回白名單列表的合約和槓桿
>> symbolstring合約名
>> leveragestring最高可開槓桿
> USDCContractLeveragearrayObject
  • 如果 supportUSDCContract="0", 則返回空數組[]
  • 如果沒有配置USDC合約交易對白名單, 則返回所有的合約和槓桿
  • 如果有白名單配置, 則只返回白名單列表的合約和槓桿
>> symbolstring合約名
>> leveragestring最高可開槓桿

請求示例

GET /v5/ins-loan/loan-order HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1678687874060
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"loanInfo": [
{
"orderId": "1468005106166530304",
"orderProductId": "96",
"parentUid": "1631521",
"loanTime": "1689735916000",
"loanCoin": "USDT",
"loanAmount": "204",
"unpaidAmount": "52.07924201",
"unpaidInterest": "0",
"repaidAmount": "151.92075799",
"repaidInterest": "0",
"interestRate": "0.00019178",
"status": "1",
"leverage": "4",
"supportSpot": "1",
"supportContract": "1",
"withdrawLine": "",
"transferLine": "",
"spotBuyLine": "0.71",
"spotSellLine": "0.71",
"contractOpenLine": "0.71",
"liquidationLine": "0.75",
"stopLiquidationLine": "0.35000000",
"contractLeverage": "7",
"transferRatio": "1",
"spotSymbols": [],
"contractSymbols": [],
"supportUSDCContract": "1",
"supportUSDCOptions": "1",
"USDTPerpetualOpenLine": "0.71",
"USDCContractOpenLine": "0.71",
"USDCOptionsOpenLine": "0.71",
"USDTPerpetualCloseLine": "0.71",
"USDCContractCloseLine": "0.71",
"USDCOptionsCloseLine": "0.71",
"USDCContractSymbols": [],
"USDCOptionsSymbols": [],
"deferredLiquidationLine":"",
"deferredLiquidationTime":"",
"marginLeverage": "4",
"USDTPerpetualLeverage": [
{
"symbol": "SUSHIUSDT",
"leverage": "7"
},
{
"symbol": "INJUSDT",
"leverage": "7"
},
{
"symbol": "RDNTUSDT",
"leverage": "7"
},
{
"symbol": "ZRXUSDT",
"leverage": "7"
},
{
"symbol": "HIGHUSDT",
"leverage": "7"
},
{
"symbol": "WAVESUSDT",
"leverage": "7"
},
...
{
"symbol": "ACHUSDT",
"leverage": "7"
},
{
"symbol": "SUNUSDT",
"leverage": "7"
}
],
"USDCContractLeverage": [
{
"symbol": "BTCPERP",
"leverage": "8"
},
{
"symbol": "BTC-Futures",
"leverage": "8"
},
...
{
"symbol": "ETH-Futures",
"leverage": "8"
},
{
"symbol": "SOLPERP",
"leverage": "8"
},
{
"symbol": "ETHPERP",
"leverage": "8"
}
]
}
]
},
"retExtInfo": {},
"time": 1689745773187
}