feat(): added Crypto Loan endpoints
This commit is contained in:
19
examples/apidoc/V5/Crypto-Loan/repay.js
Normal file
19
examples/apidoc/V5/Crypto-Loan/repay.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.repayCryptoLoan({
|
||||
orderId: '1794267532472646144',
|
||||
amount: '100',
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user