feat(v4.1.6): fast execution topics should use authenticated stream

This commit is contained in:
tiagosiebler
2025-05-07 08:57:37 +01:00
parent 4573f4b710
commit 12a5bef71f
4 changed files with 14 additions and 6 deletions

View File

@@ -10,8 +10,8 @@ const logger = {
// trace: (...params) => console.log('trace', ...params),
};
const key = process.env.API_KEY;
const secret = process.env.API_SECRET;
const key = process.env.API_KEY_COM;
const secret = process.env.API_SECRET_COM;
/**
* Prepare an instance of the WebSocket client. This client handles all aspects of connectivity for you:
@@ -62,9 +62,12 @@ wsClient.on('reconnected', (data) => {
*/
wsClient.subscribeV5('position', 'linear');
wsClient.subscribeV5('execution', 'linear');
wsClient.subscribeV5(['order', 'wallet', 'greeks'], 'linear');
wsClient.subscribeV5('execution', 'linear');
// wsClient.subscribeV5('execution.fast', 'linear');
// wsClient.subscribeV5('execution.fast.linear', 'linear');
/**
* The following has the same effect as above, since there's only one private endpoint for V5 account topics:
*/