@barchart/portfolio-api-common 1.0.134 → 1.0.135

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.
@@ -38,9 +38,11 @@ module.exports = (() => {
38
38
 
39
39
  this._excluded = false;
40
40
  this._suspended = false;
41
+ this._showClosedPositions = false;
41
42
 
42
43
  this._marketPercentChangeEvent = new Event(this);
43
44
  this._excludedChangeEvent = new Event(this);
45
+ this._showClosedPositionsChangeEvent = new Event(this);
44
46
 
45
47
  this._dataFormat = { };
46
48
  this._dataActual = { };
@@ -257,6 +259,14 @@ module.exports = (() => {
257
259
  }
258
260
  }
259
261
 
262
+ setShowClosedPositions(value) {
263
+ assert.argumentIsRequired(value, 'value', Boolean);
264
+
265
+ if (this._showClosedPositions !== value) {
266
+ this._showClosedPositionsChangeEvent(this._showClosedPositions = value);
267
+ }
268
+ }
269
+
260
270
  setSuspended(value) {
261
271
  assert.argumentIsRequired(value, 'value', Boolean);
262
272
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.134",
3
+ "version": "1.0.135",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1197,9 +1197,11 @@ module.exports = (() => {
1197
1197
 
1198
1198
  this._excluded = false;
1199
1199
  this._suspended = false;
1200
+ this._showClosedPositions = false;
1200
1201
 
1201
1202
  this._marketPercentChangeEvent = new Event(this);
1202
1203
  this._excludedChangeEvent = new Event(this);
1204
+ this._showClosedPositionsChangeEvent = new Event(this);
1203
1205
 
1204
1206
  this._dataFormat = { };
1205
1207
  this._dataActual = { };
@@ -1416,6 +1418,14 @@ module.exports = (() => {
1416
1418
  }
1417
1419
  }
1418
1420
 
1421
+ setShowClosedPositions(value) {
1422
+ assert.argumentIsRequired(value, 'value', Boolean);
1423
+
1424
+ if (this._showClosedPositions !== value) {
1425
+ this._showClosedPositionsChangeEvent(this._showClosedPositions = value);
1426
+ }
1427
+ }
1428
+
1419
1429
  setSuspended(value) {
1420
1430
  assert.argumentIsRequired(value, 'value', Boolean);
1421
1431