Gate.io min_base_size update
This commit is contained in:
parent
fd2397bf66
commit
29fcb74896
|
|
@ -1,3 +1,6 @@
|
||||||
|
2025.04.10:
|
||||||
|
. Modified Gate.io min_base_size.
|
||||||
|
|
||||||
2025.04.09:
|
2025.04.09:
|
||||||
. Modified default retries to 5.
|
. Modified default retries to 5.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -949,9 +949,10 @@ class Broker:
|
||||||
return None
|
return None
|
||||||
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 ["gateio", "kucoin"]:
|
elif self.get_exchange_name() in ["kucoin"]:
|
||||||
return (float(market["limits"]["cost"]["min"])+.1)/self.get_ticker_price(pair)
|
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":
|
elif self.get_exchange_name()=="binance":
|
||||||
for line in market["info"]["filters"]:
|
for line in market["info"]["filters"]:
|
||||||
if line["filterType"] == "NOTIONAL":
|
if line["filterType"] == "NOTIONAL":
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -16,7 +16,7 @@ import exchange_wrapper
|
||||||
import trader
|
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
|
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