Files
bybit-api/examples/apidoc/V5/Spot-Margin-Trade-(UTA)/get-status-and-leverage.js
2024-06-20 13:51:58 +02:00

19 lines
338 B
JavaScript

// https://api.bybit.com/v5/spot-margin-trade/state
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getSpotMarginState()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});