@barchart/portfolio-api-common 1.0.93 → 1.0.94

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.
@@ -186,7 +186,7 @@ module.exports = (() => {
186
186
  if (summary && price) {
187
187
  const period = summary.period;
188
188
 
189
- let unrealizedCurrent = summary.open.multiply(price).add(summary.end.basis);
189
+ let unrealizedCurrent = summary.end.open.multiply(price).add(summary.end.basis);
190
190
 
191
191
  let summaryTotalCurrent = period.realized.add(period.income).add(unrealizedCurrent);
192
192
  let summaryTotalCurrentChange;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1547,7 +1547,7 @@ module.exports = (() => {
1547
1547
  if (summary && price) {
1548
1548
  const period = summary.period;
1549
1549
 
1550
- let unrealizedCurrent = summary.open.multiply(price).add(summary.end.basis);
1550
+ let unrealizedCurrent = summary.end.open.multiply(price).add(summary.end.basis);
1551
1551
 
1552
1552
  let summaryTotalCurrent = period.realized.add(period.income).add(unrealizedCurrent);
1553
1553
  let summaryTotalCurrentChange;