Just in case also check for closed to avoid counting in canceled orders.
This commit is contained in:
@@ -587,7 +587,7 @@ class LocalTrade():
|
||||
tmp_price = o.average or o.price or 0.0
|
||||
if o.filled is not None:
|
||||
tmp_amount = o.filled
|
||||
if tmp_amount > 0.0 and tmp_price is not None:
|
||||
if tmp_amount > 0.0 and tmp_price is not None and o.status == 'closed':
|
||||
total_amount += tmp_amount
|
||||
total_stake += tmp_price * tmp_amount
|
||||
|
||||
|
Reference in New Issue
Block a user