From: Jérôme Benoit Date: Thu, 13 Mar 2025 18:04:57 +0000 (+0100) Subject: refactor(qav3): typing X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0c45e554cf18e3a513609405f01a632afe80abf6;p=freqai-strategies.git refactor(qav3): typing Signed-off-by: Jérôme Benoit --- 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: