todo update
This commit is contained in:
parent
887dd65807
commit
e9c84c3ed1
1
todo.txt
1
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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue