Be verbose on okex startup to point out delay.

This commit is contained in:
Matthias 2022-02-14 19:44:05 +01:00
parent 515b3fdfd2
commit 513669f834

View File

@ -75,9 +75,14 @@ class Okx(Exchange):
symbols.append(symbol) symbols.append(symbol)
tiers = {} tiers = {}
# Be verbose here, as this delays startup by ~1 minute.
logger.info(
f"Initializing leverage_tiers for {len(symbols)} markets. "
"This will take about a minute.")
for symbol in symbols: for symbol in symbols:
res = self._api.fetchLeverageTiers(symbol) res = self._api.fetchLeverageTiers(symbol)
tiers[symbol] = res[symbol] tiers[symbol] = res[symbol]
logger.info(f"Done initializing {len(symbols)} markets.")
return tiers return tiers
else: else: