i am geteting this error 'FyersDataSocket' object has no attribute 'history'

kindly guide

I don’t think I understood your question correctly. Are you trying to get historical data? then you have to use fyers historical data API, not WebSocket.

@manjula.naika.e97zx00g if you gave proper details ppl will be willing to help otherwise some will avoid

Hi @manjula.naika.e97zx00g

Looks like you are fetching the history data from websocket.
Websocket is for live data not for history .

Please read api docs , you will get more clarity
https://myapi.fyers.in/docsv3
Thanks

thank u all i got the answer

Welcome @manjula.naika.e97zx00g