Hi

I would like to get earnings date and go back from it a certain number of days then sell/buy options. Is this possible? I was unable to find any examples.