From 016cabb7b2d4d4392637f041a0353912bbbff4f4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 13 Dec 2024 14:59:35 +0100 Subject: [PATCH] chore: simplify imports --- freqtrade/data/converter/orderflow.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/freqtrade/data/converter/orderflow.py b/freqtrade/data/converter/orderflow.py index 8f753a668..a51394ce9 100644 --- a/freqtrade/data/converter/orderflow.py +++ b/freqtrade/data/converter/orderflow.py @@ -56,9 +56,7 @@ def timeframe_to_DateOffset(timeframe: str) -> pd.DateOffset: form ('1m', '5m', '1h', '1d', '1w', etc.) to the number of seconds for one timeframe interval. """ - from freqtrade.exchange import ( - timeframe_to_seconds, - ) + from freqtrade.exchange import timeframe_to_seconds timeframe_seconds = timeframe_to_seconds(timeframe) timeframe_minutes = timeframe_seconds // 60 @@ -79,9 +77,7 @@ def timeframe_to_DateOffset(timeframe: str) -> pd.DateOffset: def _calculate_ohlcv_candle_start_and_end(df: pd.DataFrame, timeframe: str): - from freqtrade.exchange import ( - timeframe_to_resample_freq, - ) + from freqtrade.exchange import timeframe_to_resample_freq if df is not None and not df.empty: timeframe_frequency = timeframe_to_resample_freq(timeframe)