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)):
|
if not (exchange := ApiBG.exchanges.get(exchange_key)):
|
||||||
from freqtrade.resolvers import ExchangeResolver
|
from freqtrade.resolvers import ExchangeResolver
|
||||||
exchange = ExchangeResolver.load_exchange(
|
exchange = ExchangeResolver.load_exchange(
|
||||||
config, load_leverage_tiers=False)
|
config, validate=False, load_leverage_tiers=False)
|
||||||
ApiBG.exchanges[exchange_key] = exchange
|
ApiBG.exchanges[exchange_key] = exchange
|
||||||
return exchange
|
return exchange
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user