I've read portfolio's specifications. However, I have a doubt regarding how to update a given users's balance. Suppose a user with an id '1' buys a stock whose symbol is 'A' for a price '$B'. Now suppose that A's price increments by $5. Now, when I list how much shares a user has and how much they're worth, which price should I print and how should I display the balance?
I'm thinking regarding the cash balance, I would have to use the previous value of price with which the user made the transaction. Is that right?
However, in portfolio, when I'm displaying how much the user's share are worth currently, should I use the updated price? This would create a discrepancy between how much the user is billed for the stock 'A' and how much they're currently worth. Is that discrepancy acceptable?