Ignore:
Timestamp:
09/16/26 23:37:15 (13 days ago)
Author:
Stefan <trsunovstefan@…>
Branches:
main
Children:
8b447ef
Parents:
df05838
Message:

add reserved_quantity and modify the phases, add v_03.png and v_03.xml for P1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/P4-Prototype/UseCase0006Implementation.md

    rdf05838 r9577c79  
    1212   ```sql
    1313   SELECT symbol, quantity,
     14          COALESCE(reserved_quantity,  0),
     15          COALESCE(available_quantity, quantity),
    1416          COALESCE(avg_price,      0),
    1517          COALESCE(current_price,  0),
    … …  
    3032### Verified run
    3133
    32 With the seed data (`data_load.sql`), immediately after login, alice's portfolio prints:
     34Re-run 2026-09-16 against PostgreSQL 16 with the seed data (`data_load.sql`).
     35Immediately after login, alice's portfolio prints (now with the
     36`Reserved`/`Available` columns from `holdings.reserved_quantity`):
    3337
    3438```
    35   Symbol        Quantity         Avg buy         Current           Value  Unrealised P/L
    36   ------------------------------------------------------------------------------------
    37   ETH             0.5000     3500.000000     3520.000000       1760.0000        +10.0000
    38   ------------------------------------------------------------------------------------
    39   TOTAL                                                        1760.0000        +10.0000
     39  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
    4044
    4145  Cash available : 8250.0000 USD
    … …  
    4347  Net worth      : 10010.0000 USD
    4448```
     49
     50`Reserved` is 0.0000 here because nothing is mid-sell; see
     51[UseCase0005Implementation](UseCase0005Implementation.md) for a portfolio
     52snapshot taken with crypto actually reserved.
    4553
    4654### Transaction history
Note: See TracChangeset for help on using the changeset viewer.