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

Function build_tick_bars

python/openquant/bars.py:101–104  ·  view source on GitHub ↗
(df: pl.DataFrame, *, ticks_per_bar: int = 50)

Source from the content-addressed store, hash-verified

99 [float(x) for x in sdf["close"].to_list()],
100 [float(x) for x in sdf["volume"].to_list()],
101 param,
102 )
103 out_frames.append(_rows_to_frame(symbol, rows))
104 if not out_frames:
105 return _rows_to_frame("", [])
106 return pl.concat(out_frames, how="vertical").sort(["symbol", "ts"])
107

Callers

nothing calls this directly

Calls 1

_build_by_symbolFunction · 0.85

Tested by

no test coverage detected