@jayesh_sapkale The IP address from where the order API originates should be same as that of the IP added while making the API key. Or else, the above error will come.
@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.