Files
bybit-api/examples/apidoc/V5/Position/set-risk-limit.js

21 lines
346 B
JavaScript

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