@barchart/portfolio-api-common 1.0.124 → 1.0.125
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.
|
@@ -95,11 +95,9 @@ module.exports = (() => {
|
|
|
95
95
|
}, [ ]);
|
|
96
96
|
|
|
97
97
|
this._symbols = this._items.reduce((map, item) => {
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
if (position.instrument && position.instrument.symbol && position.instrument.symbol.barchart) {
|
|
101
|
-
const symbol = position.instrument.symbol.barchart;
|
|
98
|
+
const symbol = extractSymbolForBarchart(item.position);
|
|
102
99
|
|
|
100
|
+
if (symbol) {
|
|
103
101
|
if (!map.hasOwnProperty(symbol)) {
|
|
104
102
|
map[symbol] = [ ];
|
|
105
103
|
}
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -811,11 +811,9 @@ module.exports = (() => {
|
|
|
811
811
|
}, [ ]);
|
|
812
812
|
|
|
813
813
|
this._symbols = this._items.reduce((map, item) => {
|
|
814
|
-
const
|
|
815
|
-
|
|
816
|
-
if (position.instrument && position.instrument.symbol && position.instrument.symbol.barchart) {
|
|
817
|
-
const symbol = position.instrument.symbol.barchart;
|
|
814
|
+
const symbol = extractSymbolForBarchart(item.position);
|
|
818
815
|
|
|
816
|
+
if (symbol) {
|
|
819
817
|
if (!map.hasOwnProperty(symbol)) {
|
|
820
818
|
map[symbol] = [ ];
|
|
821
819
|
}
|