跳至主要内容

查詢已結清的借貸歷史訂單

權限: "現貨交易"

信息

支持查詢過去6個月的已完結訂單紀錄

HTTP 請求

GET /v5/crypto-loan/borrow-history

請求參數

參數是否必需類型說明
orderIdfalsestring借貸訂單ID
loanCurrencyfalsestring借貸幣種
collateralCurrencyfalsestring質押幣種
limitfalsestring每頁數量限制. [1, 100]. 默認: 10
cursorfalsestring游標,用於分頁

響應參數

參數類型說明
listarrayObject
> borrowTimestring借貸時間
> collateralCurrencystring質押幣種
> expirationTimestring借貸到期時間, 活期借貸總是 ""
> hourlyInterestRatestring按小時計利率
  • 活期借貸: 實時利率
  • 定期借貸: 定期固定利率
  • > initialCollateralAmountstring初始質押金額
    > initialLoanAmountstring初始借貸金額
    > loanCurrencystring借貸幣種
    > loanTermstring借貸期限 7, 14, 30, 90, 180天, 活期總是""
    > orderIdstring借貸訂單ID
    > repaidIntereststring總償還利息金額
    > repaidPenaltyIntereststring總償還罰息金額
    > statusinteger償還方式 1: 主動還清2: 強平還清
    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": [
    {
    "borrowTime": "1728546174028",
    "collateralCurrency": "BTC",
    "expirationTime": "1729148399000",
    "hourlyInterestRate": "0.0000010241",
    "initialCollateralAmount": "0.0494727",
    "initialLoanAmount": "1",
    "loanCurrency": "ETH",
    "loanTerm": "7",
    "orderId": "1793569729874260992",
    "repaidInterest": "0.00000515",
    "repaidPenaltyInterest": "0",
    "status": 1
    }
    ],
    "nextPageCursor": ""
    },
    "retExtInfo": {},
    "time": 1728632014857
    }