跳至主要内容

借款

權限: "現貨交易"

信息
  • 借款發放到資金帳戶
  • 質押金將從資金帳戶扣減, 因此確保資金帳戶有足額質押幣種

HTTP 請求

POST /v5/crypto-loan/borrow

請求參數

參數是否必需類型說明
loanCurrencytruestring借貸幣種
loanAmountfalsestring借貸金額
  • 當抵押金額未填時, 該字段必填
  • loanTermfalsestring借貸期限
  • 活期: 傳null或者不傳字段
  • 定期: 7, 14, 30, 90, 180
  • collateralCurrencytruestring質押幣種
    collateralAmountfalsestring質押金額
  • 當借貸金額未填時, 該字段必填
  • 響應參數

    參數類型說明
    orderIdstring借貸訂單ID

    請求示例

    POST /v5/crypto-loan/borrow HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXXX
    X-BAPI-API-KEY: XXXXXXX
    X-BAPI-TIMESTAMP: 1728629356551
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 140

    {
    "loanCurrency": "USDT",
    "loanAmount": "550",
    "collateralCurrency": "BTC",
    "loanTerm": null,
    "collateralAmount": null
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "request.success",
    "result": {
    "orderId": "1794267532472646144"
    },
    "retExtInfo": {},
    "time": 1728629357820
    }