Remove entry time from strategy name when inserting records into backtest table

This commit is contained in:
moshferatu 2024-02-02 07:45:40 -08:00
parent 28e316b03a
commit 8d83d0dc8d

View File

@ -27,7 +27,7 @@ def run_backtest(start_date: datetime, end_date: datetime):
for entry_time in available_entry_times(): for entry_time in available_entry_times():
call_spread_strategy, put_spread_strategy = create_strategies(entry_time) call_spread_strategy, put_spread_strategy = create_strategies(entry_time)
backtest_results = backtest_iron_condor( backtest_results = backtest_iron_condor(
f'10 Delta Iron Condor @ {call_spread_strategy.trade_entry_time}', f'10 Delta Iron Condor',
call_spread_strategy, call_spread_strategy,
put_spread_strategy, put_spread_strategy,
start_date, start_date,