Include open orders in json responses

This commit is contained in:
Matthias
2022-05-24 20:31:45 +02:00
parent c0ff554d5b
commit 8369d5bedd
2 changed files with 17 additions and 2 deletions

View File

@@ -396,7 +396,7 @@ class Telegram(RPCHandler):
first_avg = filled_orders[0]["safe_price"]
for x, order in enumerate(filled_orders):
if not order['ft_is_entry']:
if not order['ft_is_entry'] or order['is_open'] is True:
continue
cur_entry_datetime = arrow.get(order["order_filled_date"])
cur_entry_amount = order["amount"]