Jupyter Interactive Moonshot DEV orders gives NoneType

Following guidelines here.
It keeps prompting this error. Orders isn’t coming through properly.

AttributeError: ‘NoneType’ object has no attribute ‘drop’

I do have some logic in order_stubs_to_orders(), but toggled it on/off and it didn’t resolve.

None = no orders

For anyone else, it means my specific algo didn’t execute an order at the review_date parameter:


This did work:

self = spy1minStrategy()
allocations={“PAPER_ACCOUNT”: 1.0}
orders = self.trade(allocations, review_date=‘2020-07-22-16:00:00’)
prices = self.get_prices(start_date=‘2020-07-22’, end_date=‘2020-07-23’)