Skip to main content

Fixed-Rate Borrow

HTTP Request

POST/v5/spot-margin-trade/fixedborrow

Request Parameters

ParameterRequiredTypeComments
orderCurrencytruestringCurrency to borrow
orderAmounttruestringAmount to borrow
annualRatetruestringCustomizable annual interest rate, e.g., 0.02 means 2%
termtruestringFixed term. 7: 7 days; 14: 14 days; 30: 30 days; 90: 90 days; 180: 180 days
repayTypefalsestring1: Auto Repayment (default). Enable "Auto Repayment" to automatically repay your loan using assets in your UTA account when it is due, avoiding overdue penalties. 2: Transfer to flexible loan

Response Parameters

ParameterTypeComments
orderIdstringLoan order ID

Request Example

POST /v5/spot-margin-trade/fixedborrow HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1692696840996
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"orderCurrency": "BTC",
"orderAmount": "0.01",
"annualRate": "0.02",
"term": "30"
}

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"orderId": "FIXED_BORROW_4563567182f746ec9f73e4357264d8c7187"
},
"retExtInfo": {},
"time": 1775616124837
}