From e9c84c3ed1e1a12171cf061c3afb5f7a85f60a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Mon, 25 Nov 2024 09:09:17 -0300 Subject: [PATCH] todo update --- todo.txt | 1 + trader.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/todo.txt b/todo.txt index dbdc7e3..c645f87 100755 --- a/todo.txt +++ b/todo.txt @@ -7,6 +7,7 @@ Mandatory: 3. Consolidate vocabulary (trader, pair and bot; instance & trader) 4. Base add for short traders. 5. Proper handling of order price too high/low in OKX (rare, it happens when under heavy volatility). +6. Keep a copy of the instance's last n log entries on RAM, to speed up querying. Would be nice to have: diff --git a/trader.py b/trader.py index 3c86ae1..8a5e61e 100755 --- a/trader.py +++ b/trader.py @@ -8,8 +8,7 @@ class trader: self.pause = True #Signals the trader to not process order info when an API call manhandles the trader #True by default, once the trader is started the start_trader method toggles it self.quit = False #If true, it doesn't restart the bot when profit is reached. - self.restart = False - + self.restart = False self.broker = broker self.tp_order = self.broker.get_empty_order() self.so = self.broker.get_empty_order() @@ -1090,7 +1089,7 @@ class trader: self.broker.logger.log_this("Take profit order is None",1,self.pair) return 1 if self.so is None: - #Attempt to reload the safety order from the status dict? + #Here, would it be wise to attempt to reload the safety order from the status dict? self.broker.logger.log_this("Safety order is None",1,self.pair) self.so = self.broker.get_empty_order() return 1