@barchart/portfolio-api-common 1.0.79 → 1.0.80
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.
|
@@ -257,13 +257,17 @@ module.exports = (() => {
|
|
|
257
257
|
|
|
258
258
|
format.market = formatCurrency(actual.market, currency);
|
|
259
259
|
format.marketPercent = formatPercent(actual.marketPercent, 2);
|
|
260
|
+
format.marketDirection = unchanged;
|
|
260
261
|
format.marketDirection = updates.marketDirection;
|
|
261
262
|
format.unrealizedToday = formatCurrency(actual.unrealizedToday, currency);
|
|
262
263
|
format.unrealizedTodayNegative = actual.unrealizedToday.getIsNegative();
|
|
264
|
+
format.unrealizedTodayDirection = unchanged;
|
|
263
265
|
format.unrealizedTodayDirection = updates.unrealizedTodayDirection;
|
|
264
266
|
format.total = formatCurrency(actual.total, currency);
|
|
265
267
|
format.totalNegative = actual.total.getIsNegative();
|
|
266
268
|
}
|
|
267
269
|
|
|
270
|
+
const unchanged = { up: false, down: false };
|
|
271
|
+
|
|
268
272
|
return PositionGroup;
|
|
269
273
|
})();
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -1196,14 +1196,18 @@ module.exports = (() => {
|
|
|
1196
1196
|
|
|
1197
1197
|
format.market = formatCurrency(actual.market, currency);
|
|
1198
1198
|
format.marketPercent = formatPercent(actual.marketPercent, 2);
|
|
1199
|
+
format.marketDirection = unchanged;
|
|
1199
1200
|
format.marketDirection = updates.marketDirection;
|
|
1200
1201
|
format.unrealizedToday = formatCurrency(actual.unrealizedToday, currency);
|
|
1201
1202
|
format.unrealizedTodayNegative = actual.unrealizedToday.getIsNegative();
|
|
1203
|
+
format.unrealizedTodayDirection = unchanged;
|
|
1202
1204
|
format.unrealizedTodayDirection = updates.unrealizedTodayDirection;
|
|
1203
1205
|
format.total = formatCurrency(actual.total, currency);
|
|
1204
1206
|
format.totalNegative = actual.total.getIsNegative();
|
|
1205
1207
|
}
|
|
1206
1208
|
|
|
1209
|
+
const unchanged = { up: false, down: false };
|
|
1210
|
+
|
|
1207
1211
|
return PositionGroup;
|
|
1208
1212
|
})();
|
|
1209
1213
|
|