feat(): added Crypto Loan endpoints
This commit is contained in:
22
examples/apidoc/V5/Crypto-Loan/borrow.js
Normal file
22
examples/apidoc/V5/Crypto-Loan/borrow.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user