mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
fix: "missing" condition when no replacemet items are available
This commit is contained in:
@@ -71,7 +71,8 @@ def validate_exchange(exchange: str) -> tuple[bool, str, ccxt.Exchange | None]:
|
||||
missing = [
|
||||
k
|
||||
for k, v in EXCHANGE_HAS_REQUIRED.items()
|
||||
if ex_mod.has.get(k) is not True and not (all(ex_mod.has.get(x) for x in v))
|
||||
if ex_mod.has.get(k) is not True
|
||||
and (len(v) == 0 or not (all(ex_mod.has.get(x) for x in v)))
|
||||
]
|
||||
if missing:
|
||||
result = False
|
||||
|
||||
Reference in New Issue
Block a user