Files
bybit-api/examples/apidoc/V5/Crypto-Loan/get-repayment-transaction-history.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
.getRepaymentHistory({ repayId: '1794271131730737664' })
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});