Unalbe to use add

82 views
Skip to first unread message

Yatin Chaubal

unread,
Jun 11, 2016, 12:17:32 AM6/11/16
to Zipline Python Opensource Backtester
Hi,


I am unable to use add_history. 


>>> from zipline.api import add_history
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'add_history'
>>>


Regards
Yatin Chaubal

Derek Tishler

unread,
Jul 3, 2016, 2:55:11 PM7/3/16
to Zipline Python Opensource Backtester
If you are using the new zipline (version > 1.0.0) you no longer need(nor can you import) use add_history(). You can drop its use and proceed otherwise with just history() in handle_data, as shown in the example on this page:
Reply all
Reply to author
Forward
0 new messages