Add dynamic universe and subscription controls

This commit is contained in:
boris
2026-04-23 07:12:56 -07:00
parent 5265f82fef
commit 152b5c3141
12 changed files with 963 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
use std::collections::BTreeSet;
use std::error::Error;
use std::fs;
use std::io::Write;
@@ -117,6 +118,7 @@ fn main() -> Result<(), Box<dyn Error>> {
eprintln!(" {} {:.6}", row.symbol, row.market_cap_bn);
}
let mut debug_strategy = JqMicroCapStrategy::new(strategy_cfg.clone());
let debug_subscriptions = BTreeSet::new();
let decision = debug_strategy.on_day(&StrategyContext {
execution_date: date,
decision_date: date,
@@ -124,6 +126,8 @@ fn main() -> Result<(), Box<dyn Error>> {
data: &data,
portfolio: &PortfolioState::new(10_000_000.0),
open_orders: &[],
dynamic_universe: None,
subscriptions: &debug_subscriptions,
process_events: &[],
active_process_event: None,
})?;