The Connection is being established but no message is being printed to the terminal. Here is my code.
import websocket, json
cc = 'btcusd'
interval = '1m'
socket = f'wss://stream.binance.com:9443/ws/{cc}@kline_{interval}'
print('This part of the code has been executed')
def on_open(ws):
print("Opened")
def on_message(ws, message):
print(message)
def on_close(ws):
print("Connection Closed")
ws = websocket.WebSocketApp(socket, on_open=on_open, on_message=on_message, on_close=on_close)
ws.run_forever()