Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Get date of purchase, avoid day-trading

Getting started here, so please be patient :)

I'm trying to not run afoul of day-trading rules.
How can I record the date of a specific stock-purchase and compare it with today's date?

Then basically compare the dates and only execute the sale if not true.

thanks!