File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1717import octobot_trading .exchanges as exchanges
1818import octobot_trading .enums as trading_enums
1919
20+ import typing
21+
2022
2123class 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'
Original file line number Diff line number Diff line change 1515# License along with this library.
1616import typing
1717
18- import octobot_commons .symbols
1918import octobot_trading .exchanges as exchanges
2019import 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'
You can’t perform that action at this time.
0 commit comments