For my first "algorithm" I would like to create a program that buys a certain stock every month two minutes after the Fed announcement and holds it through the rest of the day. Obviously, I'm pretty new to programming. I'm thinking some sort of tree of if statements (which I'm guessing is not very efficient), but I can't figure out how to represent the date/time (I'm thinking the datetime module is probably involved but not sure). Can anyone lead me in the right direction?
Thanks.