mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Only import ccxt.async when necessary
This commit is contained in:
parent
e0b4e16d19
commit
4832c10973
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user