database/query_backtest_results_example.py

11 lines
377 B
Python
Raw Normal View History

from database.backtest import backtest_results
from datetime import datetime
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)