@barchart/portfolio-api-common 6.3.0 → 6.3.1
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) {
|
|
@@ -351,6 +351,7 @@ module.exports = (() => {
|
|
|
351
351
|
associateTypes(InstrumentType.FUND, TransactionType.DISTRIBUTION_CASH, false);
|
|
352
352
|
associateTypes(InstrumentType.FUND, TransactionType.DISTRIBUTION_REINVEST, false);
|
|
353
353
|
associateTypes(InstrumentType.FUND, TransactionType.DISTRIBUTION_FUND, false);
|
|
354
|
+
associateTypes(InstrumentType.FUND, TransactionType.SPLIT, false);
|
|
354
355
|
associateTypes(InstrumentType.FUND, TransactionType.DELIST, false);
|
|
355
356
|
associateTypes(InstrumentType.FUND, TransactionType.MERGER_OPEN, false);
|
|
356
357
|
associateTypes(InstrumentType.FUND, TransactionType.MERGER_CLOSE, false);
|