I'm trying to download post-earnings return data for a list of stocks.
For example, let's say AAPL, BA, C report on 1/1, 2/1, and 3/1 and I want returns over the 7 days after they report. How should I get the lists of start and end dates into this code?
returns = ek.get_data(instruments = ['AAPL.O', 'BA.N', 'C.N'], fields = ['TR.TotalReturn'], parameters= {'Sdate': ???, 'EDate': ???})