@barchart/portfolio-api-common 1.0.32 → 1.0.33
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.
|
@@ -313,10 +313,10 @@ module.exports = (() => {
|
|
|
313
313
|
const distributionCash = new TransactionType('DC', 'Distribution (Cash)', false, false, true, false, false);
|
|
314
314
|
const distributionFund = new TransactionType('DF', 'Distribution (Units)', false, false, false, true, false);
|
|
315
315
|
|
|
316
|
-
const deposit = new TransactionType('D', 'Deposit', false, false, false,
|
|
317
|
-
const withdrawal = new TransactionType('W', 'Withdrawal', false, false, false, false,
|
|
318
|
-
const debit = new TransactionType('DR', 'Debit', false, false, false, false,
|
|
319
|
-
const credit = new TransactionType('CR', 'Credit', false, false, false,
|
|
316
|
+
const deposit = new TransactionType('D', 'Deposit', false, false, false, true, false);
|
|
317
|
+
const withdrawal = new TransactionType('W', 'Withdrawal', false, false, false, false, true);
|
|
318
|
+
const debit = new TransactionType('DR', 'Debit', false, false, false, false, true);
|
|
319
|
+
const credit = new TransactionType('CR', 'Credit', false, false, false, true, false);
|
|
320
320
|
|
|
321
321
|
const valuation = new TransactionType('V', 'Valuation', false, false, false, false, false);
|
|
322
322
|
const income = new TransactionType('I', 'Income', false, false, true, false, false);
|
|
@@ -6,14 +6,17 @@ const array = require('@barchart/common-js/lang/array'),
|
|
|
6
6
|
module.exports = (() => {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Static utilities for formatting position summary records (into groups based on
|
|
10
|
+
* instrument type)
|
|
10
11
|
*
|
|
12
|
+
* @public
|
|
11
13
|
*/
|
|
12
14
|
class PositionSummaryFormatter{
|
|
13
|
-
|
|
14
15
|
/**
|
|
15
16
|
* The formatter
|
|
16
17
|
*
|
|
18
|
+
* @public
|
|
19
|
+
* @static
|
|
17
20
|
* @param {Array} summaries
|
|
18
21
|
* @returns {Object}
|
|
19
22
|
*/
|
|
@@ -67,5 +70,4 @@ module.exports = (() => {
|
|
|
67
70
|
};
|
|
68
71
|
|
|
69
72
|
return PositionSummaryFormatter;
|
|
70
|
-
|
|
71
73
|
})();
|