feat(): add copy trading ws topic example

This commit is contained in:
tiagosiebler
2023-06-01 14:36:37 +01:00
parent efa857a526
commit 8d08540ead
2 changed files with 62 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ const secret = process.env.API_SECRET;
const market = 'contractUSDT';
// const market = 'contractInverse';
// Note: the WebsocketClient defaults to testnet. Set `livenet: true` to use live markets.
const wsClient = new WebsocketClient(
{
key: key,
@@ -34,7 +33,7 @@ const wsClient = new WebsocketClient(
// enable_time_sync: true,
},
},
logger
logger,
);
wsClient.on('update', (data) => {