Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Trading/Exchange/gateio/gateio_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@
import octobot_trading.exchanges as exchanges
import octobot_trading.enums as trading_enums

import typing


class GateIO(exchanges.RestExchange):
ORDERS_LIMIT = 100

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'
Expand Down
12 changes: 0 additions & 12 deletions Trading/Exchange/hyperliquid/hyperliquid_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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'
Expand Down