feat(): add copy trading ws topic example
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user