Skip to content

Rust

The native crate. Fold a FeatureSpec over a universe with build, or drive a FeatureStore handle with the JSON command protocol every other binding uses.

bash
cargo add wickra-feature-store
rust
use feature_store_core::{build, Candle, FeatureSpec};
use std::collections::BTreeMap;

let spec = FeatureSpec::from_json(SPEC).expect("valid spec");

let mut data: BTreeMap<String, Vec<Candle>> = BTreeMap::new();
// ... fill `data` with each symbol's candle history ...

let matrix = build(&data, &spec).expect("build");
println!("columns: {:?}", matrix.columns());

More