debug logging in IStrategy.advise_*()

This commit is contained in:
hroff-1902 2019-06-11 10:32:38 +03:00 committed by hroff-1902
parent 23aa6fdef2
commit 5ff8aa30b1

View File

@ -378,6 +378,7 @@ class IStrategy(ABC):
:param metadata: Additional information, like the currently traded pair :param metadata: Additional information, like the currently traded pair
:return: a Dataframe with all mandatory indicators for the strategies :return: a Dataframe with all mandatory indicators for the strategies
""" """
logger.debug(f"Populating indicators for: pair {metadata.get('pair')}")
if self._populate_fun_len == 2: if self._populate_fun_len == 2:
warnings.warn("deprecated - check out the Sample strategy to see " warnings.warn("deprecated - check out the Sample strategy to see "
"the current function headers!", DeprecationWarning) "the current function headers!", DeprecationWarning)
@ -393,6 +394,7 @@ class IStrategy(ABC):
:param pair: Additional information, like the currently traded pair :param pair: Additional information, like the currently traded pair
:return: DataFrame with buy column :return: DataFrame with buy column
""" """
logger.debug(f"Populating buy signals for: pair {metadata.get('pair')}")
if self._buy_fun_len == 2: if self._buy_fun_len == 2:
warnings.warn("deprecated - check out the Sample strategy to see " warnings.warn("deprecated - check out the Sample strategy to see "
"the current function headers!", DeprecationWarning) "the current function headers!", DeprecationWarning)
@ -408,6 +410,7 @@ class IStrategy(ABC):
:param pair: Additional information, like the currently traded pair :param pair: Additional information, like the currently traded pair
:return: DataFrame with sell column :return: DataFrame with sell column
""" """
logger.debug(f"Populating sell signals for: pair {metadata.get('pair')}")
if self._sell_fun_len == 2: if self._sell_fun_len == 2:
warnings.warn("deprecated - check out the Sample strategy to see " warnings.warn("deprecated - check out the Sample strategy to see "
"the current function headers!", DeprecationWarning) "the current function headers!", DeprecationWarning)