mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
only use HIP3_dexes with hyperliquid validation
This commit is contained in:
@@ -168,6 +168,15 @@ def _validate_edge(conf: dict[str, Any]) -> None:
|
||||
)
|
||||
|
||||
|
||||
def _validate_hyperliquid_settings(conf: dict[str, Any]) -> None:
|
||||
exchange_conf = conf.get("exchange", {})
|
||||
exchange_name = exchange_conf.get("name")
|
||||
hip3_dexes = exchange_conf.get("hip3_dexes")
|
||||
|
||||
if hip3_dexes and exchange_name != "hyperliquid":
|
||||
raise ConfigurationError('"hip3_dexes" is only supported If Exchange is hyperliquid')
|
||||
|
||||
|
||||
def _validate_whitelist(conf: dict[str, Any]) -> None:
|
||||
"""
|
||||
Dynamic whitelist does not require pair_whitelist to be set - however StaticWhitelist does.
|
||||
|
||||
Reference in New Issue
Block a user