Hi,
I'm having trouble setting up a SQLAlchemy code that would reference a fundamental metric from the past. For example, say I want to buy stocks whose average earnings-per-share (EPS) in the last 4 quarters are greater than the average EPS of the preceding 4 quarters. How would I use the get_fundamentals function to filter stocks like that?
Thank you very much in advance.