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

Function align_calendar_rows

crates/openquant/src/data_processing.rs:556–563  ·  view source on GitHub ↗
(
    rows: &[OhlcvRow],
    interval_seconds: i64,
)

Source from the content-addressed store, hash-verified

554}
555
556pub fn align_calendar_rows(
557 rows: &[OhlcvRow],
558 interval_seconds: i64,
559) -> Result<Vec<AlignedOhlcvRow>, String> {
560 let cols = rows_to_columns(rows);
561 let aligned_cols = align_calendar_columns(&cols, interval_seconds)?;
562 Ok(aligned_columns_to_rows(&aligned_cols))
563}

Callers 1

clean_and_align_rowsFunction · 0.85

Calls 3

rows_to_columnsFunction · 0.85
align_calendar_columnsFunction · 0.85
aligned_columns_to_rowsFunction · 0.85

Tested by 1

clean_and_align_rowsFunction · 0.68