map_holdings_to_targets
Map local portfolio holdings to target allocation buckets by ISIN or name keywords, classifying special instruments as satellite positions and producing current values ready for rebalancing.
Instructions
Map every holding in a local export to a target allocation bucket (portfolio.mapping) by ISIN then by name keywords, using get_portfolio_config()'s targets and config/model_portfolios.yaml's example instruments. Certificates, leveraged instruments and single stocks are reported as satellite positions outside the bucket system -- never silently dropped from coverage. The result's 'current_values' plugs directly into rebalance_portfolio/allocate_cash's current_values parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| base_currency | No | EUR |