Skip to content

Commit 94c1423

Browse files
committed
Release. Bump version number
1 parent 90b06dd commit 94c1423

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
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 6.0.0</small>
1+
# Barchart Market Data SDK <small>JavaScript 6.0.1</small>
22

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

example/browser/example.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5312,7 +5312,7 @@ module.exports = (() => {
53125312
'use strict';
53135313

53145314
return {
5315-
version: '6.0.0'
5315+
version: '6.0.1'
53165316
};
53175317
})();
53185318

@@ -6969,6 +6969,19 @@ module.exports = (() => {
69696969
return is.string(symbol) && (types.futures.concrete.test(symbol) || types.futures.alias.test(symbol));
69706970
}
69716971

6972+
/**
6973+
* Indicates if a symbol represents a "cash" futures contract (a
6974+
* proprietary Barchart concept).
6975+
*
6976+
* @public
6977+
* @static
6978+
* @param {String} symbol
6979+
* @returns {Boolean}
6980+
*/
6981+
static getIsCash(symbol) {
6982+
return SymbolParser.getIsFuture(symbol) && types.futures.cash.test(symbol);
6983+
}
6984+
69726985
/**
69736986
* Returns true when a symbol represents futures spread.
69746987
*
@@ -7351,6 +7364,7 @@ module.exports = (() => {
73517364
types.futures.alias = /^([A-Z][A-Z0-9\$\-!\.]{0,2})(\*{1})([0-9]{1,2})$/i;
73527365
types.futures.concrete = /^([A-Z][A-Z0-9\$\-!\.]{0,2})([A-Z]{1})([0-9]{4}|[0-9]{1,2})$/i;
73537366
types.futures.spread = /^_S_/i;
7367+
types.futures.cash = /(.*)(Y00)$/;
73547368
types.futures.options = {};
73557369
types.futures.options.historical = /^([A-Z][A-Z0-9\$\-!\.]{0,2})([A-Z])([0-9]{2})([0-9]{1,5})(C|P)$/i;
73567370
types.futures.options.long = /^([A-Z][A-Z0-9\$\-!\.]{0,2})([A-Z])([0-9]{1,4})\|(\-?[0-9]{1,5})(C|P)$/i;

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: '6.0.0'
5+
version: '6.0.1'
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": "6.0.0",
3+
"version": "6.0.1",
44
"description": "SDK for streaming market data from Barchart.com",
55
"author": {
66
"name": "Eero Pikat",

0 commit comments

Comments
 (0)