From 29fcb748966e04a64e42582851d0d5478f2eda1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Thu, 10 Apr 2025 09:20:20 -0300 Subject: [PATCH] Gate.io min_base_size update --- changelog.txt | 3 +++ exchange_wrapper.py | 5 +++-- main.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index ed3361c..254aafa 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2025.04.10: +. Modified Gate.io min_base_size. + 2025.04.09: . Modified default retries to 5. diff --git a/exchange_wrapper.py b/exchange_wrapper.py index f90873d..1388bd6 100755 --- a/exchange_wrapper.py +++ b/exchange_wrapper.py @@ -949,9 +949,10 @@ class Broker: return None if self.get_exchange_name() in ["okex","bybit"]: return float(market["limits"]["amount"]["min"]) - elif self.get_exchange_name() in ["gateio", "kucoin"]: + elif self.get_exchange_name() in ["kucoin"]: return (float(market["limits"]["cost"]["min"])+.1)/self.get_ticker_price(pair) - #return max(market["limits"]["amount"]["min"],(float(market["limits"]["cost"]["min"])/self.get_ticker_price(pair))) + elif self.get_exchange_name() in ["gateio"]: + return (float(market["limits"]["cost"]["min"])+.25)/self.get_ticker_price(pair) elif self.get_exchange_name()=="binance": for line in market["info"]["filters"]: if line["filterType"] == "NOTIONAL": diff --git a/main.py b/main.py index dda4a67..e8ea61d 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ import exchange_wrapper import trader -version = "2025.04.09" +version = "2025.04.10" ''' Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors