Files
bybit-api/examples/apidoc/V5/Crypto-Loan/get-completed-loan-order-history.js
2024-10-15 12:34:43 +02:00

17 lines
329 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getCompletedLoanOrderHistory({ orderId: '1794267532472646144' })
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});