Hi, I have created Python code based on the V3 documents. The hist api and websocket is working fine independent. But when I use them together in my live code, there is no feed coming from websocket. I need help. Can anyone screenshare with me?
response = fyers.history(data=data)
AttributeError: ‘FyersDataSocket’ object has no attribute ‘history’
In fyersApi log file, below error is coming.
{“level”:“ERROR”,“location”:“[exception:108] fyers_logger”,“message”:“‘fyToken’”,“timestamp”:“2024-02-14 13:26:12,821+0530”,“service”:“FyersDataSocket”,“exception”:“Traceback (most recent call last):\n File "C:\Users\arind\anaconda3\lib\site-packages\fyers_apiv3\FyersWebsocket\data_ws.py", line 87, in symbol_to_hsmtoken\n values["fyToken"] = data["v"]["fyToken"]\nKeyError: ‘fyToken’”,“exception_name”:“KeyError”}
{“level”:“ERROR”,“location”:“[exception:108] fyers_logger”,“message”:“‘NoneType’ object is not subscriptable”,“timestamp”:“2024-02-14 13:26:12,821+0530”,“service”:“FyersDataSocket”,“exception”:“Traceback (most recent call last):\n File "C:\Users\arind\anaconda3\lib\site-packages\fyers_apiv3\FyersWebsocket\data_ws.py", line 1327, in __symbol_conversion\n symbol_dict.update(symbol_dict, **symbol_value[0])\nTypeError: ‘NoneType’ object is not subscriptable”,“exception_name”:“TypeError”}