@barchart/portfolio-api-common 1.0.59 → 1.0.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.
@@ -108,7 +108,7 @@ module.exports = (() => {
108
108
  }
109
109
 
110
110
  raw.basis = updates.basis;
111
- formatted.basis = format(updates.basis, Currency.USD);
111
+ formatted.basis = format(updates.basis.opposite(), Currency.USD);
112
112
  }
113
113
 
114
114
  function calculateVariablePriceData(group, item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -796,7 +796,7 @@ module.exports = (() => {
796
796
  }
797
797
 
798
798
  raw.basis = updates.basis;
799
- formatted.basis = format(updates.basis, Currency.USD);
799
+ formatted.basis = format(updates.basis.opposite(), Currency.USD);
800
800
  }
801
801
 
802
802
  function calculateVariablePriceData(group, item) {