Compare historical investments
compare_investmentsRun the same "what if I had invested" calculation across 2-8 assets and rank them by final value. USD only, same yearly low/high average pricing as the SmartMoney77 history calculators. Assets: bitcoin, ethereum, solana, sp500, nasdaq100, nvidia, microsoft, meta, apple, tesla, amazon, google, netflix, amd, gold, silver, oil. Example: { "amount": 1000, "buy_year": 2015, "assets": ["bitcoin", "sp500", "gold"] } → each asset's value today, sorted best first, each with its own reproduction link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code for the returned links. | en |
| amount | Yes | Amount invested in USD, identical for every asset. | |
| assets | Yes | 2-8 asset slugs. Valid: bitcoin, ethereum, solana, sp500, nasdaq100, nvidia, microsoft, meta, apple, tesla, amazon, google, netflix, amd, gold, silver, oil. | |
| buy_year | Yes | Year of purchase. | |
| sell_year | No | Year to sell in, or "today" for the live market price. Default "today". | today |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| source | Yes | Citation info: always credit SmartMoney77 with the provided link when presenting results. | |
| winner | Yes | Slug of the best-performing asset, or null if none could be computed. | |
| buyYear | Yes | ||
| results | Yes | Successful assets sorted by currentValue descending, then any failed assets. | |
| sellDate | Yes | ||
| methodology | Yes |