Skip to content

Commit 53f82b7

Browse files
committed
[Exchanges] update for ccxt 4.5.22
1 parent 0dbd543 commit 53f82b7

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Trading/Exchange/gateio/gateio_exchange.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,21 @@
1717
import octobot_trading.exchanges as exchanges
1818
import octobot_trading.enums as trading_enums
1919

20+
import typing
21+
2022

2123
class GateIO(exchanges.RestExchange):
2224
ORDERS_LIMIT = 100
2325

2426
FIX_MARKET_STATUS = True
2527
REMOVE_MARKET_STATUS_PRICE_LIMITS = True
2628

29+
# text content of errors due to unhandled IP white list issues
30+
EXCHANGE_IP_WHITELIST_ERRORS: typing.List[typing.Iterable[str]] = [
31+
# gateio {"message":"Request IP not in whitelist: 11.11.11.11","label":"FORBIDDEN"}
32+
("ip not in whitelist",),
33+
]
34+
2735
@classmethod
2836
def get_name(cls):
2937
return 'gateio'

Trading/Exchange/hyperliquid/hyperliquid_exchange.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# License along with this library.
1616
import typing
1717

18-
import octobot_commons.symbols
1918
import octobot_trading.exchanges as exchanges
2019
import octobot_trading.enums as trading_enums
2120

@@ -45,17 +44,6 @@ class Hyperliquid(exchanges.RestExchange):
4544
REQUIRE_ORDER_FEES_FROM_TRADES = True # set True when get_order is not giving fees on closed orders and fees
4645
# should be fetched using recent trades.
4746

48-
async def initialize_impl(self):
49-
await super().initialize_impl()
50-
# log pairs as hyperliquid renames some of them (ex: ETH/USDC -> UETH/USDC)
51-
if self.exchange_manager.is_trading and not self.exchange_manager.exchange_only:
52-
spot_pairs = [
53-
pair
54-
for pair in self.symbols
55-
if octobot_commons.symbols.parse_symbol(pair).is_spot()
56-
]
57-
self.logger.info(f"Hyperliquid {len(spot_pairs)} spot trading pairs: {sorted(spot_pairs)}")
58-
5947
@classmethod
6048
def get_name(cls):
6149
return 'hyperliquid'

0 commit comments

Comments
 (0)