@barchart/portfolio-api-common 4.1.0 → 5.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.
|
@@ -213,7 +213,7 @@ module.exports = (() => {
|
|
|
213
213
|
*/
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
|
-
* The start and
|
|
216
|
+
* The start and end date for a {@link PositionSummaryFrame} along with the frame type.
|
|
217
217
|
*
|
|
218
218
|
* @typedef PositionSummaryDefinition
|
|
219
219
|
* @type {Object}
|
|
@@ -630,6 +630,8 @@ module.exports = (() => {
|
|
|
630
630
|
* @param {Day} referenceDate
|
|
631
631
|
*/
|
|
632
632
|
setReferenceDate(referenceDate) {
|
|
633
|
+
assert.argumentIsRequired(referenceDate, 'referenceDate', Day, 'Day');
|
|
634
|
+
|
|
633
635
|
this._referenceDate = referenceDate;
|
|
634
636
|
|
|
635
637
|
this._items.forEach((item) => {
|
|
@@ -93,6 +93,7 @@ module.exports = (() => {
|
|
|
93
93
|
.withField('instrument.type', DataType.forEnum(InstrumentType, 'InstrumentType'))
|
|
94
94
|
.withField('instrument.code', DataType.forEnum(UnitCode, 'UnitCode'), true)
|
|
95
95
|
.withField('instrument.currency', DataType.forEnum(Currency, 'Currency'))
|
|
96
|
+
.withField('instrument.exchange', DataType.STRING, true)
|
|
96
97
|
.withField('instrument.delist', DataType.DAY, true)
|
|
97
98
|
.withField('instrument.future.expiration', DataType.DAY, true)
|
|
98
99
|
.withField('instrument.future.tick', DataType.DECIMAL, true)
|
|
@@ -142,6 +143,7 @@ module.exports = (() => {
|
|
|
142
143
|
.withField('instrument.type', DataType.forEnum(InstrumentType, 'InstrumentType'))
|
|
143
144
|
.withField('instrument.code', DataType.forEnum(UnitCode, 'UnitCode'), true)
|
|
144
145
|
.withField('instrument.currency', DataType.forEnum(Currency, 'Currency'))
|
|
146
|
+
.withField('instrument.exchange', DataType.STRING, true)
|
|
145
147
|
.withField('instrument.delist', DataType.DAY, true)
|
|
146
148
|
.withField('instrument.future.expiration', DataType.DAY, true)
|
|
147
149
|
.withField('instrument.future.tick', DataType.DECIMAL, true)
|