CostModelΒΆ Defined in fynance.core class CostModel(*args, **kwargs)[source] Bases: Protocol Map a weight book to per-step transaction costs. Concrete models live in fynance.backtest.cost. __call__(weights)[source] Return per-step costs aligned with the weight series.