Skip to content

Commit 49a7336

Browse files
committed
Release. Bump version number
1 parent a242f18 commit 49a7336

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Barchart Market Data SDK <small>JavaScript 5.21.1</small>
1+
# Barchart Market Data SDK <small>JavaScript 5.22.0</small>
22

33
> Inject real-time market data into your JavaScript applications
44

example/browser/example.js

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3476,14 +3476,28 @@ module.exports = (() => {
34763476
extension.option = {};
34773477

34783478
if (result.underlier) {
3479-
extension.option.underlying = result.underlier;
3480-
}
3479+
const u = SymbolParser.parseInstrumentType(result.underlier);
3480+
const o = SymbolParser.parseInstrumentType(result.lookup);
3481+
3482+
if (o !== null) {
3483+
if (extension.expiration) {
3484+
extension.option.expiration = extension.expiration;
3485+
}
34813486

3482-
const parsed = SymbolParser.parseInstrumentType(result.lookup);
3487+
extension.option.putCall = o.option_type;
3488+
extension.option.strike = o.strike;
3489+
}
3490+
3491+
const underlying = {};
3492+
underlying.symbol = result.underlier;
3493+
3494+
if (u !== null) {
3495+
underlying.root = u.root;
3496+
underlying.month = u.month;
3497+
underlying.year = u.year;
3498+
}
34833499

3484-
if (parsed !== null) {
3485-
extension.option.strike = parsed.strike;
3486-
extension.option.putCall = parsed.option_type;
3500+
extension.option.underlying = underlying;
34873501
}
34883502

34893503
return extension;
@@ -3526,6 +3540,7 @@ module.exports = (() => {
35263540
* @property {String=} firstNotice
35273541
* @property {Object=} c3
35283542
* @property {Object=} cmdtyStats
3543+
* @property {Object=} option
35293544
*/
35303545

35313546

@@ -5609,7 +5624,7 @@ module.exports = (() => {
56095624
}
56105625
}
56115626
/**
5612-
* @property {AssetClass|null} asset - The instrument type (a.k.a. asset class). This will only be present when inference based on the instrument symbol is possible.
5627+
* @property {AssetClass|null} asset - The instrument type. This will only be present when inference based on the instrument symbol is possible.
56135628
* @public
56145629
* @readonly
56155630
*/
@@ -5964,7 +5979,7 @@ module.exports = (() => {
59645979
'use strict';
59655980

59665981
return {
5967-
version: '5.21.1'
5982+
version: '5.22.0'
59685983
};
59695984
})();
59705985

lib/meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = (() => {
22
'use strict';
33

44
return {
5-
version: '5.21.1'
5+
version: '5.22.0'
66
};
77
})();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@barchart/marketdata-api-js",
3-
"version": "5.21.1",
3+
"version": "5.22.0",
44
"description": "SDK for streaming market data from Barchart.com",
55
"author": {
66
"name": "Eero Pikat",

test/dist/barchart-marketdata-api-tests-5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ module.exports = (() => {
712712
}
713713
}
714714
/**
715-
* @property {AssetClass|null} asset - The instrument type (a.k.a. asset class). This will only be present when inference based on the instrument symbol is possible.
715+
* @property {AssetClass|null} asset - The instrument type. This will only be present when inference based on the instrument symbol is possible.
716716
* @public
717717
* @readonly
718718
*/

0 commit comments

Comments
 (0)