Add instrument history helpers

This commit is contained in:
boris
2026-04-23 19:43:36 -07:00
parent ca49b6dbb3
commit f4030f2607
6 changed files with 60 additions and 16 deletions

View File

@@ -269,6 +269,14 @@ impl StrategyContext<'_> {
.collect()
}
pub fn instruments_history(&self, symbols: &[&str]) -> Vec<&Instrument> {
self.data.instruments_history(symbols)
}
pub fn active_instruments(&self, symbols: &[&str]) -> Vec<&Instrument> {
self.data.active_instruments(self.execution_date, symbols)
}
pub fn all_instruments(&self) -> Vec<&Instrument> {
self.data.all_instruments()
}