goldberry

All docs ↓

0014. Investing is a simulated brokerage at real prices, with parent-paid profit

Decision

Kids invest the money in a fourth jar, Invest, which fills from the split rule like any other jar. Orders execute inside Goldberry at real US prices from a market-data provider (Finnhub, behind a market.Provider interface). No real brokerage is involved: like every other balance, the jar is money the parents hold for the kid.

Consequences

Kids practise with their real allowance, and gains are meaningful without the app ever moving money. Parents control the risk through the Invest share of the split and by choosing when to pay earnings. Prices need outbound internet and a free API key, so investing is off by default and the app still runs offline without it. The SQLite migration rebuilds jars and ledger_entries to widen their CHECK constraints (copy, drop, rename, with foreign keys off), and a test upgrades a populated database through it.

View this page on GitHub