Skip to content
Merged
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 freqtrade/exchange/hyperliquid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
from copy import deepcopy
from datetime import datetime
from typing import Any

from freqtrade.constants import BuySell
from freqtrade.enums import MarginMode, TradingMode
Expand Down Expand Up @@ -56,6 +57,13 @@ def _ccxt_config(self) -> dict:
config.update(super()._ccxt_config)
return config

def market_is_tradable(self, market: dict[str, Any]) -> bool:
parent_check = super().market_is_tradable(market)

# Exclude hip3 markets for now - which have the format XYZ:GOOGL/USDT:USDT -
# and XYZ:GOOGL as base
return parent_check and ":" not in market["base"]

def get_max_leverage(self, pair: str, stake_amount: float | None) -> float:
# There are no leverage tiers
if self.trading_mode == TradingMode.FUTURES:
Expand Down
Loading