@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.
@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.
@kvineeth Having a trading account itself puts you in a SLA. This could be an intermittent issue. Error AB1004, clearly suggest "Internal Server Error" as mentioned in the docs here https://smartapi.angelbroking.com/docs/Exceptions.