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

Function register

crates/pyopenquant/src/bars.rs:104–115  ·  view source on GitHub ↗
(py: Python<'_>, parent: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

102///
103/// AFML section 2.3.1.3. The trade that crosses the threshold belongs to the bar it
104/// closes, so bars overshoot. A trailing partial bar is dropped. Trades must be in
105/// increasing time order; the input is not sorted or validated.
106///
107/// Parameters
108/// ----------
109/// timestamps : list[str]
110/// Trade timestamps as `"%Y-%m-%d %H:%M:%S"` (an optional fractional second is
111/// accepted) or `"%Y-%m-%d"` (read as midnight).
112/// prices : list[float]
113/// Trade prices.
114/// volumes : list[float]
115/// Trade sizes.
116/// volume_per_bar : float
117/// Cumulative volume that closes a bar; must be positive and finite.
118///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected