@barchart/portfolio-api-common 1.0.108 → 1.0.109

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
- this._dataFormat.quoteChangePercent = formatPercent(quote.percentChange, 2);
97
+ this._dataFormat.quoteChangePercent = formatPercent(new Decimal(quote.percentChange), 2);
98
98
  this._dataFormat.quoteTime = quote.timeDisplay;
99
99
  this._dataFormat.quoteVolume = formatNumber(quote.volume, 0);
100
100
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1097,7 +1097,7 @@ module.exports = (() => {
1097
1097
  this._dataFormat.quoteHigh = formatNumber(quote.highPrice, precision);
1098
1098
  this._dataFormat.quoteLow = formatNumber(quote.lowPrice, precision);
1099
1099
  this._dataFormat.quoteChange = formatNumber(quote.priceChange, precision);
1100
- this._dataFormat.quoteChangePercent = formatPercent(quote.percentChange, 2);
1100
+ this._dataFormat.quoteChangePercent = formatPercent(new Decimal(quote.percentChange), 2);
1101
1101
  this._dataFormat.quoteTime = quote.timeDisplay;
1102
1102
  this._dataFormat.quoteVolume = formatNumber(quote.volume, 0);
1103
1103
  } else {