In the Quantopian research platform, every trading day, I'd like the list of securities corresponding to the top N NASDAQ stocks, by market cap, with N an integer (e.g. N = 50). For example, on the first trading day of 2005, I'd like a list of the 50 largest cap NASDAQ stocks. On the second trading day of 2005, I'd like an updated list, etc. The list for each day should have a datetime stamp associated with it, corresponding to the day for which the list applies.
Does someone have an example notebook to share? Or an outline of how to do this?
Ideally, the list would be based on the market cap ranking using the prior trading day's data. However, this is probably not important. How often is the Quantopian fundamental data computed? And how is market cap calculated?