@barchart/portfolio-api-common 1.0.113 → 1.0.114
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.
|
@@ -94,7 +94,7 @@ module.exports = (() => {
|
|
|
94
94
|
this._dataFormat.quoteHigh = formatNumber(quote.highPrice, precision);
|
|
95
95
|
this._dataFormat.quoteLow = formatNumber(quote.lowPrice, precision);
|
|
96
96
|
this._dataFormat.quoteChange = formatNumber(quote.priceChange, precision);
|
|
97
|
-
|
|
97
|
+
this._dataFormat.quoteChangePercent = formatPercent(new Decimal(quote.percentChange || 0), 2);
|
|
98
98
|
this._dataFormat.quoteTime = quote.timeDisplay;
|
|
99
99
|
this._dataFormat.quoteVolume = formatNumber(quote.volume, 0);
|
|
100
100
|
} else {
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -1099,7 +1099,7 @@ module.exports = (() => {
|
|
|
1099
1099
|
this._dataFormat.quoteHigh = formatNumber(quote.highPrice, precision);
|
|
1100
1100
|
this._dataFormat.quoteLow = formatNumber(quote.lowPrice, precision);
|
|
1101
1101
|
this._dataFormat.quoteChange = formatNumber(quote.priceChange, precision);
|
|
1102
|
-
|
|
1102
|
+
this._dataFormat.quoteChangePercent = formatPercent(new Decimal(quote.percentChange || 0), 2);
|
|
1103
1103
|
this._dataFormat.quoteTime = quote.timeDisplay;
|
|
1104
1104
|
this._dataFormat.quoteVolume = formatNumber(quote.volume, 0);
|
|
1105
1105
|
} else {
|