backtest_lib.engine.plan.TargetWeightsOp#

class backtest_lib.engine.plan.TargetWeightsOp(weights: Mapping[str, float], cash: float | None, fill_cash: bool)#

Bases: PlanOp

Plan operation targeting portfolio weights.

Typically produced from a target_weights() decision.