diff options
Diffstat (limited to 'market.py')
-rw-r--r-- | market.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -201,8 +201,10 @@ class Market: | |||
201 | if status == "error_disappeared": | 201 | if status == "error_disappeared": |
202 | self.report.log_error("follow_orders", | 202 | self.report.log_error("follow_orders", |
203 | message="{} disappeared, recreating it".format(order)) | 203 | message="{} disappeared, recreating it".format(order)) |
204 | order.trade.prepare_order( | 204 | new_order = order.trade.prepare_order( |
205 | compute_value=order.trade.tick_actions_recreate(tick)) | 205 | compute_value=order.trade.tick_actions_recreate(tick)) |
206 | new_order.run() | ||
207 | self.report.log_order(order, tick, new_order=new_order) | ||
206 | 208 | ||
207 | self.report.log_stage("follow_orders_end") | 209 | self.report.log_stage("follow_orders_end") |
208 | 210 | ||