fix(python): match the type stubs to the real CostModel and broker bindings

Merged
RI
10d ago
+1-3

Found while checking the reference in #78.

  • CostModel.__init__: the binding is (commission_bps: float = 0.0, slippage_bps: float = 0.0, min_commission: int = 0) (python/src/portfolio.rs:31). The stub had int bps and min_trade_fee, so type checkers flagged correct calls and accepted a keyword that raises TypeError.
  • IbkrBroker.open_orders and BinanceBroker.open_orders: no such method in python/src; removed from the stub.