calculate_portfolio_allocation
Calculate crypto portfolio allocation amounts from total value and custom percentages for Bitcoin, Ethereum, altcoins, and stablecoins. Returns per-asset allocation and total percentage sum.
Instructions
Calculate portfolio allocation amounts by percentage for major crypto asset classes. Returns: {allocation_pct, sum_pct}. See list_bundles for related 'crypto' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total_value | Yes | Total portfolio value in fiat currency | |
| btc_pct | No | Bitcoin allocation percentage (default 40%) | |
| eth_pct | No | Ethereum allocation percentage (default 30%) | |
| alts_pct | No | Altcoins allocation percentage (default 20%) | |
| stablecoins_pct | No | Stablecoins allocation percentage (default 10%) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |