mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 04:41:15 +00:00
Only import ccxt.async when necessary
This commit is contained in:
@@ -307,6 +307,7 @@ class Exchange:
|
|||||||
ccxt_module = ccxt_pro
|
ccxt_module = ccxt_pro
|
||||||
if not is_exchange_known_ccxt(name, ccxt_module):
|
if not is_exchange_known_ccxt(name, ccxt_module):
|
||||||
# Fall back to async if pro doesn't support this exchange
|
# Fall back to async if pro doesn't support this exchange
|
||||||
|
import ccxt.async_support as ccxt_async
|
||||||
ccxt_module = ccxt_async
|
ccxt_module = ccxt_async
|
||||||
|
|
||||||
if not is_exchange_known_ccxt(name, ccxt_module):
|
if not is_exchange_known_ccxt(name, ccxt_module):
|
||||||
|
|||||||
Reference in New Issue
Block a user