INNER CODE UNIT · Python
cmd_systemone_build_state
initial-d/ml-quant-trading · src/mlquant/cli/main.py:424
def cmd_systemone_build_state(
artifacts_dir: Path,
as_of_index: int,
include_realized: bool,
costs_bps: float | None,
output_path: Path,
) -> None:
"""Build a typed portfolio decision state from pipeline artifacts."""
payload = systemone_build_state_from_artifacts(
artifacts_dir,
as_of_index=as_of_index,
include_realized=include_realized,
costs_bps=costs_bps,
)
save_systemone_json(payload, output_path)
click.echo(f"wrote {output_path}")