Skip to content

Commit bfe9aac

Browse files
committed
fix(hyperliquid): exclude HIP3 pairs for now
part of freqtrade#12558
1 parent 1770a68 commit bfe9aac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

freqtrade/exchange/hyperliquid.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import logging
44
from copy import deepcopy
55
from datetime import datetime
6+
from typing import Any
67

78
from freqtrade.constants import BuySell
89
from freqtrade.enums import MarginMode, TradingMode
@@ -56,6 +57,13 @@ def _ccxt_config(self) -> dict:
5657
config.update(super()._ccxt_config)
5758
return config
5859

60+
def market_is_tradable(self, market: dict[str, Any]) -> bool:
61+
parent_check = super().market_is_tradable(market)
62+
63+
# Exclude hip3 markets for now - which have the format XYZ:GOOGL/USDT:USDT -
64+
# and XYZ:GOOGL as base
65+
return parent_check and ":" not in market["base"]
66+
5967
def get_max_leverage(self, pair: str, stake_amount: float | None) -> float:
6068
# There are no leverage tiers
6169
if self.trading_mode == TradingMode.FUTURES:

0 commit comments

Comments
 (0)