aboutsummaryrefslogtreecommitdiff
path: root/market.py
diff options
context:
space:
mode:
Diffstat (limited to 'market.py')
-rw-r--r--market.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/market.py b/market.py
index 3b6543a..b521ea9 100644
--- a/market.py
+++ b/market.py
@@ -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