We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 408bb0a commit 03098a9Copy full SHA for 03098a9
investing_algorithm_framework/services/backtesting/backtest_service.py
@@ -287,7 +287,7 @@ def create_vector_backtest(
287
closed_at=None,
288
amount=amount,
289
net_gain=0,
290
- status=TradeStatus.OPEN,
+ status=TradeStatus.OPEN.value,
291
cost=capital_for_trade
292
)
293
trade.updated_at = current_date
@@ -302,7 +302,7 @@ def create_vector_backtest(
302
last_trade.closed_at = current_date
303
last_trade.updated_at = current_date
304
last_trade.net_gain = net_gain_val
305
- last_trade.status = TradeStatus.CLOSED
+ last_trade.status = TradeStatus.CLOSED.value
306
order = Order(
307
id=uuid4(),
308
target_symbol=symbol,
0 commit comments