docs(reference): bring the API examples in line with the current code
Merged
RI
10d ago+130+130+012345678901234567890123456789-33-33-01234567890123456789
Follow-up to #76, which moved the developer reference to docs/reference.md unchanged. The review there flagged stale examples; this fixes those and about fifteen more found by checking every example against the source:
CostModel: bps fields aref64,min_trade_feeismin_commission.Position::apply_filltakesShares.backtest_weights(Rust and Python) takesCostModel,FillPolicyandBarPrices;equity_curveholds the initial equity plus one entry per period; result fields listed in full.Brokertrait:open_orders,BrokerOrder.client_order_id,Quote.timestamp.- Event list: the four
SubmitStop*variants. Symbol limit: 8 UTF-8 bytes. compute_metricsreturnsOption<Metrics>; risk statuses arePASS|WARN|FAIL; rebalancer andlobCLI commands completed; Python stop and broker options documented.
Check: every changed Rust example compiles and runs (with asserts) in a scratch crate depending on the workspace by path; the old snippets fail to compile. Python examples checked against the PyO3 source and run against a local build.