inform about mocked values with dry_run
This commit is contained in:
parent
460dfa1031
commit
c37df0e70d
@ -200,6 +200,7 @@ def _profit(bot: Bot, update: Update) -> None:
|
||||
*Latest Trade opened:* `{latest_trade_date}`
|
||||
*Avg. Duration:* `{avg_duration}`
|
||||
*Best Performing:* `{best_pair}: {best_rate:.2f}%`
|
||||
{dry_run_info}
|
||||
""".format(
|
||||
profit_btc=round(sum(profit_amounts), 8),
|
||||
profit=round(sum(profits) * 100, 2),
|
||||
@ -209,6 +210,8 @@ def _profit(bot: Bot, update: Update) -> None:
|
||||
avg_duration=str(timedelta(seconds=sum(durations) / float(len(durations)))).split('.')[0],
|
||||
best_pair=bp_pair,
|
||||
best_rate=round(bp_rate * 100, 2),
|
||||
dry_run_info='\n*NOTE:* These values are mocked because *dry_run* is enabled!'
|
||||
if _CONF['dry_run'] else ''
|
||||
)
|
||||
send_msg(markdown_msg, bot=bot)
|
||||
|
||||
@ -325,7 +328,11 @@ def _performance(bot: Bot, update: Update) -> None:
|
||||
profit=round(rate * 100, 2)
|
||||
) for i, (pair, rate) in enumerate(pair_rates))
|
||||
|
||||
message = '<b>Performance:</b>\n{}\n'.format(stats)
|
||||
message = '<b>Performance:</b>\n{}\n{}'.format(
|
||||
stats,
|
||||
'<b>NOTE:</b> These values are mocked because <b>dry_run</b> is enabled.'
|
||||
if _CONF['dry_run'] else ''
|
||||
)
|
||||
logger.debug(message)
|
||||
send_msg(message, parse_mode=ParseMode.HTML)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user