Only import ccxt.async when necessary

This commit is contained in:
Matthias
2023-08-10 18:12:09 +02:00
parent e0b4e16d19
commit 4832c10973

View File

@@ -307,6 +307,7 @@ class Exchange:
ccxt_module = ccxt_pro
if not is_exchange_known_ccxt(name, ccxt_module):
# Fall back to async if pro doesn't support this exchange
import ccxt.async_support as ccxt_async
ccxt_module = ccxt_async
if not is_exchange_known_ccxt(name, ccxt_module):