2025.09.19
This commit is contained in:
parent
733f6efbff
commit
451e1a63aa
|
|
@ -1,3 +1,6 @@
|
|||
2025.09.19:
|
||||
. Added pageSize parameter to the open order requests when querying Kucoin.
|
||||
|
||||
2025.09.18:
|
||||
. do_cleanup now uses get_min_quote_size.
|
||||
. Added an extra price check to switch_to_long.
|
||||
|
|
|
|||
|
|
@ -536,7 +536,7 @@ class Broker:
|
|||
if pairs is None:
|
||||
pairs = []
|
||||
try:
|
||||
if self.get_exchange_name() in ["binance","kucoin"]:
|
||||
if self.get_exchange_name()=="binance":
|
||||
if self.broker_config.get("unified_order_query"):
|
||||
return self.exchange.fetch_open_orders()
|
||||
result = []
|
||||
|
|
@ -544,6 +544,8 @@ class Broker:
|
|||
a = self.exchange.fetch_open_orders(pair)
|
||||
result.extend(iter(a))
|
||||
return result
|
||||
elif self.get_exchange_name()=="kucoin":
|
||||
return self.exchange.fetch_open_orders(params={"pageSize": "500"})
|
||||
else:
|
||||
return self.exchange.fetch_open_orders()
|
||||
except Exception as e:
|
||||
|
|
@ -566,7 +568,7 @@ class Broker:
|
|||
return self.get_closed_orders_binance(pairs)
|
||||
return self.get_closed_orders()
|
||||
except Exception as e:
|
||||
self.logger.log_this(f"Exception in fetch_open_orders: {e}",2)
|
||||
self.logger.log_this(f"Exception in fetch_closed_orders: {e}",2)
|
||||
return []
|
||||
|
||||
|
||||
|
|
|
|||
4
main.py
4
main.py
|
|
@ -18,7 +18,7 @@ import exchange_wrapper
|
|||
import trader
|
||||
|
||||
|
||||
version = "2025.09.18"
|
||||
version = "2025.09.19"
|
||||
|
||||
'''
|
||||
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
|
||||
|
|
@ -41,7 +41,7 @@ executor = None
|
|||
|
||||
#Shutdown handler
|
||||
def shutdown_handler(signum, _):
|
||||
broker.logger.log_this(f"Received signal {signum}, shutting down as gracefully as possible...", 2)
|
||||
broker.logger.log_this(f"Received signal {signum}, shutting down.", 2)
|
||||
if executor:
|
||||
executor.shutdown(wait=True, timeout=5)
|
||||
os_exit(0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue