Changeset 9577c79 for docs/P4-Prototype/UseCase0006Implementation.md
- Timestamp:
- 09/16/26 23:37:15 (13 days ago)
- Branches:
- main
- Children:
- 8b447ef
- Parents:
- df05838
- File:
-
- 1 edited
-
docs/P4-Prototype/UseCase0006Implementation.md (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/P4-Prototype/UseCase0006Implementation.md
rdf05838 r9577c79 12 12 ```sql 13 13 SELECT symbol, quantity, 14 COALESCE(reserved_quantity, 0), 15 COALESCE(available_quantity, quantity), 14 16 COALESCE(avg_price, 0), 15 17 COALESCE(current_price, 0), … … 30 32 ### Verified run 31 33 32 With the seed data (`data_load.sql`), immediately after login, alice's portfolio prints: 34 Re-run 2026-09-16 against PostgreSQL 16 with the seed data (`data_load.sql`). 35 Immediately after login, alice's portfolio prints (now with the 36 `Reserved`/`Available` columns from `holdings.reserved_quantity`): 33 37 34 38 ``` 35 Symbol Quantity Avg buy Current Value Unrealised P/L36 ------------------------------------------------------------------------------------ 37 ETH 0.5000 3500.000000 3520.000000 1760.0000 +10.000038 ------------------------------------------------------------------------------------ 39 TOTAL 1760.0000 +10.000039 Symbol Quantity Reserved Available Avg buy Current Value Unrealised P/L 40 ------------------------------------------------------------------------------------------------------------------ 41 ETH 0.5000 0.0000 0.5000 3500.000000 3520.000000 1760.0000 +10.0000 42 ------------------------------------------------------------------------------------------------------------------ 43 TOTAL 1760.0000 +10.0000 40 44 41 45 Cash available : 8250.0000 USD … … 43 47 Net worth : 10010.0000 USD 44 48 ``` 49 50 `Reserved` is 0.0000 here because nothing is mid-sell; see 51 [UseCase0005Implementation](UseCase0005Implementation.md) for a portfolio 52 snapshot taken with crypto actually reserved. 45 53 46 54 ### Transaction history
Note:
See TracChangeset
for help on using the changeset viewer.
