Skip exchange validation in API server dependencies

Especially when validating pairlists for non-main exchanges (the exchange not in the config),
validation can mess with the exchange loading.
This commit is contained in:
Matthias
2023-11-12 17:34:16 +01:00
parent c7624b1ed6
commit 8273c0c2cd

View File

@@ -56,7 +56,7 @@ def get_exchange(config=Depends(get_config)):
if not (exchange := ApiBG.exchanges.get(exchange_key)):
from freqtrade.resolvers import ExchangeResolver
exchange = ExchangeResolver.load_exchange(
config, load_leverage_tiers=False)
config, validate=False, load_leverage_tiers=False)
ApiBG.exchanges[exchange_key] = exchange
return exchange