From d6d16b4696268c891efa99862309f969a35a4a1d Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Sun, 7 Apr 2019 00:22:02 +0300 Subject: [PATCH] docstrings improved --- freqtrade/misc.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/freqtrade/misc.py b/freqtrade/misc.py index 57a5673fd..d066878be 100644 --- a/freqtrade/misc.py +++ b/freqtrade/misc.py @@ -136,8 +136,8 @@ def deep_merge_dicts(source, destination): def timeframe_to_seconds(ticker_interval: str) -> int: """ - This function uses ccxt to parse the timeframe interval value written in the human readable - form ('1m', '5m', '1h', '1d', '1w', etc.) and returns the number + Translates the timeframe interval value written in the human readable + form ('1m', '5m', '1h', '1d', '1w', etc.) to the number of seconds for one timeframe interval. """ return Exchange.parse_timeframe(ticker_interval) @@ -145,17 +145,13 @@ def timeframe_to_seconds(ticker_interval: str) -> int: def timeframe_to_minutes(ticker_interval: str) -> int: """ - This function uses ccxt to parse the timeframe interval value written in the human readable - form ('1m', '5m', '1h', '1d', '1w', etc.) and returns the number - of minutes for one timeframe interval. + Same as above, but returns minutes. """ return Exchange.parse_timeframe(ticker_interval) // 60 def timeframe_to_msecs(ticker_interval: str) -> int: """ - This function uses ccxt to parse the timeframe interval value written in the human readable - form ('1m', '5m', '1h', '1d', '1w', etc.) and returns the number - of milliseconds for one timeframe interval. + Same as above, but returns milliseconds. """ return Exchange.parse_timeframe(ticker_interval) * 1000