@barchart/portfolio-api-common 1.0.254 → 1.0.255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -730,7 +730,7 @@ module.exports = (() => {
|
|
|
730
730
|
actual.unrealized = updates.unrealized;
|
|
731
731
|
actual.unrealizedToday = updates.unrealizedToday;
|
|
732
732
|
actual.summaryTotalCurrent = updates.summaryTotalCurrent;
|
|
733
|
-
actual.total = updates.
|
|
733
|
+
actual.total = updates.unrealized.add(actual.realized).add(actual.income);
|
|
734
734
|
|
|
735
735
|
format.market = formatCurrency(actual.market, currency);
|
|
736
736
|
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -2487,7 +2487,7 @@ module.exports = (() => {
|
|
|
2487
2487
|
actual.unrealized = updates.unrealized;
|
|
2488
2488
|
actual.unrealizedToday = updates.unrealizedToday;
|
|
2489
2489
|
actual.summaryTotalCurrent = updates.summaryTotalCurrent;
|
|
2490
|
-
actual.total = updates.
|
|
2490
|
+
actual.total = updates.unrealized.add(actual.realized).add(actual.income);
|
|
2491
2491
|
|
|
2492
2492
|
format.market = formatCurrency(actual.market, currency);
|
|
2493
2493
|
|