Evaluate contract structures
evaluate_contractsEvaluate offtake/feedstock contracts at spot prices, including grade multipliers, profit shares, collars, and assay payables. Returns outputs and binding flags.
Instructions
Evaluate all configured offtake/feedstock contract structures at spot. Supports grade_multiplier, discount_profit_share, collar, and assay_payables. Returns each contract's outputs and binding flags (collar floor/ceiling binding, profit-share triggered).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | Margin config (products, indices, cost_per_mt, inventory_mt, sensitivity_shocks, contracts). Defaults to the bundled sample config. | |
| prices | No | Index prices {symbol: usd_per_tonne}. Defaults to the bundled sample feed. |