Bug hunting
This commit is contained in:
parent
a26dbf41b5
commit
cd0511bc5f
|
|
@ -221,8 +221,6 @@ class trader:
|
|||
# which ends up misrepresenting the trade cost per unit of base, which causes the take profit price to skyrocket.
|
||||
# Maybe is the first market order getting "closed" before is fully filled?
|
||||
# Or is there an error later in the trader?
|
||||
#UPDATE: A rogue order appeared selling half of the last filled safety order.
|
||||
# Is Gate.io pulling shady stuff?
|
||||
time.sleep(self.broker.get_wait_time()*self.broker.get_cooldown_multiplier())
|
||||
returned_order = self.broker.get_order(first_order["id"],self.pair)
|
||||
if returned_order==self.broker.get_empty_order():
|
||||
|
|
@ -1017,6 +1015,9 @@ class trader:
|
|||
|
||||
#Cooldown
|
||||
time.sleep(self.broker.get_wait_time())
|
||||
if self.broker.get_exchange_name()=="gateio":
|
||||
#Extend the wait because Gate.io sucks
|
||||
time.sleep(self.broker.get_wait_time()*self.broker.get_cooldown_multiplier)
|
||||
|
||||
# Send the new safety order. If all expected safety orders are filled, it assigns an empty order to self.so
|
||||
if send_new_so:
|
||||
|
|
|
|||
Loading…
Reference in New Issue