Be verbose on okex startup to point out delay.
This commit is contained in:
parent
515b3fdfd2
commit
513669f834
@ -75,9 +75,14 @@ class Okx(Exchange):
|
||||
symbols.append(symbol)
|
||||
|
||||
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:
|
||||
res = self._api.fetchLeverageTiers(symbol)
|
||||
tiers[symbol] = res[symbol]
|
||||
logger.info(f"Done initializing {len(symbols)} markets.")
|
||||
|
||||
return tiers
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user