I have a pandas panel named pane with OHLCV data for 4 symbols, including 'AAPL'.
Dimensions: 4 (items) x 5039 (major_axis) x 5 (minor_axis)
Items axis: AAPL to VVS
Then I run the simple buyapple.
from zipline.api import order, record, symbol
def initialize(context):
pass
def handle_data(context, data):
order(symbol('AAPL'), 10)
record(AAPL=data.current(symbol('AAPL'), 'price'))
algo_obj = TradingAlgorithm(initialize=initialize, handle_data=handle_data, capital_base = 100000.0)
_manual = algo_obj.run(pane)
It generates the following error: raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
Could someone please explain how to solve this error?
I am ruing this on Anaconda 2.7.13 32 bit and spyder.