MCPcopy Create free account
hub / github.com/Open-Quant/openquant / load_prices

Function load_prices

crates/openquant/tests/fast_ewma.rs:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11fn load_prices() -> Vec<f64> {
12 let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
13 .join("../../tests/fixtures/microstructural_features/tick_data.csv");
14 let mut rdr = ReaderBuilder::new().has_headers(true).from_path(path).unwrap();
15 let mut prices = Vec::new();
16 for rec in rdr.deserialize::<TickRow>() {
17 prices.push(rec.unwrap().price);
18 }
19 prices
20}
21
22#[test]
23fn test_ewma() {

Callers 1

test_ewmaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected