mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
simplify Leverage tier code
This commit is contained in:
@@ -2371,12 +2371,12 @@ class Exchange:
|
|||||||
# Must fetch the leverage tiers for each market separately
|
# Must fetch the leverage tiers for each market separately
|
||||||
# * This is slow(~45s) on Okx, makes ~90 api calls to load all linear swap markets
|
# * This is slow(~45s) on Okx, makes ~90 api calls to load all linear swap markets
|
||||||
markets = self.markets
|
markets = self.markets
|
||||||
symbols = []
|
|
||||||
|
|
||||||
for symbol, market in markets.items():
|
symbols = [
|
||||||
|
symbol for symbol, market in markets.items()
|
||||||
if (self.market_is_future(market)
|
if (self.market_is_future(market)
|
||||||
and market['quote'] == self._config['stake_currency']):
|
and market['quote'] == self._config['stake_currency'])
|
||||||
symbols.append(symbol)
|
]
|
||||||
|
|
||||||
tiers: Dict[str, List[Dict]] = {}
|
tiers: Dict[str, List[Dict]] = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user