@barchart/portfolio-api-common 1.0.233 → 1.0.234
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.
|
@@ -61,7 +61,7 @@ module.exports = (() => {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* Indicates if the
|
|
64
|
+
* Indicates if the transaction was a purchase.
|
|
65
65
|
*
|
|
66
66
|
* @public
|
|
67
67
|
* @returns {Boolean}
|
|
@@ -71,7 +71,7 @@ module.exports = (() => {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Indicates if the
|
|
74
|
+
* Indicates if the transaction was a sale.
|
|
75
75
|
*
|
|
76
76
|
* @public
|
|
77
77
|
* @returns {Boolean}
|
|
@@ -91,7 +91,7 @@ module.exports = (() => {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Indicates if the
|
|
94
|
+
* Indicates if the transaction opens the position (i.e. increases its
|
|
95
95
|
* magnitude).
|
|
96
96
|
*
|
|
97
97
|
* @public
|
|
@@ -102,7 +102,7 @@ module.exports = (() => {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Indicates if the
|
|
105
|
+
* Indicates if the transaction closes the position (i.e. decreases its
|
|
106
106
|
* magnitude).
|
|
107
107
|
*
|
|
108
108
|
* @public
|
|
@@ -113,8 +113,8 @@ module.exports = (() => {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* Indicates if the
|
|
117
|
-
* position.
|
|
116
|
+
* Indicates if the transaction is a chart that neither opens nor
|
|
117
|
+
* closes the position.
|
|
118
118
|
*
|
|
119
119
|
* @public
|
|
120
120
|
* @returns {Boolean}
|
|
@@ -334,7 +334,7 @@ module.exports = (() => {
|
|
|
334
334
|
const dividendReinvest = new TransactionType('DX', 'Dividend (Reinvested)', 'Dividend Reinvest', false, false, false, true, false, false);
|
|
335
335
|
const dividendStock = new TransactionType('DS', 'Dividend (Stock)', 'Dividend Stock', false, false, false, true, false, false);
|
|
336
336
|
const split = new TransactionType('SP', 'Split', 'Split', false, false, false, true, false, false);
|
|
337
|
-
const fee = new TransactionType('F', 'Fee', 'Fee', false, false, false,
|
|
337
|
+
const fee = new TransactionType('F', 'Fee', 'Fee', false, false, false, false, false, true);
|
|
338
338
|
const feeUnits = new TransactionType('FU', 'Fee Units', 'Fee', false, false, false, false, true, false);
|
|
339
339
|
|
|
340
340
|
const distributionCash = new TransactionType('DC', 'Distribution (Cash)', 'Cash Distribution', false, false, true, false, false, false);
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -506,7 +506,7 @@ module.exports = (() => {
|
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
|
-
* Indicates if the
|
|
509
|
+
* Indicates if the transaction was a purchase.
|
|
510
510
|
*
|
|
511
511
|
* @public
|
|
512
512
|
* @returns {Boolean}
|
|
@@ -516,7 +516,7 @@ module.exports = (() => {
|
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
/**
|
|
519
|
-
* Indicates if the
|
|
519
|
+
* Indicates if the transaction was a sale.
|
|
520
520
|
*
|
|
521
521
|
* @public
|
|
522
522
|
* @returns {Boolean}
|
|
@@ -536,7 +536,7 @@ module.exports = (() => {
|
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
|
-
* Indicates if the
|
|
539
|
+
* Indicates if the transaction opens the position (i.e. increases its
|
|
540
540
|
* magnitude).
|
|
541
541
|
*
|
|
542
542
|
* @public
|
|
@@ -547,7 +547,7 @@ module.exports = (() => {
|
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
/**
|
|
550
|
-
* Indicates if the
|
|
550
|
+
* Indicates if the transaction closes the position (i.e. decreases its
|
|
551
551
|
* magnitude).
|
|
552
552
|
*
|
|
553
553
|
* @public
|
|
@@ -558,8 +558,8 @@ module.exports = (() => {
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
|
-
* Indicates if the
|
|
562
|
-
* position.
|
|
561
|
+
* Indicates if the transaction is a chart that neither opens nor
|
|
562
|
+
* closes the position.
|
|
563
563
|
*
|
|
564
564
|
* @public
|
|
565
565
|
* @returns {Boolean}
|
|
@@ -779,7 +779,7 @@ module.exports = (() => {
|
|
|
779
779
|
const dividendReinvest = new TransactionType('DX', 'Dividend (Reinvested)', 'Dividend Reinvest', false, false, false, true, false, false);
|
|
780
780
|
const dividendStock = new TransactionType('DS', 'Dividend (Stock)', 'Dividend Stock', false, false, false, true, false, false);
|
|
781
781
|
const split = new TransactionType('SP', 'Split', 'Split', false, false, false, true, false, false);
|
|
782
|
-
const fee = new TransactionType('F', 'Fee', 'Fee', false, false, false,
|
|
782
|
+
const fee = new TransactionType('F', 'Fee', 'Fee', false, false, false, false, false, true);
|
|
783
783
|
const feeUnits = new TransactionType('FU', 'Fee Units', 'Fee', false, false, false, false, true, false);
|
|
784
784
|
|
|
785
785
|
const distributionCash = new TransactionType('DC', 'Distribution (Cash)', 'Cash Distribution', false, false, true, false, false, false);
|