Fix filled exception

closes #5404
This commit is contained in:
Matthias
2021-08-12 05:02:36 +00:00
committed by GitHub
parent bfc3968ab3
commit e03784d98d
2 changed files with 6 additions and 1 deletions

View File

@@ -161,7 +161,7 @@ class Order(_DECL_BASE):
self.ft_is_open = True
if self.status in ('closed', 'canceled', 'cancelled'):
self.ft_is_open = False
if order.get('filled', 0) > 0:
if (order.get('filled', 0.0) or 0.0) > 0:
self.order_filled_date = datetime.now(timezone.utc)
self.order_update_date = datetime.now(timezone.utc)