Check before you buy
check_before_you_buyBefore adding one new holding to an existing portfolio: how much of it is already owned through the current funds (from the fund's SEC filing when there is one), whether it adds an independent bet, and what past crises would have done with it included. Use it for one addition; for removing, reweighting or several changes at once, test_a_change. add is the ticker considered, amount how much of it in the same units as holdings, holdings what is owned now, base the currency (default USD). Counterfactual; never says whether to buy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | Yes | The one ticker being considered. | |
| base | No | Currency every figure is expressed in (USD, EUR, GBP, CAD…). Default USD. | |
| amount | Yes | How much of it, in the same units as `holdings` (money when holdings are amounts). | |
| holdings | Yes | What is held: {ticker: weight or amount}. Weights need not sum to one; amounts in the base currency are also accepted (then the crises are shown in money). 1 to 100 holdings. Tickers as the exchange lists them (VOO, VWCE.DE, XAW.TO; 'CASH.USD' for cash). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | The ticker considered. | |
| bets | No | Independent bets before and after. | |
| data | No | Where the prices came from and what was missing or repaired. | |
| _fence | Yes | What these figures are and are not: descriptive, no forecast, no advice. Repeat its sense when presenting the result. | |
| amount | No | How much of it. | |
| crises | No | Per past crisis: fall before and after, as fractions. | |
| window | No | The shared price window. | |
| overlap | No | How much of it is already owned: kind (fund, stock, opaque); for a fund already_share (share of its money in companies already held), seen_share, shared ([company, weight in it, weight in the portfolio]), source, as_of; for a stock already (share of the portfolio) and via. | |
| top_risk | No | The holding carrying the most risk, and its share, before and after. | |
| total_after | No | Portfolio size after. | |
| total_before | No | Portfolio size before. |