diff --git a/Trading/Exchange/gateio/gateio_exchange.py b/Trading/Exchange/gateio/gateio_exchange.py index 41b0de2c9..0a0a0e5b7 100644 --- a/Trading/Exchange/gateio/gateio_exchange.py +++ b/Trading/Exchange/gateio/gateio_exchange.py @@ -17,6 +17,8 @@ import octobot_trading.exchanges as exchanges import octobot_trading.enums as trading_enums +import typing + class GateIO(exchanges.RestExchange): ORDERS_LIMIT = 100 @@ -24,6 +26,12 @@ class GateIO(exchanges.RestExchange): FIX_MARKET_STATUS = True REMOVE_MARKET_STATUS_PRICE_LIMITS = True + # text content of errors due to unhandled IP white list issues + EXCHANGE_IP_WHITELIST_ERRORS: typing.List[typing.Iterable[str]] = [ + # gateio {"message":"Request IP not in whitelist: 11.11.11.11","label":"FORBIDDEN"} + ("ip not in whitelist",), + ] + @classmethod def get_name(cls): return 'gateio' diff --git a/Trading/Exchange/hyperliquid/hyperliquid_exchange.py b/Trading/Exchange/hyperliquid/hyperliquid_exchange.py index 2293abeaf..1f6cff6a6 100644 --- a/Trading/Exchange/hyperliquid/hyperliquid_exchange.py +++ b/Trading/Exchange/hyperliquid/hyperliquid_exchange.py @@ -15,7 +15,6 @@ # License along with this library. import typing -import octobot_commons.symbols import octobot_trading.exchanges as exchanges import octobot_trading.enums as trading_enums @@ -45,17 +44,6 @@ class Hyperliquid(exchanges.RestExchange): REQUIRE_ORDER_FEES_FROM_TRADES = True # set True when get_order is not giving fees on closed orders and fees # should be fetched using recent trades. - async def initialize_impl(self): - await super().initialize_impl() - # log pairs as hyperliquid renames some of them (ex: ETH/USDC -> UETH/USDC) - if self.exchange_manager.is_trading and not self.exchange_manager.exchange_only: - spot_pairs = [ - pair - for pair in self.symbols - if octobot_commons.symbols.parse_symbol(pair).is_spot() - ] - self.logger.info(f"Hyperliquid {len(spot_pairs)} spot trading pairs: {sorted(spot_pairs)}") - @classmethod def get_name(cls): return 'hyperliquid'