Files
bybit-api/examples/apidoc/V5/Account/set-mmp.js

23 lines
389 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.setMMP({
baseCoin: 'ETH',
window: '5000',
frozenPeriod: '100000',
qtyLimit: '50',
deltaLimit: '20',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});