2025.12.01
This commit is contained in:
parent
536866364c
commit
4a1f1c844d
|
|
@ -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:
|
2025.11.11:
|
||||||
. deals_cache and log_list cache are now 20 items long.
|
. deals_cache and log_list cache are now 20 items long.
|
||||||
. Less log spam.
|
. Less log spam.
|
||||||
|
|
|
||||||
|
|
@ -789,7 +789,7 @@ class Broker:
|
||||||
|
|
||||||
return self.get_order(order_to_send["id"],symbol)
|
return self.get_order(order_to_send["id"],symbol)
|
||||||
except Exception as e:
|
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:
|
if no_retries:
|
||||||
break
|
break
|
||||||
time.sleep(self.wait_time)
|
time.sleep(self.wait_time)
|
||||||
|
|
@ -988,7 +988,7 @@ class Broker:
|
||||||
if self.get_exchange_name() in ["okex","bybit"]:
|
if self.get_exchange_name() in ["okex","bybit"]:
|
||||||
return float(market["limits"]["amount"]["min"])
|
return float(market["limits"]["amount"]["min"])
|
||||||
elif self.get_exchange_name() in ["kucoin"]:
|
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"]:
|
elif self.get_exchange_name() in ["gateio"]:
|
||||||
return (float(market["limits"]["cost"]["min"])+.1)/self.get_ticker_price(pair)
|
return (float(market["limits"]["cost"]["min"])+.1)/self.get_ticker_price(pair)
|
||||||
elif self.get_exchange_name()=="binance":
|
elif self.get_exchange_name()=="binance":
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -18,7 +18,7 @@ import exchange_wrapper
|
||||||
import trader
|
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
|
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue