feat(): start adding per-endpoint examples

This commit is contained in:
tiagosiebler
2023-06-07 11:39:59 +01:00
parent d79a09a184
commit af8b3f3e82
13 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.batchAmendOrders('option', [
{
symbol: 'ETH-30DEC22-500-C',
orderIv: '6.8',
orderId: 'b551f227-7059-4fb5-a6a6-699c04dbd2f2',
},
{
symbol: 'ETH-30DEC22-700-C',
price: '650',
orderId: 'fa6a595f-1a57-483f-b9d3-30e9c8235a52',
},
])
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});