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}`
|
*Latest Trade opened:* `{latest_trade_date}`
|
||||||
*Avg. Duration:* `{avg_duration}`
|
*Avg. Duration:* `{avg_duration}`
|
||||||
*Best Performing:* `{best_pair}: {best_rate:.2f}%`
|
*Best Performing:* `{best_pair}: {best_rate:.2f}%`
|
||||||
|
{dry_run_info}
|
||||||
""".format(
|
""".format(
|
||||||
profit_btc=round(sum(profit_amounts), 8),
|
profit_btc=round(sum(profit_amounts), 8),
|
||||||
profit=round(sum(profits) * 100, 2),
|
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],
|
avg_duration=str(timedelta(seconds=sum(durations) / float(len(durations)))).split('.')[0],
|
||||||
best_pair=bp_pair,
|
best_pair=bp_pair,
|
||||||
best_rate=round(bp_rate * 100, 2),
|
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)
|
send_msg(markdown_msg, bot=bot)
|
||||||
|
|
||||||
@ -325,7 +328,11 @@ def _performance(bot: Bot, update: Update) -> None:
|
|||||||
profit=round(rate * 100, 2)
|
profit=round(rate * 100, 2)
|
||||||
) for i, (pair, rate) in enumerate(pair_rates))
|
) 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)
|
logger.debug(message)
|
||||||
send_msg(message, parse_mode=ParseMode.HTML)
|
send_msg(message, parse_mode=ParseMode.HTML)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user