No matter what I do I can't get 'symbol' or 'symbols' to be recognized. Could someone please tell me what I'm doing wrong?
from zipline.api import sid, symbol, symbols
stocks = symbols(['EDV','RSP','TLT','XIV'])
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-97-ad0f5a8353b0> in <module>()
----> 1 stocks = symbols(['EDV','RSP','TLT','XIV'])
2 #zipline.api.symbols(['EDV','RSP','TLT','XIV'])
/build/src/qexec_repo/zipline_repo/zipline/utils/api_support.pyc in wrapped(*args, **kwargs)
49 def wrapped(*args, **kwargs):
50 # Get the instance and call the method
---> 51 return getattr(get_algo_instance(), f.__name__)(*args, **kwargs)
52 # Add functor to zipline.api
53 setattr(zipline.api, f.__name__, wrapped)
AttributeError: 'NoneType' object has no attribute 'symbols'
I have also tried many combinations of more direct references...
import zipline.api
stocks = zipline.api.symbols(['EDV','RSP','TLT','XIV'])
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-99-725d6eb0e10a> in <module>()
1 #stocks = symbols(['EDV','RSP','TLT','XIV'])
----> 2 stocks = zipline.api.symbols(['EDV','RSP','TLT','XIV'])
/build/src/qexec_repo/zipline_repo/zipline/utils/api_support.pyc in wrapped(*args, **kwargs)
49 def wrapped(*args, **kwargs):
50 # Get the instance and call the method
---> 51 return getattr(get_algo_instance(), f.__name__)(*args, **kwargs)
52 # Add functor to zipline.api
53 setattr(zipline.api, f.__name__, wrapped)
AttributeError: 'NoneType' object has no attribute 'symbols'
Thanks in advanced!