autoswitch to status_dict
This commit is contained in:
parent
d8e2d8eb77
commit
5c97c721ad
|
|
@ -55,7 +55,7 @@ class trader:
|
||||||
"deal_uptime": 0, #In seconds
|
"deal_uptime": 0, #In seconds
|
||||||
"total_uptime": 0, #In seconds
|
"total_uptime": 0, #In seconds
|
||||||
"price": 0,
|
"price": 0,
|
||||||
"deal_order_history": []
|
"deal_order_history": [],
|
||||||
}
|
}
|
||||||
self.warnings = {
|
self.warnings = {
|
||||||
"short_price_exceeds_old_long": False,
|
"short_price_exceeds_old_long": False,
|
||||||
|
|
@ -385,6 +385,7 @@ class trader:
|
||||||
self.status_dict["start_time"]=self.start_time
|
self.status_dict["start_time"]=self.start_time
|
||||||
self.status_dict["deal_start_time"]=self.deal_start_time
|
self.status_dict["deal_start_time"]=self.deal_start_time
|
||||||
self.status_dict["stop_when_profit"]=self.stop_when_profit
|
self.status_dict["stop_when_profit"]=self.stop_when_profit
|
||||||
|
self.status_dict["autoswitch"]=self.config_dict["autoswitch"]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.broker.logger.log_this(f"Can't update status dictionary. Exception: {e}",1,self.pair)
|
self.broker.logger.log_this(f"Can't update status dictionary. Exception: {e}",1,self.pair)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue