Avoid exception on exchange recycling if __init__ fails

This commit is contained in:
Matthias 2022-06-15 20:13:07 +02:00
parent f9e2e87346
commit 8f32fa5cb3

View File

@ -93,7 +93,7 @@ class Exchange:
:return: None
"""
self._api: ccxt.Exchange
self._api_async: ccxt_async.Exchange
self._api_async: ccxt_async.Exchange = None
self._markets: Dict = {}
self._trading_fees: Dict[str, Any] = {}
self._leverage_tiers: Dict[str, List[Dict]] = {}