I need last 6 , 5 minute candle data for my logic. Should I use history () for the day OR implement websocket , save, read and convert to candle timeframe. This needs to be run in a loop for entire trading hours for a day. Which is the correct and usual approach? Also please help me if the solution is something else.. Thanks in advance..
Since you want 5 min candle data, you can use history API with 5 min resolution, That would seem better,
https://myapi.fyers.in/docs/#tag/Data-Api
Thank you for the quick response
what if I need 1 minute data. consider, i may not get updated candle every time, so assume I have to fetch 2 time s per minutes, In this scenario what should i go for? history api or web socket?