@barchart/portfolio-api-common 1.0.211 → 1.0.212

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.
@@ -596,7 +596,7 @@ module.exports = (() => {
596
596
  updates.summaryTotalCurrent = updates.summaryTotalCurrent.add(translate(item, item.data.summaryTotalCurrent));
597
597
  updates.summaryTotalPrevious = updates.summaryTotalPrevious.add(translate(item, item.data.summaryTotalPrevious));
598
598
 
599
- if (item.position.type === InstrumentType.CASH) {
599
+ if (item.position.instrument.type === InstrumentType.CASH) {
600
600
  updates.cashTotal = updates.cashTotal.add(translate(item, item.data.market));
601
601
  }
602
602
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.211",
3
+ "version": "1.0.212",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -2248,7 +2248,7 @@ module.exports = (() => {
2248
2248
  updates.summaryTotalCurrent = updates.summaryTotalCurrent.add(translate(item, item.data.summaryTotalCurrent));
2249
2249
  updates.summaryTotalPrevious = updates.summaryTotalPrevious.add(translate(item, item.data.summaryTotalPrevious));
2250
2250
 
2251
- if (item.position.type === InstrumentType.CASH) {
2251
+ if (item.position.instrument.type === InstrumentType.CASH) {
2252
2252
  updates.cashTotal = updates.cashTotal.add(translate(item, item.data.market));
2253
2253
  }
2254
2254