This point only StockHoldings and BondHoldings) that belongs to the user. To do this we need the most recent HoldingValueStamps for each holding (at We also need to be able to tell the user the current value of their portfolio. SQL sub-select multiple columns with INNER JOIN Our users a trend-line of their portfolio’s value overtime. Having these stamps would also allow us to show These stamps are created to keep an historical record of the HoldingValueStamp will be how we track their value.Įvery minute, we’ll create a HoldingValueStamp with the current value of yourġ0 shares of AAPL. The value of those AAPL shares wouldįluctuate over time. You bought 10 shares of AAPL, we would create a StockHolding for you withĬompany_id: 'AAPL', quantity: 10. Here StockHolding and BondHolding represent ownership of stock and bonds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |