mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user