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

Function bs_all_bets_concentration

crates/pyopenquant/src/backtest_stats.rs:104–110  ·  view source on GitHub ↗
(
    timestamps: Vec<String>,
    returns: Vec<f64>,
)

Source from the content-addressed store, hash-verified

102
103#[pyfunction(name = "all_bets_concentration")]
104fn bs_all_bets_concentration(
105 timestamps: Vec<String>,
106 returns: Vec<f64>,
107) -> PyResult<(Option<f64>, Option<f64>, Option<f64>)> {
108 let data = pair_timestamps_values(timestamps, returns, "timestamps", "returns")?;
109 Ok(openquant::backtest_statistics::all_bets_concentration(&data))
110}
111
112#[pyfunction(name = "drawdown_and_time_under_water")]
113#[pyo3(signature = (timestamps, returns, dollars=false))]

Callers

nothing calls this directly

Calls 2

pair_timestamps_valuesFunction · 0.85
all_bets_concentrationFunction · 0.85

Tested by

no test coverage detected