alpheast.portfolio.benchmark_calculator module¶
- class alpheast.portfolio.benchmark_calculator.BenchmarkCalculator(symbols, transaction_cost_percent=Decimal('0.001'), slippage_percent=Decimal('0.0005'))[source]¶
Bases:
objectManages the calculation and tracking of benchmark portfolio values.
- initialize_benchmark_holdings(initial_cash_total, current_market_prices)[source]¶
Initializes the benchmark holdings by equally weighting the initial cash across all symbols. This is called once at the first daily update.