historical data download working but not downloading yesterday i.e. 4th May data,
Provide additional information. Instrument and code as well if possible.
The API expects dates in a half-open interval [from, to). This means the to date is exclusive, so to include the required end date, ensure you pass to as required_day + 1.