Files
bybit-api/examples/apidoc/V5/Broker/get-exchange-broker-account-info.js
2024-06-20 13:51:58 +02:00

19 lines
344 B
JavaScript

// https://api.bybit.com/v5/broker/account-info
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getExchangeBrokerAccountInfo()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});