2025.09.21
This commit is contained in:
parent
09f9aa313c
commit
171738fa4d
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
2
main.py
2
main.py
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue