I want an array with all SIDs availables on Quantopian, and run it on every securities, without typing each one manually. How could i do?
I would context.secs will contains all FX, Stocks, ETFs etc. available on quantopian.
Define the stocks in your target portfolio:
context.secs = [ sid(19662), # XLY Consumer Discrectionary SPDR Fund
sid(19656), # XLF Financial SPDR Fund
sid(19658), # XLK Technology SPDR Fund
sid(19655), # XLE Energy SPDR Fund
sid(19661), # XLV Health Care SPRD Fund
sid(19657), # XLI Industrial SPDR Fund
sid(19659), # XLP Consumer Staples SPDR Fund
sid(19654), # XLB Materials SPDR Fund
sid(19660) ] # XLU Utilities SPRD Fund