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

Function build_time_bars

python/openquant/bars.py:97–98  ·  view source on GitHub ↗
(df: pl.DataFrame, *, interval: str = "1d")

Source from the content-addressed store, hash-verified

95 for symbol in clean["symbol"].unique().to_list():
96 sdf = clean.filter(pl.col("symbol") == symbol).sort("ts")
97 rows = rust_builder(
98 [str(x) for x in sdf["ts"].to_list()],
99 [float(x) for x in sdf["close"].to_list()],
100 [float(x) for x in sdf["volume"].to_list()],
101 param,

Callers

nothing calls this directly

Calls 2

_build_by_symbolFunction · 0.85
_interval_to_secondsFunction · 0.70

Tested by

no test coverage detected