2025.09.21

This commit is contained in:
Nicolás Sánchez 2025-09-21 18:23:14 -03:00
parent 09f9aa313c
commit 171738fa4d
4 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2025.09.21:
. Fixed a bug that caused short traders to have an incorrect order size.
2025.09.20:
. Fixed bug that caused short traders to initialize using the same workflow as a long one.

View File

@ -760,7 +760,6 @@ class Broker:
order_to_send = self.exchange.create_order(symbol,"market",side,amount)
time.sleep(self.wait_time)
# Wait a bit more when dealing with Kucoin
return self.get_order(order_to_send["id"],symbol)
except Exception as e:

View File

@ -18,7 +18,7 @@ import exchange_wrapper
import trader
version = "2025.09.20"
version = "2025.09.21"
'''
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors

View File

@ -191,9 +191,10 @@ class trader:
#Slippage threshold exceeded
self.broker.logger.log_this("Slippage threshold exceeded",1,self.status.get_pair())
return 3
self.status.set_order_size(self.config.get_order_size())
self.status.set_pause_reason("start_trader - after slippage")
self.status.set_order_size(self.config.get_order_size())
#Sending initial order
self.status.set_pause_reason("start_trader - sending first order")