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

17 lines
320 B
JavaScript

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