From 5a546855e607d768a1cb0fe13fc941a1ce83b4e6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 27 Dec 2021 19:30:17 +0100 Subject: [PATCH] Import TTLCache from cachetools Importing from cachetools.ttl is deprecated, and will be removed in 5.0 --- freqtrade/configuration/PeriodicCache.py | 2 +- freqtrade/plugins/pairlist/VolatilityFilter.py | 2 +- freqtrade/plugins/pairlist/VolumePairList.py | 2 +- freqtrade/plugins/pairlist/rangestabilityfilter.py | 2 +- freqtrade/rpc/fiat_convert.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/freqtrade/configuration/PeriodicCache.py b/freqtrade/configuration/PeriodicCache.py index 25c0c47f3..64fff668e 100644 --- a/freqtrade/configuration/PeriodicCache.py +++ b/freqtrade/configuration/PeriodicCache.py @@ -1,6 +1,6 @@ from datetime import datetime, timezone -from cachetools.ttl import TTLCache +from cachetools import TTLCache class PeriodicCache(TTLCache): diff --git a/freqtrade/plugins/pairlist/VolatilityFilter.py b/freqtrade/plugins/pairlist/VolatilityFilter.py index 9383e5d06..20b899c5f 100644 --- a/freqtrade/plugins/pairlist/VolatilityFilter.py +++ b/freqtrade/plugins/pairlist/VolatilityFilter.py @@ -8,7 +8,7 @@ from typing import Any, Dict, List, Optional import arrow import numpy as np -from cachetools.ttl import TTLCache +from cachetools import TTLCache from pandas import DataFrame from freqtrade.exceptions import OperationalException diff --git a/freqtrade/plugins/pairlist/VolumePairList.py b/freqtrade/plugins/pairlist/VolumePairList.py index 0ffc8a8c8..83116ebac 100644 --- a/freqtrade/plugins/pairlist/VolumePairList.py +++ b/freqtrade/plugins/pairlist/VolumePairList.py @@ -8,7 +8,7 @@ from functools import partial from typing import Any, Dict, List import arrow -from cachetools.ttl import TTLCache +from cachetools import TTLCache from freqtrade.exceptions import OperationalException from freqtrade.exchange import timeframe_to_minutes diff --git a/freqtrade/plugins/pairlist/rangestabilityfilter.py b/freqtrade/plugins/pairlist/rangestabilityfilter.py index 3e5a002ff..314056fbb 100644 --- a/freqtrade/plugins/pairlist/rangestabilityfilter.py +++ b/freqtrade/plugins/pairlist/rangestabilityfilter.py @@ -6,7 +6,7 @@ from copy import deepcopy from typing import Any, Dict, List, Optional import arrow -from cachetools.ttl import TTLCache +from cachetools import TTLCache from pandas import DataFrame from freqtrade.exceptions import OperationalException diff --git a/freqtrade/rpc/fiat_convert.py b/freqtrade/rpc/fiat_convert.py index f4e82261e..ef9689d0a 100644 --- a/freqtrade/rpc/fiat_convert.py +++ b/freqtrade/rpc/fiat_convert.py @@ -7,7 +7,7 @@ import datetime import logging from typing import Dict, List -from cachetools.ttl import TTLCache +from cachetools import TTLCache from pycoingecko import CoinGeckoAPI from requests.exceptions import RequestException