I have coinbase websocket where I am trying to consume the realtime data level2_bactch and plot it into the stream line chart js.
I have restructured the data acccordingly but not able to print it.
https://codesandbox.io/p/sandbox/dazzling-neumann-qjw7yv
https://docs.cdp.coinbase.com/exchange/docs/websocket-channels/#level2-channel
- I have this in my local where, I have the websocket inside my component and in the example i am trying insde a custom hook