E [2020-08-07 07:08:54,277] Task exception was never retrieved
future: <Task finished coro=<MyStrategy.on_ticker() done, defined at /code/examples/huobi_future/strategy.py:107> exception=AttributeError("'HuobiFutureTrade' object has no attribute '_orders'")>
Traceback (most recent call last):
File "/code/examples/huobi_future/strategy.py", line 118, in on_ticker
await self.cancel_orders()
File "/code/examples/huobi_future/strategy.py", line 124, in cancel_orders
order_nos = [ orderno for orderno in self.trader.orders ]
File "/usr/local/lib/python3.7/site-packages/alpha/trade.py", line 90, in orders
return self._t.orders
File "/usr/local/lib/python3.7/site-packages/alpha/platforms/huobi_future_trade.py", line 134, in orders
return copy.copy(self._orders)
AttributeError: 'HuobiFutureTrade' object has no attribute '_orders'
E [2020-08-07 07:08:54,277] Task exception was never retrieved future: <Task finished coro=<MyStrategy.on_ticker() done, defined at /code/examples/huobi_future/strategy.py:107> exception=AttributeError("'HuobiFutureTrade' object has no attribute '_orders'")> Traceback (most recent call last): File "/code/examples/huobi_future/strategy.py", line 118, in on_ticker await self.cancel_orders() File "/code/examples/huobi_future/strategy.py", line 124, in cancel_orders order_nos = [ orderno for orderno in self.trader.orders ] File "/usr/local/lib/python3.7/site-packages/alpha/trade.py", line 90, in orders return self._t.orders File "/usr/local/lib/python3.7/site-packages/alpha/platforms/huobi_future_trade.py", line 134, in orders return copy.copy(self._orders) AttributeError: 'HuobiFutureTrade' object has no attribute '_orders'