Files
bybit-api/examples/apidoc/V5/Position/set-auto-add-margin.js

21 lines
357 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.setAutoAddMargin({
category: 'linear',
symbol: 'BTCUSDT',
autoAddMargin: 1,
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});