One liner for referencing all stocks?

Hello!

So I was wondering if in my initialize section, I could simply define context.universe as a set of stocks, like SP500 or all stocks in the NYSE, instead of having to refer to them individually in the form of a set.

Is this possible? And if so, what is the code required to do so?

The NYSE datasets on blueshift covers S&P 500 universe. The way to consider this universe and apply filters and factoring to create strategies on it through pipeline. Please see here for examples.