Price sensitivity grid
price_sensitivityCalculate margin-per-tonne for a product under configured price shocks to show margin impact per metal and assess price sensitivity.
Instructions
Margin-per-tonne sensitivity for one product under price shocks: an 'all metals' row plus one row per metal, showing margin/MT under each configured shock (default -25%/-10%/+10%/+25%).
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. | |
| product | Yes | Product name (must exist in config.products). |