feat(v4.1.4): full spread trading support
This commit is contained in:
21
examples/apidoc/V5/Spread-Trading/amend-spread-order.js
Normal file
21
examples/apidoc/V5/Spread-Trading/amend-spread-order.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apiKey',
|
||||
secret: 'apiSecret',
|
||||
});
|
||||
|
||||
client
|
||||
.amendSpreadOrder({
|
||||
symbol: 'SOLUSDT_SOL/USDT',
|
||||
orderLinkId: '1744072052193428475',
|
||||
price: '14',
|
||||
qty: '0.2',
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user