@barchart/portfolio-api-common 6.3.0 → 7.0.0
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.
|
@@ -115,7 +115,7 @@ module.exports = (() => {
|
|
|
115
115
|
* @static
|
|
116
116
|
* @param {Object[]} transactions
|
|
117
117
|
* @param {InstrumentType} instrumentType
|
|
118
|
-
* @param {Object} position
|
|
118
|
+
* @param {Object=} position
|
|
119
119
|
* @return {Number}
|
|
120
120
|
*/
|
|
121
121
|
static getSwitchIndex(transactions, instrumentType, position) {
|
|
@@ -156,7 +156,7 @@ module.exports = (() => {
|
|
|
156
156
|
* @static
|
|
157
157
|
* @param {Object[]} transactions
|
|
158
158
|
* @param {InstrumentType} instrumentType
|
|
159
|
-
* @param {Object} position
|
|
159
|
+
* @param {Object=} position
|
|
160
160
|
* @return {Number}
|
|
161
161
|
*/
|
|
162
162
|
static getPositionViolationIndex(transactions, instrumentType, position) {
|
|
@@ -110,6 +110,7 @@ module.exports = (() => {
|
|
|
110
110
|
.withField('legacy.drops', DataType.NUMBER, true)
|
|
111
111
|
.withField('miscellany', DataType.AD_HOC, true)
|
|
112
112
|
.withField('email', DataType.AD_HOC, true)
|
|
113
|
+
.withField('linked', DataType.BOOLEAN)
|
|
113
114
|
.withField('system.calculate.processors', DataType.NUMBER, true)
|
|
114
115
|
.withField('system.sequence', DataType.NUMBER)
|
|
115
116
|
.withField('system.version', DataType.STRING)
|
|
@@ -135,6 +136,7 @@ module.exports = (() => {
|
|
|
135
136
|
.withField('legacy.drops', DataType.NUMBER, true)
|
|
136
137
|
.withField('miscellany', DataType.AD_HOC, true)
|
|
137
138
|
.withField('email', DataType.AD_HOC, true)
|
|
139
|
+
.withField('linked', DataType.BOOLEAN)
|
|
138
140
|
.withField('system.calculate.processors', DataType.NUMBER, true)
|
|
139
141
|
.schema
|
|
140
142
|
);
|
|
@@ -155,7 +157,8 @@ module.exports = (() => {
|
|
|
155
157
|
.withField('defaults.valuation', DataType.forEnum(ValuationType, 'ValuationType'), true)
|
|
156
158
|
.withField('miscellany', DataType.AD_HOC, true)
|
|
157
159
|
.withField('email', DataType.AD_HOC, true)
|
|
158
|
-
|
|
160
|
+
.withField('linked', DataType.BOOLEAN)
|
|
161
|
+
.schema
|
|
159
162
|
);
|
|
160
163
|
|
|
161
164
|
const update = new PortfolioSchema(SchemaBuilder.withName('update')
|
|
@@ -167,7 +170,7 @@ module.exports = (() => {
|
|
|
167
170
|
.withField('defaults.reinvest', DataType.BOOLEAN, true)
|
|
168
171
|
.withField('miscellany', DataType.AD_HOC, true)
|
|
169
172
|
.withField('email', DataType.AD_HOC, true)
|
|
170
|
-
|
|
173
|
+
.schema
|
|
171
174
|
);
|
|
172
175
|
|
|
173
176
|
return PortfolioSchema;
|