From 0c45e554cf18e3a513609405f01a632afe80abf6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 13 Mar 2025 19:04:57 +0100 Subject: [PATCH] refactor(qav3): typing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/strategies/QuickAdapterV3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index beaf97a..c9739f7 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -72,11 +72,11 @@ class QuickAdapterV3(IStrategy): process_only_new_candles = True @property - def can_short(self): + def can_short(self) -> bool: return self.is_short_allowed() @property - def plot_config(self): + def plot_config(self) -> dict: return { "main_plot": {}, "subplots": { @@ -97,7 +97,7 @@ class QuickAdapterV3(IStrategy): } @property - def protections(self): + def protections(self) -> list: fit_live_predictions_candles = self.freqai_info.get( "fit_live_predictions_candles", 100 ) @@ -122,7 +122,7 @@ class QuickAdapterV3(IStrategy): use_exit_signal = True @property - def startup_candle_count(self): + def startup_candle_count(self) -> int: return int(self.freqai_info.get("fit_live_predictions_candles", 100) / 2) def bot_start(self, **kwargs) -> None: -- 2.43.0