add total amount of trades to /status

This commit is contained in:
Samuel Husso 2018-01-20 17:50:23 +02:00
parent bd356f3eb4
commit ddd62277c2

View File

@ -156,6 +156,7 @@ def _status(bot: Bot, update: Update) -> None:
*Close Profit:* `{close_profit}` *Close Profit:* `{close_profit}`
*Current Profit:* `{current_profit:.2f}%` *Current Profit:* `{current_profit:.2f}%`
*Open Order:* `{open_order}` *Open Order:* `{open_order}`
*Total Open Trades:* `{total_trades}`
""".format( """.format(
trade_id=trade.id, trade_id=trade.id,
pair=trade.pair.replace('_', '/'), pair=trade.pair.replace('_', '/'),
@ -170,6 +171,7 @@ def _status(bot: Bot, update: Update) -> None:
open_order='({} rem={:.8f})'.format( open_order='({} rem={:.8f})'.format(
order['type'], order['remaining'] order['type'], order['remaining']
) if order else None, ) if order else None,
total_trades=len(trades)
) )
send_msg(message, bot=bot) send_msg(message, bot=bot)