@barchart/portfolio-api-common 1.2.59 → 1.2.60
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.
|
@@ -420,7 +420,7 @@ module.exports = (() => {
|
|
|
420
420
|
} else if (data.previousPrice) {
|
|
421
421
|
priceToUse = new Decimal(data.previousPrice);
|
|
422
422
|
} else if (!currentSummary.end.open.getIsZero()) {
|
|
423
|
-
priceToUse = currentSummary.end.value.divide(
|
|
423
|
+
priceToUse = currentSummary.end.value.divide(currentSummary.end.open);
|
|
424
424
|
} else {
|
|
425
425
|
priceToUse = null;
|
|
426
426
|
}
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -3556,7 +3556,7 @@ module.exports = (() => {
|
|
|
3556
3556
|
} else if (data.previousPrice) {
|
|
3557
3557
|
priceToUse = new Decimal(data.previousPrice);
|
|
3558
3558
|
} else if (!currentSummary.end.open.getIsZero()) {
|
|
3559
|
-
priceToUse = currentSummary.end.value.divide(
|
|
3559
|
+
priceToUse = currentSummary.end.value.divide(currentSummary.end.open);
|
|
3560
3560
|
} else {
|
|
3561
3561
|
priceToUse = null;
|
|
3562
3562
|
}
|