Hello,
I am student trying to learn to program, develop simple trading algorithms to understand price behavior during certain events. I am trying to develop an algorithm that will show me how the price of SPY changes before the ex-dividend date and after the pay date.
I looked at the API, but I can't find something that will help me buy a certain amount of shares around the ex-dividend date and sell it after the pay date. As I understood it, it is not yet implemented. Is there anything I can do to write an algorithm that will accomplish what I need? I would also like to plot my position during that time period. I hope what I said made sense.
Any help that would lead me to getting started would be appreciated.
Thank you,
Jaime