diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 27dea30fd..b86f1b29c 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -425,7 +425,8 @@ class Telegram(RPCHandler): start_date = datetime.fromtimestamp(0) try: timescale = int(context.args[0]) if context.args else None - start_date = datetime.combine(date.today(), datetime.min.time()) - timedelta(days=timescale) + today_start = datetime.combine(date.today(), datetime.min.time()) + start_date = today_start - timedelta(days=timescale) except (TypeError, ValueError, IndexError): pass @@ -910,7 +911,8 @@ class Telegram(RPCHandler): " `pending buy orders are marked with an asterisk (*)`\n" " `pending sell orders are marked with a double asterisk (**)`\n" "*/trades [limit]:* `Lists last closed trades (limited to 10 by default)`\n" - "*/profit []:* `Lists cumulative profit from all finished trades, over the last n days`\n" + "*/profit []:* `Lists cumulative profit from all finished trades, " + "over the last n days`\n" "*/forcesell |all:* `Instantly sells the given trade or all trades, " "regardless of profit`\n" f"{forcebuy_text if self._config.get('forcebuy_enable', False) else ''}"