@barchart/portfolio-api-common 1.0.245 → 1.0.246
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.
|
@@ -58,6 +58,17 @@ module.exports = (() => {
|
|
|
58
58
|
return client;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Data required to update a position.
|
|
63
|
+
*
|
|
64
|
+
* @static
|
|
65
|
+
* @public
|
|
66
|
+
* @returns {PositionSchema}
|
|
67
|
+
*/
|
|
68
|
+
static get UPDATE() {
|
|
69
|
+
return update;
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
toString() {
|
|
62
73
|
return '[PositionSchema]';
|
|
63
74
|
}
|
|
@@ -123,5 +134,11 @@ module.exports = (() => {
|
|
|
123
134
|
.schema
|
|
124
135
|
);
|
|
125
136
|
|
|
137
|
+
const update = new PositionSchema(SchemaBuilder.withName('update')
|
|
138
|
+
.withField('portfolio', DataType.STRING)
|
|
139
|
+
.withField('reinvest', DataType.BOOLEAN, true)
|
|
140
|
+
.schema
|
|
141
|
+
);
|
|
142
|
+
|
|
126
143
|
return PositionSchema;
|
|
127
144
|
})();
|