FyersOrderSocket - Not getting events like on_trades, on_positions etc.

Hi,

I’m trying to get regular data of my orders using FyersOrderSocket but other than on_connect, no other event is getting triggered. Any idea what’s wrong? My code snippet is below for reference:

My only guess was that fyers.connect() might be causing the issue but commenting that too doesn’t help.

order_ws_obj = order_ws.FyersOrderSocket(
    access_token=abcd,
    on_connect=onOrderSocketConnect,
    on_close=onClose,
    on_error=onOrderError,
    on_orders=onOrders,
    on_trades=onTrades,
    on_positions=onPositions,
    on_general=onGeneral,
    write_to_file=False,
    log_path=""
)
# Establish a connection to the Fyers WebSocket
fyers.connect()

# Establish a connection to the Fyers OrderSocket
order_ws_obj.connect()

# Keep the socket running to receive real-time data
order_ws_obj.keep_running()

Looking forward to hear from you.

Hey @111736892678591118822 ,

As checked from our side there is no issue with the socket and it is working fine , could you please DM your contact details so that we can connect and check this

@WWhYB2qrsx Sure will do that. But I’m using the code exactly how it’s given in API documentation, only change I made was access_token value. My regular WS (getting tick data) is working fine as before.

Anyways, will share my contact details if you wanna know something else too.

Thanks.