2024-01-18 15:57:44 +00:00
|
|
|
from database.backtest import backtest_results
|
|
|
|
from datetime import datetime
|
|
|
|
|
2024-02-02 17:41:18 +00:00
|
|
|
single_date = backtest_results('SPX', '10 Delta Iron Condor', datetime(2024, 1, 2))
|
|
|
|
print('Single Date:')
|
|
|
|
print(single_date)
|
|
|
|
|
|
|
|
date_range = backtest_results('SPX', '10 Delta Iron Condor',
|
|
|
|
start_date = datetime(2024, 1, 1), end_date = datetime(2024, 1, 31))
|
|
|
|
print('Date Range:')
|
|
|
|
print(date_range)
|