Skip to content

Commit

Permalink
backtester cli args moved to kebab case
Browse files Browse the repository at this point in the history
  • Loading branch information
andorsk authored Dec 31, 2024
1 parent 9d783a7 commit e74cb72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backtester.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def analyze_performance(self):
# Set up argument parser
parser = argparse.ArgumentParser(description='Run backtesting simulation')
parser.add_argument('--ticker', type=str, help='Stock ticker symbol (e.g., AAPL)')
parser.add_argument('--end_date', type=str, default=datetime.now().strftime('%Y-%m-%d'), help='End date in YYYY-MM-DD format')
parser.add_argument('--start_date', type=str, default=(datetime.now() - timedelta(days=90)).strftime('%Y-%m-%d'), help='Start date in YYYY-MM-DD format')
parser.add_argument('--initial_capital', type=float, default=100000, help='Initial capital amount (default: 100000)')
parser.add_argument('--end-date', type=str, default=datetime.now().strftime('%Y-%m-%d'), help='End date in YYYY-MM-DD format')
parser.add_argument('--start-date', type=str, default=(datetime.now() - timedelta(days=90)).strftime('%Y-%m-%d'), help='Start date in YYYY-MM-DD format')
parser.add_argument('--initial-capital', type=float, default=100000, help='Initial capital amount (default: 100000)')

args = parser.parse_args()

Expand Down

0 comments on commit e74cb72

Please sign in to comment.