Improve /help
output from telegram
This commit is contained in:
parent
4d1ce51207
commit
df27499e19
@ -1233,8 +1233,33 @@ class Telegram(RPCHandler):
|
|||||||
forcebuy_text = ("*/forcebuy <pair> [<rate>]:* `Instantly buys the given pair. "
|
forcebuy_text = ("*/forcebuy <pair> [<rate>]:* `Instantly buys the given pair. "
|
||||||
"Optionally takes a rate at which to buy "
|
"Optionally takes a rate at which to buy "
|
||||||
"(only applies to limit orders).` \n")
|
"(only applies to limit orders).` \n")
|
||||||
message = ("*/start:* `Starts the trader`\n"
|
message = (
|
||||||
"*/stop:* `Stops the trader`\n"
|
"_BotControl_\n"
|
||||||
|
"------------\n"
|
||||||
|
"*/start:* `Starts the trader`\n"
|
||||||
|
"*/stop:* Stops the trader\n"
|
||||||
|
"*/stopbuy:* `Stops buying, but handles open trades gracefully` \n"
|
||||||
|
"*/forcesell <trade_id>|all:* `Instantly sells the given trade or all trades, "
|
||||||
|
"regardless of profit`\n"
|
||||||
|
f"{forcebuy_text if self._config.get('forcebuy_enable', False) else ''}"
|
||||||
|
"*/delete <trade_id>:* `Instantly delete the given trade in the database`\n"
|
||||||
|
"*/whitelist:* `Show current whitelist` \n"
|
||||||
|
"*/blacklist [pair]:* `Show current blacklist, or adds one or more pairs "
|
||||||
|
"to the blacklist.` \n"
|
||||||
|
"*/reload_config:* `Reload configuration file` \n"
|
||||||
|
"*/unlock <pair|id>:* `Unlock this Pair (or this lock id if it's numeric)`\n"
|
||||||
|
|
||||||
|
"_Current state_\n"
|
||||||
|
"------------\n"
|
||||||
|
"*/show_config:* `Show running configuration` \n"
|
||||||
|
"*/locks:* `Show currently locked pairs`\n"
|
||||||
|
"*/balance:* `Show account balance per currency`\n"
|
||||||
|
"*/logs [limit]:* `Show latest logs - defaults to 10` \n"
|
||||||
|
"*/count:* `Show number of active trades compared to allowed number of trades`\n"
|
||||||
|
"*/edge:* `Shows validated pairs by Edge if it is enabled` \n"
|
||||||
|
|
||||||
|
"_Statistics_\n"
|
||||||
|
"------------\n"
|
||||||
"*/status <trade_id>|[table]:* `Lists all open trades`\n"
|
"*/status <trade_id>|[table]:* `Lists all open trades`\n"
|
||||||
" *<trade_id> :* `Lists one or more specific trades.`\n"
|
" *<trade_id> :* `Lists one or more specific trades.`\n"
|
||||||
" `Separate multiple <trade_id> with a blank space.`\n"
|
" `Separate multiple <trade_id> with a blank space.`\n"
|
||||||
@ -1247,30 +1272,17 @@ class Telegram(RPCHandler):
|
|||||||
"*/trades [limit]:* `Lists last closed trades (limited to 10 by default)`\n"
|
"*/trades [limit]:* `Lists last closed trades (limited to 10 by default)`\n"
|
||||||
"*/profit [<n>]:* `Lists cumulative profit from all finished trades, "
|
"*/profit [<n>]:* `Lists cumulative profit from all finished trades, "
|
||||||
"over the last n days`\n"
|
"over the last n days`\n"
|
||||||
"*/forcesell <trade_id>|all:* `Instantly sells the given trade or all trades, "
|
|
||||||
"regardless of profit`\n"
|
|
||||||
f"{forcebuy_text if self._config.get('forcebuy_enable', False) else ''}"
|
|
||||||
"*/delete <trade_id>:* `Instantly delete the given trade in the database`\n"
|
|
||||||
"*/performance:* `Show performance of each finished trade grouped by pair`\n"
|
"*/performance:* `Show performance of each finished trade grouped by pair`\n"
|
||||||
"*/daily <n>:* `Shows profit or loss per day, over the last n days`\n"
|
"*/daily <n>:* `Shows profit or loss per day, over the last n days`\n"
|
||||||
|
"*/weekly <n>:* `Shows statistics per week, over the last n weeks`\n"
|
||||||
|
"*/monthly <n>:* `Shows statistics per month, over the last n months`\n"
|
||||||
"*/stats:* `Shows Wins / losses by Sell reason as well as "
|
"*/stats:* `Shows Wins / losses by Sell reason as well as "
|
||||||
"Avg. holding durationsfor buys and sells.`\n"
|
"Avg. holding durationsfor buys and sells.`\n"
|
||||||
"*/count:* `Show number of active trades compared to allowed number of trades`\n"
|
|
||||||
"*/locks:* `Show currently locked pairs`\n"
|
|
||||||
"*/unlock <pair|id>:* `Unlock this Pair (or this lock id if it's numeric)`\n"
|
|
||||||
"*/balance:* `Show account balance per currency`\n"
|
|
||||||
"*/stopbuy:* `Stops buying, but handles open trades gracefully` \n"
|
|
||||||
"*/reload_config:* `Reload configuration file` \n"
|
|
||||||
"*/show_config:* `Show running configuration` \n"
|
|
||||||
"*/logs [limit]:* `Show latest logs - defaults to 10` \n"
|
|
||||||
"*/whitelist:* `Show current whitelist` \n"
|
|
||||||
"*/blacklist [pair]:* `Show current blacklist, or adds one or more pairs "
|
|
||||||
"to the blacklist.` \n"
|
|
||||||
"*/edge:* `Shows validated pairs by Edge if it is enabled` \n"
|
|
||||||
"*/help:* `This help message`\n"
|
"*/help:* `This help message`\n"
|
||||||
"*/version:* `Show version`")
|
"*/version:* `Show version`"
|
||||||
|
)
|
||||||
|
|
||||||
self._send_msg(message)
|
self._send_msg(message, parse_mode=ParseMode.MARKDOWN)
|
||||||
|
|
||||||
@authorized_only
|
@authorized_only
|
||||||
def _version(self, update: Update, context: CallbackContext) -> None:
|
def _version(self, update: Update, context: CallbackContext) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user