I have tried context.hist['sid'] and context.hist[], but both return errors. I have also tried -> context.spy = history(10, '1d', 'close_price')[context.spy] <- and received the error: KeyError: Equity(8554, symbol=u'SPY', asset_name=u'SPDR S&P 500 ETF TRUST', exchange=u'NYSE ARCA EXCHANGE', start_date=Timestamp('1993-01-29 00:00:00+0000', tz='UTC'), end_date=Timestamp('2016-02-19 00:00:00+0000', tz='UTC'), first_traded=None, auto_close_date=None)
There was a runtime error on line 81.
Which is similar to the errors I've received from context.hist[''] (i.e. context.hist[2] which returned KeyError: 2) .
This inability to manipulate components of data rather than the entire data set is becoming incredible frustrating. Useful information would be appreciated. (and if someone can give me code that would pull 'int' sid values from an indexed list and allow me to enter it into the order function I would appreciate that as well because I have another version of this code that ends with data so organized.)