@barchart/portfolio-api-common 1.0.206 → 1.0.207
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.
|
@@ -71,7 +71,7 @@ module.exports = (() => {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
const positionCreateFailedNoPortfolio = new FailureType('
|
|
74
|
+
const positionCreateFailedNoPortfolio = new FailureType('POSITION_CREATE_FAILED_NO_PORTFOLIO', 'Unable to create transaction. The referenced portfolio does not exist. Has it been deleted?');
|
|
75
75
|
|
|
76
76
|
const transactionCreateFailedOutOfSequence = new FailureType('TRANSACTION_CREATE_FAILED_OUT_OF_SEQUENCE', 'Unable to create transaction, because the transaction date is out-of-sequence. In other words, it would occur before an existing transaction. Please confirm your intent to re-write transaction history (which could take some time and alter the historical results for this position).');
|
|
77
77
|
const transactionCreateFailedDirectionSwitch = new FailureType('TRANSACTION_CREATE_FAILED_DIRECTION_SWITCH', 'Unable to create transaction, because the position direction would be switched (from long to short or vice versa). Please close the position (to a zero balance) first, then enter a second transaction.');
|
|
@@ -67,7 +67,7 @@ module.exports = (() => {
|
|
|
67
67
|
* Generates an identifier for the instrument.
|
|
68
68
|
*
|
|
69
69
|
* @public
|
|
70
|
-
* @param instrument
|
|
70
|
+
* @param {Object} instrument
|
|
71
71
|
* @returns {String}
|
|
72
72
|
*/
|
|
73
73
|
generateIdentifier(instrument) {
|
|
@@ -129,7 +129,7 @@ module.exports = (() => {
|
|
|
129
129
|
*
|
|
130
130
|
* @static
|
|
131
131
|
* @public
|
|
132
|
-
* @param instrument
|
|
132
|
+
* @param {Object} instrument
|
|
133
133
|
* @returns {String}
|
|
134
134
|
*/
|
|
135
135
|
static generateIdentifier(instrument) {
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -68,7 +68,7 @@ module.exports = (() => {
|
|
|
68
68
|
* Generates an identifier for the instrument.
|
|
69
69
|
*
|
|
70
70
|
* @public
|
|
71
|
-
* @param instrument
|
|
71
|
+
* @param {Object} instrument
|
|
72
72
|
* @returns {String}
|
|
73
73
|
*/
|
|
74
74
|
generateIdentifier(instrument) {
|
|
@@ -130,7 +130,7 @@ module.exports = (() => {
|
|
|
130
130
|
*
|
|
131
131
|
* @static
|
|
132
132
|
* @public
|
|
133
|
-
* @param instrument
|
|
133
|
+
* @param {Object} instrument
|
|
134
134
|
* @returns {String}
|
|
135
135
|
*/
|
|
136
136
|
static generateIdentifier(instrument) {
|