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
96
97def build_time_bars(df: pl.DataFrame, *, interval: str = "1d") -> pl.DataFrame:
98 return _build_by_symbol(df, _core.bars.build_time_bars, _interval_to_seconds(interval))
99
100
101def build_tick_bars(df: pl.DataFrame, *, ticks_per_bar: int = 50) -> pl.DataFrame:

Callers

nothing calls this directly

Calls 2

_build_by_symbolFunction · 0.85
_interval_to_secondsFunction · 0.70

Tested by

no test coverage detected