portfolio_rs/tests/snapshots
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Markus Zoppelt b927c9a14a fix: a manual holding without purchases is one item
For a position without a ticker that is not cash, `Amount` is its value.
Without purchases quantity_dec() still returned `Amount`, so a watch worth
250 was reported as 250 units: in the balances table, in get_positions,
get_context and /api/context, and in new snapshots. The balances table
also showed its price as 0.00.

quantity_dec() is now 1 for such a holding; get_amount() keeps returning
the data-format amount, and valuation still uses `Amount`. The balances
column is renamed from Amount to Quantity, and a manual holding shows "-"
as its price. Older snapshots that stored `Amount` as the quantity give
the same get_performance results: without purchases there are no
transactions to price.
2026-11-01 21:06:31 +01:00
..
allocation.snap refactor(portfolio): render tables to strings and add snapshot tests 2026-10-28 01:23:09 +01:00
holdings.snap fix: a manual holding without purchases is one item 2026-11-01 21:06:31 +01:00
performance.snap fix(print): label cost-basis return %PnL instead of %Since (snapshots updated) 2026-10-28 01:44:01 +01:00