diff --git a/docs/_coverpage.md b/docs/_coverpage.md
index b605cdd..62e782a 100644
--- a/docs/_coverpage.md
+++ b/docs/_coverpage.md
@@ -1,4 +1,4 @@
-# Barchart Market Data SDK JavaScript 5.7.4
+# Barchart Market Data SDK JavaScript 5.7.5
> Inject real-time market data into your JavaScript applications
diff --git a/example/browser/example.js b/example/browser/example.js
index 52fa90c..effc60e 100644
--- a/example/browser/example.js
+++ b/example/browser/example.js
@@ -5048,7 +5048,7 @@ module.exports = (() => {
'use strict';
return {
- version: '5.7.4'
+ version: '5.7.5'
};
})();
@@ -7000,7 +7000,7 @@ module.exports = (() => {
types.cmdty.internal = /(\.CM)$/i;
types.cmdty.external = /(\.CP)$/i;
types.equities = {};
- types.equities.options = /^([A-Z\$][A-Z\-]{0,})([0-9]?)(\.[A-Z]{2})?\|([[0-9]{4})([[0-9]{2})([[0-9]{2})\|([0-9]+\.[0-9]+)[P|W]?(C|P)/i;
+ types.equities.options = /^([A-Z\$][A-Z\-]{0,}(\.[A-Z]{1})?)([0-9]?)(\.[A-Z]{2})?\|([[0-9]{4})([[0-9]{2})([[0-9]{2})\|([0-9]+\.[0-9]+)[P|W]?(C|P)/i;
types.forex = /^\^([A-Z]{3})([A-Z]{3})$/i;
types.funds = {};
types.funds.canadian = /(.*)(\.CF)$/i;
@@ -7077,17 +7077,17 @@ module.exports = (() => {
const match = symbol.match(types.equities.options);
if (match !== null) {
- const suffix = typeof match[3] !== 'undefined' ? match[3] : '';
+ const suffix = typeof match[4] !== 'undefined' ? match[4] : '';
definition = {};
definition.symbol = symbol;
definition.type = 'equity_option';
- definition.option_type = match[8] === 'C' ? 'call' : 'put';
- definition.strike = parseFloat(match[7]);
+ definition.option_type = match[9] === 'C' ? 'call' : 'put';
+ definition.strike = parseFloat(match[8]);
definition.root = `${match[1]}${suffix}`;
- definition.month = parseInt(match[5]);
- definition.day = parseInt(match[6]);
- definition.year = parseInt(match[4]);
- definition.adjusted = match[2] !== '';
+ definition.month = parseInt(match[6]);
+ definition.day = parseInt(match[7]);
+ definition.year = parseInt(match[5]);
+ definition.adjusted = match[3] !== '';
}
return definition;
diff --git a/lib/meta.js b/lib/meta.js
index 4ee09a4..bb675cf 100644
--- a/lib/meta.js
+++ b/lib/meta.js
@@ -2,6 +2,6 @@ module.exports = (() => {
'use strict';
return {
- version: '5.7.4'
+ version: '5.7.5'
};
})();
\ No newline at end of file
diff --git a/package.json b/package.json
index 974ebc9..8f19b5b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@barchart/marketdata-api-js",
- "version": "5.7.4",
+ "version": "5.7.5",
"description": "SDK for streaming market data from Barchart.com",
"author": {
"name": "Eero Pikat",
diff --git a/test/dist/barchart-marketdata-api-tests-5.js b/test/dist/barchart-marketdata-api-tests-5.js
index 6a3d255..1c85436 100644
--- a/test/dist/barchart-marketdata-api-tests-5.js
+++ b/test/dist/barchart-marketdata-api-tests-5.js
@@ -2933,7 +2933,7 @@ module.exports = (() => {
types.cmdty.internal = /(\.CM)$/i;
types.cmdty.external = /(\.CP)$/i;
types.equities = {};
- types.equities.options = /^([A-Z\$][A-Z\-]{0,})([0-9]?)(\.[A-Z]{2})?\|([[0-9]{4})([[0-9]{2})([[0-9]{2})\|([0-9]+\.[0-9]+)[P|W]?(C|P)/i;
+ types.equities.options = /^([A-Z\$][A-Z\-]{0,}(\.[A-Z]{1})?)([0-9]?)(\.[A-Z]{2})?\|([[0-9]{4})([[0-9]{2})([[0-9]{2})\|([0-9]+\.[0-9]+)[P|W]?(C|P)/i;
types.forex = /^\^([A-Z]{3})([A-Z]{3})$/i;
types.funds = {};
types.funds.canadian = /(.*)(\.CF)$/i;
@@ -3010,17 +3010,17 @@ module.exports = (() => {
const match = symbol.match(types.equities.options);
if (match !== null) {
- const suffix = typeof match[3] !== 'undefined' ? match[3] : '';
+ const suffix = typeof match[4] !== 'undefined' ? match[4] : '';
definition = {};
definition.symbol = symbol;
definition.type = 'equity_option';
- definition.option_type = match[8] === 'C' ? 'call' : 'put';
- definition.strike = parseFloat(match[7]);
+ definition.option_type = match[9] === 'C' ? 'call' : 'put';
+ definition.strike = parseFloat(match[8]);
definition.root = `${match[1]}${suffix}`;
- definition.month = parseInt(match[5]);
- definition.day = parseInt(match[6]);
- definition.year = parseInt(match[4]);
- definition.adjusted = match[2] !== '';
+ definition.month = parseInt(match[6]);
+ definition.day = parseInt(match[7]);
+ definition.year = parseInt(match[5]);
+ definition.adjusted = match[3] !== '';
}
return definition;
@@ -16974,16 +16974,16 @@ describe('When parsing a symbol for instrument type', () => {
expect(instrumentType.type).toEqual('future_spread');
});
});
- describe('and the symbol is AAPL1|20200515|250.00C', () => {
+ describe('and the symbol is AAPL|20200515|250.00P', () => {
let instrumentType;
beforeEach(() => {
- instrumentType = SymbolParser.parseInstrumentType('AAPL1|20200515|250.00C');
+ instrumentType = SymbolParser.parseInstrumentType('AAPL|20200515|250.00P');
});
it('the result should not be null', () => {
expect(instrumentType).not.toBe(null);
});
- it('the "symbol" should be "AAPL1|20200515|250.00C"', () => {
- expect(instrumentType.symbol).toEqual('AAPL1|20200515|250.00C');
+ it('the "symbol" should be "|20200515|250.00P"', () => {
+ expect(instrumentType.symbol).toEqual('AAPL|20200515|250.00P');
});
it('the "type" should be "equity_option"', () => {
expect(instrumentType.type).toEqual('equity_option');
@@ -17003,46 +17003,82 @@ describe('When parsing a symbol for instrument type', () => {
it('the "strike" should be 250', () => {
expect(instrumentType.strike).toEqual(250);
});
- it('the "option_type" should be "call"', () => {
- expect(instrumentType.option_type).toEqual('call');
+ it('the "option_type" should be "put"', () => {
+ expect(instrumentType.option_type).toEqual('put');
});
it('the "adjusted" flag should be true', () => {
- expect(instrumentType.adjusted).toEqual(true);
+ expect(instrumentType.adjusted).toEqual(false);
});
});
- describe('and the symbol is $VIX|20200422|20.00WP', () => {
+ describe('and the symbol is AAPL1|20200515|250.00P', () => {
let instrumentType;
beforeEach(() => {
- instrumentType = SymbolParser.parseInstrumentType('$VIX|20200422|20.00WP');
+ instrumentType = SymbolParser.parseInstrumentType('AAPL1|20200515|250.00P');
});
it('the result should not be null', () => {
expect(instrumentType).not.toBe(null);
});
- it('the "symbol" should be "$VIX|20200422|20.00WP"', () => {
- expect(instrumentType.symbol).toEqual('$VIX|20200422|20.00WP');
+ it('the "symbol" should be "AAPL1|20200515|250.00P"', () => {
+ expect(instrumentType.symbol).toEqual('AAPL1|20200515|250.00P');
});
it('the "type" should be "equity_option"', () => {
expect(instrumentType.type).toEqual('equity_option');
});
- it('the "root" should be "$VIX"', () => {
- expect(instrumentType.root).toEqual('$VIX');
+ it('the "root" should be "AAPL"', () => {
+ expect(instrumentType.root).toEqual('AAPL');
});
- it('the "month" should be 4', () => {
- expect(instrumentType.month).toEqual(4);
+ it('the "month" should be 5', () => {
+ expect(instrumentType.month).toEqual(5);
});
- it('the "day" should be 22', () => {
- expect(instrumentType.day).toEqual(22);
+ it('the "day" should be 15', () => {
+ expect(instrumentType.day).toEqual(15);
});
it('the "year" should be 2020', () => {
expect(instrumentType.year).toEqual(2020);
});
- it('the "strike" should be 20', () => {
- expect(instrumentType.strike).toEqual(20);
+ it('the "strike" should be 250', () => {
+ expect(instrumentType.strike).toEqual(250);
});
- it('the "option_type" should be "put"', () => {
+ it('the "option_type" should be "call"', () => {
expect(instrumentType.option_type).toEqual('put');
});
- it('the "adjusted" flag should be false', () => {
+ it('the "adjusted" flag should be true', () => {
+ expect(instrumentType.adjusted).toEqual(true);
+ });
+ });
+ describe('and the symbol is HBM.TO|20220121|1.00C', () => {
+ let instrumentType;
+ beforeEach(() => {
+ instrumentType = SymbolParser.parseInstrumentType('HBM.TO|20220121|1.00C');
+ });
+ it('the result should not be null', () => {
+ expect(instrumentType).not.toBe(null);
+ });
+ it('the "symbol" should be "HBM.TO|20220121|1.00C"', () => {
+ expect(instrumentType.symbol).toEqual('HBM.TO|20220121|1.00C');
+ });
+ it('the "type" should be "equity_option"', () => {
+ expect(instrumentType.type).toEqual('equity_option');
+ });
+ it('the "root" should be "HBM.TO"', () => {
+ expect(instrumentType.root).toEqual('HBM.TO');
+ });
+ it('the "month" should be 1', () => {
+ expect(instrumentType.month).toEqual(1);
+ });
+ it('the "day" should be 21', () => {
+ expect(instrumentType.day).toEqual(21);
+ });
+ it('the "year" should be 2022', () => {
+ expect(instrumentType.year).toEqual(2022);
+ });
+ it('the "strike" should be 1', () => {
+ expect(instrumentType.strike).toEqual(1);
+ });
+ it('the "option_type" should be "call"', () => {
+ expect(instrumentType.option_type).toEqual('call');
+ });
+ it('the "adjusted" flag should be true', () => {
expect(instrumentType.adjusted).toEqual(false);
});
});
@@ -17069,7 +17105,7 @@ describe('When parsing a symbol for instrument type', () => {
it('the "day" should be 21', () => {
expect(instrumentType.day).toEqual(21);
});
- it('the "year" should be 2020', () => {
+ it('the "year" should be 2022', () => {
expect(instrumentType.year).toEqual(2022);
});
it('the "strike" should be 1', () => {
@@ -17082,6 +17118,114 @@ describe('When parsing a symbol for instrument type', () => {
expect(instrumentType.adjusted).toEqual(true);
});
});
+ describe('and the symbol is BRK.B|20210205|170.00C', () => {
+ let instrumentType;
+ beforeEach(() => {
+ instrumentType = SymbolParser.parseInstrumentType('BRK.B|20210205|170.00C');
+ });
+ it('the result should not be null', () => {
+ expect(instrumentType).not.toBe(null);
+ });
+ it('the "symbol" should be "BRK.B|20210205|170.00C', () => {
+ expect(instrumentType.symbol).toEqual('BRK.B|20210205|170.00C');
+ });
+ it('the "type" should be "equity_option"', () => {
+ expect(instrumentType.type).toEqual('equity_option');
+ });
+ it('the "root" should be "BRK.B"', () => {
+ expect(instrumentType.root).toEqual('BRK.B');
+ });
+ it('the "month" should be 2', () => {
+ expect(instrumentType.month).toEqual(2);
+ });
+ it('the "day" should be 5', () => {
+ expect(instrumentType.day).toEqual(5);
+ });
+ it('the "year" should be 2021', () => {
+ expect(instrumentType.year).toEqual(2021);
+ });
+ it('the "strike" should be 170', () => {
+ expect(instrumentType.strike).toEqual(170);
+ });
+ it('the "option_type" should be "call"', () => {
+ expect(instrumentType.option_type).toEqual('call');
+ });
+ it('the "adjusted" flag should be true', () => {
+ expect(instrumentType.adjusted).toEqual(false);
+ });
+ });
+ describe('and the symbol is BRK.B2|20210205|170.00C', () => {
+ let instrumentType;
+ beforeEach(() => {
+ instrumentType = SymbolParser.parseInstrumentType('BRK.B2|20210205|170.00C');
+ });
+ it('the result should not be null', () => {
+ expect(instrumentType).not.toBe(null);
+ });
+ it('the "symbol" should be "BRK.B2|20210205|170.00C', () => {
+ expect(instrumentType.symbol).toEqual('BRK.B2|20210205|170.00C');
+ });
+ it('the "type" should be "equity_option"', () => {
+ expect(instrumentType.type).toEqual('equity_option');
+ });
+ it('the "root" should be "BRK.B"', () => {
+ expect(instrumentType.root).toEqual('BRK.B');
+ });
+ it('the "month" should be 2', () => {
+ expect(instrumentType.month).toEqual(2);
+ });
+ it('the "day" should be 5', () => {
+ expect(instrumentType.day).toEqual(5);
+ });
+ it('the "year" should be 2021', () => {
+ expect(instrumentType.year).toEqual(2021);
+ });
+ it('the "strike" should be 170', () => {
+ expect(instrumentType.strike).toEqual(170);
+ });
+ it('the "option_type" should be "call"', () => {
+ expect(instrumentType.option_type).toEqual('call');
+ });
+ it('the "adjusted" flag should be true', () => {
+ expect(instrumentType.adjusted).toEqual(true);
+ });
+ });
+ describe('and the symbol is $VIX|20200422|20.00WP', () => {
+ let instrumentType;
+ beforeEach(() => {
+ instrumentType = SymbolParser.parseInstrumentType('$VIX|20200422|20.00WP');
+ });
+ it('the result should not be null', () => {
+ expect(instrumentType).not.toBe(null);
+ });
+ it('the "symbol" should be "$VIX|20200422|20.00WP"', () => {
+ expect(instrumentType.symbol).toEqual('$VIX|20200422|20.00WP');
+ });
+ it('the "type" should be "equity_option"', () => {
+ expect(instrumentType.type).toEqual('equity_option');
+ });
+ it('the "root" should be "$VIX"', () => {
+ expect(instrumentType.root).toEqual('$VIX');
+ });
+ it('the "month" should be 4', () => {
+ expect(instrumentType.month).toEqual(4);
+ });
+ it('the "day" should be 22', () => {
+ expect(instrumentType.day).toEqual(22);
+ });
+ it('the "year" should be 2020', () => {
+ expect(instrumentType.year).toEqual(2020);
+ });
+ it('the "strike" should be 20', () => {
+ expect(instrumentType.strike).toEqual(20);
+ });
+ it('the "option_type" should be "put"', () => {
+ expect(instrumentType.option_type).toEqual('put');
+ });
+ it('the "adjusted" flag should be false', () => {
+ expect(instrumentType.adjusted).toEqual(false);
+ });
+ });
});
describe('When checking to see if a symbol is a future', () => {
it('the symbol "ES*1" should return true', () => {
@@ -17153,15 +17297,27 @@ describe('When checking to see if a symbol is a future', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsFuture('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsFuture('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsFuture('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsFuture('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsFuture('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsFuture('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsFuture('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsFuture('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsFuture('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsFuture('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsFuture('AL79MRM1.C3')).toEqual(false);
});
@@ -17285,15 +17441,27 @@ describe('When checking to see if a symbol is sector', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsSector('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsSector('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsSector('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsSector('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsSector('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsSector('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsSector('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsSector('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsSector('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsSector('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsSector('AL79MRM1.C3')).toEqual(false);
});
@@ -17380,15 +17548,27 @@ describe('When checking to see if a symbol is forex', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsForex('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsForex('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsForex('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsForex('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsForex('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsForex('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsForex('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsForex('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsForex('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsForex('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsForex('AL79MRM1.C3')).toEqual(false);
});
@@ -17475,15 +17655,27 @@ describe('When checking to see if a symbol is a future spread', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsFutureSpread('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsFutureSpread('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsFutureSpread('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsFutureSpread('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsFutureSpread('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsFutureSpread('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsFutureSpread('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsFutureSpread('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsFutureSpread('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsFutureSpread('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsFutureSpread('AL79MRM1.C3')).toEqual(false);
});
@@ -17570,15 +17762,27 @@ describe('When checking to see if a symbol is a future option', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsFutureOption('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsFutureOption('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsFutureOption('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsFutureOption('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsFutureOption('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsFutureOption('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsFutureOption('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsFutureOption('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsFutureOption('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsFutureOption('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsFutureOption('AL79MRM1.C3')).toEqual(false);
});
@@ -17665,15 +17869,27 @@ describe('When checking to see if a symbol is a cmdty-branded instrument', () =>
it('the symbol "AE030UBX.CS" should return true', () => {
expect(SymbolParser.getIsCmdty('AE030UBX.CS')).toEqual(true);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsCmdty('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsCmdty('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsCmdty('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsCmdty('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsCmdty('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsCmdty('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsCmdty('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsCmdty('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsCmdty('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsCmdty('AL79MRM1.C3')).toEqual(false);
});
@@ -17760,15 +17976,27 @@ describe('When checking to see if a symbol is a cmdtyStats instrument', () => {
it('the symbol "AE030UBX.CS" should return true', () => {
expect(SymbolParser.getIsCmdtyStats('AE030UBX.CS')).toEqual(true);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsCmdtyStats('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsCmdtyStats('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsCmdtyStats('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsCmdtyStats('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsCmdtyStats('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsCmdtyStats('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsCmdtyStats('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsCmdtyStats('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsCmdtyStats('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsCmdtyStats('AL79MRM1.C3')).toEqual(false);
});
@@ -17855,15 +18083,27 @@ describe('When checking to see if a symbol is a equity option', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsEquityOption('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return true', () => {
- expect(SymbolParser.getIsEquityOption('AAPL|20200515|250.00C')).toEqual(true);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsEquityOption('AAPL|20200515|250.00P')).toEqual(true);
});
- it('the symbol "$VIX|20200422|20.00WP" should return true', () => {
- expect(SymbolParser.getIsEquityOption('$VIX|20200422|20.00WP')).toEqual(true);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsEquityOption('AAPL1|20200515|250.00P')).toEqual(true);
});
- it('the symbol "HBM2.TO|20220121|1.00C" should return true', () => {
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsEquityOption('HBM.TO|20220121|1.00C')).toEqual(true);
+ });
+ it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsEquityOption('HBM2.TO|20220121|1.00C')).toEqual(true);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsEquityOption('BRK.B|20210205|170.00C')).toEqual(true);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsEquityOption('BRK.B2|20210205|170.00C')).toEqual(true);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsEquityOption('$VIX|20200422|20.00WP')).toEqual(true);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsEquityOption('AL79MRM1.C3')).toEqual(false);
});
@@ -17950,15 +18190,27 @@ describe('When checking to see if a symbol is a C3 instrument', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsC3('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsC3('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsC3('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsC3('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsC3('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsC3('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsC3('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsC3('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsC3('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsC3('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return true', () => {
expect(SymbolParser.getIsC3('AL79MRM1.C3')).toEqual(true);
});
@@ -18039,15 +18291,27 @@ describe('When checking to see if a symbol is a Platts instrument', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsPlatts('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsPlatts('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsPlatts('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsPlatts('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsPlatts('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsPlatts('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsPlatts('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsPlatts('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsPlatts('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsPlatts('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsPlatts('AL79MRM1.C3')).toEqual(false);
});
@@ -18128,15 +18392,27 @@ describe('When checking to see if a symbol is a Canadian mutual fund', () => {
it('the symbol "AE030UBX.CS" should return false', () => {
expect(SymbolParser.getIsCanadianFund('AE030UBX.CS')).toEqual(false);
});
- it('the symbol "AAPL|20200515|250.00C" should return false', () => {
- expect(SymbolParser.getIsCanadianFund('AAPL|20200515|250.00C')).toEqual(false);
+ it('the symbol "AAPL|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsPlatts('AAPL|20200515|250.00P')).toEqual(false);
});
- it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
- expect(SymbolParser.getIsCanadianFund('$VIX|20200422|20.00WP')).toEqual(false);
+ it('the symbol "AAPL1|20200515|250.00P" should return false', () => {
+ expect(SymbolParser.getIsCanadianFund('AAPL1|20200515|250.00P')).toEqual(false);
+ });
+ it('the symbol "HBM.TO|20220121|1.00C" should return false', () => {
+ expect(SymbolParser.getIsCanadianFund('HBM.TO|20220121|1.00C')).toEqual(false);
});
it('the symbol "HBM2.TO|20220121|1.00C" should return false', () => {
expect(SymbolParser.getIsCanadianFund('HBM2.TO|20220121|1.00C')).toEqual(false);
});
+ it('the symbol "BRK.B|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsCanadianFund('BRK.B|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "BRK.B2|20210205|170.00C" should return false', () => {
+ expect(SymbolParser.getIsCanadianFund('BRK.B2|20210205|170.00C')).toEqual(false);
+ });
+ it('the symbol "$VIX|20200422|20.00WP" should return false', () => {
+ expect(SymbolParser.getIsCanadianFund('$VIX|20200422|20.00WP')).toEqual(false);
+ });
it('the symbol "AL79MRM1.C3" should return false', () => {
expect(SymbolParser.getIsCanadianFund('AL79MRM1.C3')).toEqual(false);
});
@@ -18218,6 +18494,9 @@ describe('When getting a producer symbol', () => {
it('VIC400.CF should map to VIC400.CF', () => {
expect(SymbolParser.getProducerSymbol('VIC400.CF')).toEqual('VIC400.CF');
});
+ it('AAPL|20200515|250.00P should map to AAPL|20200515|250.00P', () => {
+ expect(SymbolParser.getProducerSymbol('AAPL|20200515|250.00P')).toEqual('AAPL|20200515|250.00P');
+ });
});
},{"../../../../lib/utilities/parsers/SymbolParser":25}]},{},[38,39,40,41,42,43,44,46,45,47,48,49,50,51,52,53,54,55,56,57,58]);