跳至主要内容

查詢進行中的借貸訂單

權限: "現貨交易"

HTTP 請求

GET /v5/crypto-loan/ongoing-orders

請求參數

參數是否必需類型說明
orderIdfalsestring借貸訂單ID
loanCurrencyfalsestring借貸幣種
collateralCurrencyfalsestring質押幣種
loanTermTypefalsestring
  • 1: 定期, 當查詢定期時, loanTerm字段必傳
  • 2: 活期
  • 默認查詢所有期限類型
    loanTermfalsestring7, 14, 30, 90, 180天, 當loanTermType=1時有效
    limitfalsestring每頁數量限制. [1, 100]. 默認: 10
    cursorfalsestring游標,用於分頁

    響應參數

    參數類型說明
    listarrayObject
    > collateralAmountstring質押金額
    > collateralCurrencystring質押幣種
    > currentLTVstring當前的LTV
    > expirationTimestring借貸到期時間, 活期總是""
    > hourlyInterestRatestring按小時計利率
  • 活期借貸: 實時利率
  • 定期借貸: 定期固定利率
  • > loanCurrencystring借貸幣種
    > loanTermstring借貸期限, 7, 14, 30, 90, 180天, 活期總是""
    > orderIdstring借貸訂單ID
    > residualIntereststring未償還利息
    > residualPenaltyIntereststring未償還罰息
    > totalDebtstring未償還本金
    nextPageCursorstring下一頁游標

    請求示例

    GET /v5/crypto-loan/ongoing-orders?orderId=1793683005081680384 HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1728630979731
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "list": [
    {
    "collateralAmount": "0.0964687",
    "collateralCurrency": "BTC",
    "currentLTV": "0.4161",
    "expirationTime": "1731149999000",
    "hourlyInterestRate": "0.0000010633",
    "loanCurrency": "USDT",
    "loanTerm": "30",
    "orderId": "1793683005081680384",
    "residualInterest": "0.04016",
    "residualPenaltyInterest": "0",
    "totalDebt": "1888.005198"
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728630980861
    }