I keep getting this error even though I added
data.can_trade(context.assets)
to my code.Why won't this work? Anyone?
Cannot order MVIR on 2016-01-04 14:35:00+00:00 as there is no last price for the security. Try using data.can_trade to check whether an asset is delisted.
There was a runtime error on line 297.