Borrow
Permission: "Spot trade"
info
- The loan funds are released to the Funding account
- The collateral funds are deducted from the Funding account, so make sure you have enough collateral amount in the funding wallet
HTTP Request
POST /v5/crypto-loan/borrow
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
loanCurrency | true | string | Loan coin name |
loanAmount | false | string | Amount to borrow |
loanTerm | false | string | Loan term null or not passed7 , 14 , 30 , 90 , 180 days |
collateralCurrency | true | string | Currency used to mortgage |
collateralAmount | false | string | Amount to mortgage |
Response Parameters
Parameter | Type | Comments |
---|---|---|
orderId | string | Loan order ID |
Request Example
- HTTP
- Python
- Node.js
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
}
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.borrowCryptoLoan({
loanCurrency: 'USDT',
loanAmount: '550',
collateralCurrency: 'BTC',
loanTerm: null,
collateralAmount: null,
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "request.success",
"result": {
"orderId": "1794267532472646144"
},
"retExtInfo": {},
"time": 1728629357820
}