Files
bybit-api/examples/apidoc/V5/Account/get-transaction-log.js

21 lines
363 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getTransactionLog({
accountType: 'UNIFIED',
category: 'linear',
currency: 'USDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});