@barchart/portfolio-api-common 1.26.0 → 1.26.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.
|
@@ -416,17 +416,6 @@ module.exports = (() => {
|
|
|
416
416
|
static get TRANSACTION_SWITCH_FAILED_INVALID_REINVEST() {
|
|
417
417
|
return transactionSwitchFailedInvalidReinvest;
|
|
418
418
|
}
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* Unable to generate analytics report. The portfolio does not exist.
|
|
422
|
-
*
|
|
423
|
-
* @public
|
|
424
|
-
* @static
|
|
425
|
-
* @returns {FailureType}
|
|
426
|
-
*/
|
|
427
|
-
static get WEALTHSCOPE_TOKEN_CREATE_FAIL_NO_PORTFOLIO() {
|
|
428
|
-
return wealthscopeTokenCreateFailNoPortfolio;
|
|
429
|
-
}
|
|
430
419
|
|
|
431
420
|
toString() {
|
|
432
421
|
return '[PortfolioFailureType]';
|
|
@@ -476,7 +465,5 @@ module.exports = (() => {
|
|
|
476
465
|
const transactionSwitchFailedInvalidConversion = new FailureType('TRANSACTION_SWITCH_FAILED_INVALID_CONVERSION', 'Unable to convert transaction from {U|existing.description} to {U|desired.description}. This conversion is not supported.');
|
|
477
466
|
const transactionSwitchFailedInvalidReinvest = new FailureType('TRANSACTION_SWITCH_FAILED_INVALID_REINVEST', 'Unable to convert transaction from {U|existing.description} to {U|desired.description}. Reinvestment is not supported for short positions.');
|
|
478
467
|
|
|
479
|
-
const wealthscopeTokenCreateFailNoPortfolio = new FailureType('WEALTHSCOPE_TOKEN_CREATE_FAIL_NO_PORTFOLIO', 'Unable to generate analytics report. The portfolio does not exist, has it been deleted?', false);
|
|
480
|
-
|
|
481
468
|
return PortfolioFailureType;
|
|
482
469
|
})();
|
|
@@ -356,7 +356,7 @@ module.exports = (() => {
|
|
|
356
356
|
*
|
|
357
357
|
* @public
|
|
358
358
|
* @param {Object} position
|
|
359
|
-
* @param {Object
|
|
359
|
+
* @param {Object[]} summaries
|
|
360
360
|
*/
|
|
361
361
|
updatePosition(position, summaries) {
|
|
362
362
|
assert.argumentIsRequired(position, 'position', Object);
|
|
@@ -333,7 +333,7 @@ module.exports = (() => {
|
|
|
333
333
|
* percentages).
|
|
334
334
|
*
|
|
335
335
|
* @public
|
|
336
|
-
* @param {
|
|
336
|
+
* @param {PositionGroup} group
|
|
337
337
|
*/
|
|
338
338
|
setParentGroup(group) {
|
|
339
339
|
assert.argumentIsOptional(group, 'group', PositionGroup, 'PositionGroup');
|
|
@@ -350,7 +350,7 @@ module.exports = (() => {
|
|
|
350
350
|
* of relative percentages).
|
|
351
351
|
*
|
|
352
352
|
* @public
|
|
353
|
-
* @param {
|
|
353
|
+
* @param {PositionGroup} group
|
|
354
354
|
*/
|
|
355
355
|
setPortfolioGroup(group) {
|
|
356
356
|
assert.argumentIsOptional(group, 'group', PositionGroup, 'PositionGroup');
|