Hi,
I'm trying to use the new data.history() method in Zipline, but it doesn't seem to work.
In fact, when I try to run one of the examples I get the following error:
File "./dual_moving_average.py", line 43, in handle_data
short_mavg = data.history(context.sym, 'price', 100, '1d').mean()
AttributeError: 'BarData' object has no attribute 'history'
I've checked that I am running version 0.9.0 of zipline (with
python -c "import zipline; print(zipline.__version__)"
)
Can anyone help me solve this error?
Thanks!
Iñaki