From b9b15e5f320f8637c629020870d32471faf0fbe6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 16 Mar 2019 11:04:24 +0100 Subject: [PATCH 1/2] Align help message for forcebuy --- freqtrade/rpc/telegram.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 9caa7288f..e599172e4 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -466,6 +466,8 @@ class Telegram(RPC): :param update: message update :return: None """ + forcebuy_text = "*/forcebuy []:* `Instantly buys the given pair. " \ + "Optionally takes a rate at which to buy.` \n" message = "*/start:* `Starts the trader`\n" \ "*/stop:* `Stops the trader`\n" \ "*/status [table]:* `Lists all open trades`\n" \ @@ -473,6 +475,7 @@ class Telegram(RPC): "*/profit:* `Lists cumulative profit from all finished trades`\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 '' }" \ "*/performance:* `Show performance of each finished trade grouped by pair`\n" \ "*/daily :* `Shows profit or loss per day, over the last n days`\n" \ "*/count:* `Show number of trades running compared to allowed number of trades`" \ From d596a877fa70a898c5c5058d8075b573e7b9c6cb Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 16 Mar 2019 11:07:16 +0100 Subject: [PATCH 2/2] Update docs to link to ocnfiguration piece necessary --- docs/telegram-usage.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/telegram-usage.md b/docs/telegram-usage.md index e01c8f9bc..db98cbb12 100644 --- a/docs/telegram-usage.md +++ b/docs/telegram-usage.md @@ -104,6 +104,8 @@ Return a summary of your profit/loss and performance. Note that for this to work, `forcebuy_enable` needs to be set to true. +[More details](configuration.md/#understand-forcebuy_enable) + ## /performance Return the performance of each crypto-currency the bot has sold.