feat(#187, v3.1.2): add support for new orderCategory param for spotv3

This commit is contained in:
tiagosiebler
2022-10-23 10:59:37 +01:00
parent fce9bde6e5
commit a7d4f630b3
6 changed files with 20 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ import { WebsocketClient, WS_KEY_MAP, DefaultLogger } from '../src';
const market = 'linear';
// Inverse Perp
// const market = 'inverse';
// const market = 'spot';
// const market = 'spotv3';
// Note: the WebsocketClient defaults to testnet. Set `livenet: true` to use live markets.
const wsClient = new WebsocketClient(
@@ -50,5 +50,6 @@ import { WebsocketClient, WS_KEY_MAP, DefaultLogger } from '../src';
});
// subscribe to private endpoints
// check the api docs in your api category to see the available topics
wsClient.subscribe(['position', 'execution', 'order', 'wallet']);
})();