I followed tutorial as below on Jupyter Notebook.
streaming_prices = ek.StreamingPrices(
instruments = ['GBP=','JPY=', 'CAD='],
fields = ['CF_BID','CF_ASK','OPEN_PRC', 'CF_HIGH','CF_LOW', 'CF_CLOSE'])
streaming_prices.open()
I got error when I run the code.
streaming_prices.open()
the error message is as below.
2021-04-21 17:01:47,086 P[15720] [WebSocket 0 15960] error from callback <bound method StreamConnection._ws_message of <StreamConnection(WebSocket 0, started daemon 15960)>>: the JSON object must be str, bytes or bytearray, not WebSocketApp
this code works in Pycharm but not in Jupyter Notebook.
could you let me know why does it happen.
Thank you in advance.