Closed kenchambers closed 2 years ago
Figured it out! i had the wrong string for channel:
wrong:
const channel = {
name: 'WebSocketChannelName.TICKER',
product_ids: ['BTC-USD', 'ETH-EUR'],
};
right:
const channel = {
name: "ticker",
product_ids: ['BTC-USD', 'ETH-EUR'],
};
reproduction
After using your example here: https://github.com/bennycode/coinbase-pro-node/blob/main/src/demo/websocket-ticker.ts
When i console log
subscriptions
inside of WebSocketEvent.ON_SUBSCRIPTION_UPDATEI am not getting any channels?
output:
Maybe docs just need to be updated?
thanks so much! great library