Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Usage of StaticAssets in zipline?

Hi

can someone explain how to use StaticAssets in a zipline environment.
Running under Quantopian, below should work, but it is not under zipline environment

Thanks
Carsten

def initialize(context):

    universe = StaticAssets(symbols(['AAPL', 'MSFT']))

    attach_pipeline(make_pipeline(universe, context), 'my_pipeline')