File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 33import logging
44from copy import deepcopy
55from datetime import datetime
6+ from typing import Any
67
78from freqtrade .constants import BuySell
89from 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 :
You can’t perform that action at this time.
0 commit comments