Skip to content

Commit da6e8e9

Browse files
committed
Fix trade status conversion
1 parent a4c926e commit da6e8e9

File tree

1 file changed

+1
-1
lines changed
  • investing_algorithm_framework/domain/models/trade

1 file changed

+1
-1
lines changed

investing_algorithm_framework/domain/models/trade/trade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(
9797
def update(self, data):
9898

9999
if "status" in data:
100-
self.status = TradeStatus.from_value(data["status"])
100+
self.status = TradeStatus.from_value(data["status"]).value
101101

102102
if TradeStatus.CLOSED.equals(self.status):
103103

0 commit comments

Comments
 (0)