2025.12.01

This commit is contained in:
Nicolás Sánchez 2025-12-01 10:17:23 -03:00
parent 536866364c
commit 4a1f1c844d
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2025.12.01:
. Modified log output of new_market_order.
. Modified Kucoin's case in min_amount_of_base.
2025.11.11:
. deals_cache and log_list cache are now 20 items long.
. Less log spam.

View File

@ -789,7 +789,7 @@ class Broker:
return self.get_order(order_to_send["id"],symbol)
except Exception as e:
self.logger.log_this(f"Exception in new_market_order: {e}",1,symbol)
self.logger.log_this(f"Exception in new_market_order: {e} - Side: {side} - Size: {size}",1,symbol)
if no_retries:
break
time.sleep(self.wait_time)
@ -988,7 +988,7 @@ class Broker:
if self.get_exchange_name() in ["okex","bybit"]:
return float(market["limits"]["amount"]["min"])
elif self.get_exchange_name() in ["kucoin"]:
return (float(market["limits"]["cost"]["min"])+.25)/self.get_ticker_price(pair)
return max(float(market["limits"]["amount"]["min"]),(float(market["limits"]["cost"]["min"])+.25)/self.get_ticker_price(pair))
elif self.get_exchange_name() in ["gateio"]:
return (float(market["limits"]["cost"]["min"])+.1)/self.get_ticker_price(pair)
elif self.get_exchange_name()=="binance":

View File

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