@barchart/portfolio-api-common 1.0.172 → 1.0.173
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.
|
@@ -702,7 +702,7 @@ module.exports = (() => {
|
|
|
702
702
|
let numerator;
|
|
703
703
|
|
|
704
704
|
if (group.currency !== parent.currency) {
|
|
705
|
-
numerator = Rate.convert(actual.
|
|
705
|
+
numerator = Rate.convert(actual.marketAbsolute, group.currency, parent.currency, ...rates);
|
|
706
706
|
} else {
|
|
707
707
|
numerator = actual.marketAbsolute;
|
|
708
708
|
}
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -2125,7 +2125,7 @@ module.exports = (() => {
|
|
|
2125
2125
|
let numerator;
|
|
2126
2126
|
|
|
2127
2127
|
if (group.currency !== parent.currency) {
|
|
2128
|
-
numerator = Rate.convert(actual.
|
|
2128
|
+
numerator = Rate.convert(actual.marketAbsolute, group.currency, parent.currency, ...rates);
|
|
2129
2129
|
} else {
|
|
2130
2130
|
numerator = actual.marketAbsolute;
|
|
2131
2131
|
}
|