@barchart/portfolio-api-common 1.0.101 → 1.0.102
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.
|
@@ -35,6 +35,12 @@ module.exports = (() => {
|
|
|
35
35
|
this._dataFormat.key = this._key;
|
|
36
36
|
this._dataFormat.description = this._description;
|
|
37
37
|
|
|
38
|
+
if (this._single) {
|
|
39
|
+
this._dataFormat.instrument = items[0].position.instrument;
|
|
40
|
+
} else {
|
|
41
|
+
this._dataFormat.instrument = null;
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
this._dataActual.currentPrice = null;
|
|
39
45
|
this._dataActual.previousPrice = null;
|
|
40
46
|
this._dataActual.basis = null;
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -1038,6 +1038,12 @@ module.exports = (() => {
|
|
|
1038
1038
|
this._dataFormat.key = this._key;
|
|
1039
1039
|
this._dataFormat.description = this._description;
|
|
1040
1040
|
|
|
1041
|
+
if (this._single) {
|
|
1042
|
+
this._dataFormat.instrument = items[0].position.instrument;
|
|
1043
|
+
} else {
|
|
1044
|
+
this._dataFormat.instrument = null;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1041
1047
|
this._dataActual.currentPrice = null;
|
|
1042
1048
|
this._dataActual.previousPrice = null;
|
|
1043
1049
|
this._dataActual.basis = null;
|