Hello there:
When I try to generate the **Start ** and End Dates for the API
I get : APIError: invalid start
Here is the code:
Symbol=“AAPL”
end = datetime.datetime.today()
dateeee= end- pd.tseries.offsets.BDay(1)
start=(dateeee.strftime(’%Y-%m-%d’))
Alpaca= api.get_bars(Symbol, TimeFrame.Day, start,end , adjustment=‘raw’).df
Thank you for the help in Advance!