Add platform expression strategy runtime

This commit is contained in:
boris
2026-04-21 21:17:30 -07:00
parent 6c353d5441
commit 8b55fdabc7
6 changed files with 1450 additions and 0 deletions

View File

@@ -843,6 +843,19 @@ impl DataSet {
symbol: symbol.to_string(),
})
}
pub fn require_factor(
&self,
date: NaiveDate,
symbol: &str,
) -> Result<&DailyFactorSnapshot, DataSetError> {
self.factor(date, symbol)
.ok_or_else(|| DataSetError::MissingSnapshot {
kind: "factor",
date,
symbol: symbol.to_string(),
})
}
}
fn read_instruments(path: &Path) -> Result<Vec<Instrument>, DataSetError> {