mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
add total amount of trades to /status
This commit is contained in:
parent
bd356f3eb4
commit
ddd62277c2
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user