@barchart/portfolio-api-common 1.0.67 → 1.0.68
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.
|
@@ -26,7 +26,7 @@ module.exports = (() => {
|
|
|
26
26
|
|
|
27
27
|
this._data.market = null;
|
|
28
28
|
this._data.marketChange = null;
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
this._data.unrealizedToday = null;
|
|
31
31
|
this._data.unrealizedTodayChange = null;
|
|
32
32
|
|
|
@@ -77,7 +77,7 @@ module.exports = (() => {
|
|
|
77
77
|
|
|
78
78
|
const data = item._data;
|
|
79
79
|
|
|
80
|
-
data.previousPrice = position.
|
|
80
|
+
data.previousPrice = position.previous || null;
|
|
81
81
|
|
|
82
82
|
let basis;
|
|
83
83
|
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -1077,7 +1077,7 @@ module.exports = (() => {
|
|
|
1077
1077
|
|
|
1078
1078
|
this._data.market = null;
|
|
1079
1079
|
this._data.marketChange = null;
|
|
1080
|
-
|
|
1080
|
+
|
|
1081
1081
|
this._data.unrealizedToday = null;
|
|
1082
1082
|
this._data.unrealizedTodayChange = null;
|
|
1083
1083
|
|
|
@@ -1128,7 +1128,7 @@ module.exports = (() => {
|
|
|
1128
1128
|
|
|
1129
1129
|
const data = item._data;
|
|
1130
1130
|
|
|
1131
|
-
data.previousPrice = position.
|
|
1131
|
+
data.previousPrice = position.previous || null;
|
|
1132
1132
|
|
|
1133
1133
|
let basis;
|
|
1134
1134
|
|