mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
works also without __class__
This commit is contained in:
parent
4257e1ca96
commit
2b0b85330e
|
@ -53,7 +53,7 @@ class Binance(Exchange):
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs) -> None:
|
def __init__(self, *args, **kwargs) -> None:
|
||||||
super(__class__, self).__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self._spot_delist_schedule_cache: TTLCache = TTLCache(maxsize=100, ttl=300)
|
self._spot_delist_schedule_cache: TTLCache = TTLCache(maxsize=100, ttl=300)
|
||||||
self._spot_delist_schedule_cache_lock = Lock()
|
self._spot_delist_schedule_cache_lock = Lock()
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ class Binance(Exchange):
|
||||||
delist_schedule = self._api.sapi_get_spot_delist_schedule()
|
delist_schedule = self._api.sapi_get_spot_delist_schedule()
|
||||||
|
|
||||||
if delist_schedule is None:
|
if delist_schedule is None:
|
||||||
return
|
return None
|
||||||
|
|
||||||
with lock:
|
with lock:
|
||||||
for schedule in delist_schedule:
|
for schedule in delist_schedule:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user