@diwakarpant16 FYI now to_datetime has to be set to today's date with time 00:00 to get latest data, otherwise throws error saying to_datetime must be less than current datetime.
@sujeetboran It is always recommended to verify the candle interval before saving in database or csv. You can try fetching data in batches and then can verify each batch before saving. In case of missing OHLCV, you can try to re-fetch the complete batch. Verification may add delay in processing but is always worth it.
@sugagenius Cheers to your persistence. :) Once done with all modifications, please make sure to send a pull request to the github repo so other algo traders can also be benefited.
@devendrav I know it is a year old question but I faced the same issue. The GoSDK uses gorilla websocket which is not useful for websockets on Angel One. It needs another kind of socket. So, there is basic flaw in the SDK.