Don't load leverage tiers when not necessary

This commit is contained in:
Matthias
2022-07-23 19:56:38 +02:00
parent 7682c9ace7
commit 2eb1d18c2a
5 changed files with 17 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ def get_exchange(config=Depends(get_config)):
if not ApiServer._exchange:
from freqtrade.resolvers import ExchangeResolver
ApiServer._exchange = ExchangeResolver.load_exchange(
config['exchange']['name'], config)
config['exchange']['name'], config, load_leverage_tiers=False)
return ApiServer._exchange