@barchart/portfolio-api-common 1.0.103 → 1.0.104

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.
@@ -74,7 +74,7 @@ module.exports = (() => {
74
74
  item.registerPriceChangeHandler((data, sender) => {
75
75
  if (this._single) {
76
76
  this._dataActual.currentPrice = data.currentPrice;
77
- this._dataFormat.currentPrice = formatCurrency(data.currentPrice, sender.position.instrument.currency);
77
+ this._dataFormat.currentPrice = formatCurrency(new Decimal(data.currentPrice), sender.position.instrument.currency);
78
78
  } else {
79
79
  this._dataActual.currentPrice = null;
80
80
  this._dataFormat.currentPrice = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.103",
3
+ "version": "1.0.104",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1077,7 +1077,7 @@ module.exports = (() => {
1077
1077
  item.registerPriceChangeHandler((data, sender) => {
1078
1078
  if (this._single) {
1079
1079
  this._dataActual.currentPrice = data.currentPrice;
1080
- this._dataFormat.currentPrice = formatCurrency(data.currentPrice, sender.position.instrument.currency);
1080
+ this._dataFormat.currentPrice = formatCurrency(new Decimal(data.currentPrice), sender.position.instrument.currency);
1081
1081
  } else {
1082
1082
  this._dataActual.currentPrice = null;
1083
1083
  this._dataFormat.currentPrice = null;