Refactor - store incoming prices as BigDecimals
Opened this issue · 0 comments
tmaverick commented
Prices should be stored as BigDecimals. The formatting of numbers to strings should be done elsewhere (currently in StockQuote)
- Add StockQuote.rawPrice : BigDecimal. This has the value of the raw data from source.
- Move formatting code to StockQuote.getPrice() - make it use priceBigDecimal.
- Remove StockQuote.price
- Move formatting code to another class
.