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

Function ms_get_vpin

crates/pyopenquant/src/microstructural.rs:72–74  ·  view source on GitHub ↗
(volume: Vec<f64>, buy_volume: Vec<f64>, window: usize)

Source from the content-addressed store, hash-verified

70fn ms_get_trades_based_amihud_lambda(log_ret: Vec<f64>, dollar_volume: Vec<f64>) -> f64 {
71 openquant::microstructural_features::get_trades_based_amihud_lambda(&log_ret, &dollar_volume)
72}
73
74#[pyfunction(name = "get_trades_based_hasbrouck_lambda")]
75fn ms_get_trades_based_hasbrouck_lambda(
76 log_ret: Vec<f64>,
77 dollar_volume: Vec<f64>,

Callers

nothing calls this directly

Calls 1

get_vpinFunction · 0.85

Tested by

no test coverage detected