Skip to content

Commit cc570a2

Browse files
BryanBryan
authored andcommitted
Release. Bump version number
1 parent 37891a5 commit cc570a2

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-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 5.3.0</small>
1+
# Barchart Market Data SDK <small>JavaScript 5.4.0</small>
22

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

example/browser/example.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5048,7 +5048,7 @@ module.exports = (() => {
50485048
'use strict';
50495049

50505050
return {
5051-
version: '5.3.0'
5051+
version: '5.4.0'
50525052
};
50535053
})();
50545054

@@ -6737,6 +6737,19 @@ module.exports = (() => {
67376737
static getIsSector(symbol) {
67386738
return is.string(symbol) && types.indicies.sector.test(symbol);
67396739
}
6740+
/**
6741+
* Returns true if the symbol represents a Canadian mutual fund.
6742+
*
6743+
* @public
6744+
* @static
6745+
* @param {String} symbol
6746+
* @returns {Boolean}
6747+
*/
6748+
6749+
6750+
static getIsCanadianFund(symbol) {
6751+
return is.string(symbol) && types.funds.canadian.test(symbol);
6752+
}
67406753
/**
67416754
* Returns true if the symbol represents an instrument which falls under the
67426755
* cmdty brand.
@@ -6976,6 +6989,8 @@ module.exports = (() => {
69766989
types.equities = {};
69776990
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;
69786991
types.forex = /^\^([A-Z]{3})([A-Z]{3})$/i;
6992+
types.funds = {};
6993+
types.funds.canadian = /(.*)(\.CF)$/i;
69796994
types.futures = {};
69806995
types.futures.alias = /^([A-Z][A-Z0-9\$\-!\.]{0,2})(\*{1})([0-9]{1,2})$/i;
69816996
types.futures.concrete = /^([A-Z][A-Z0-9\$\-!\.]{0,2})([A-Z]{1})([0-9]{4}|[0-9]{1,2})$/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: '5.3.0'
5+
version: '5.4.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.3.0",
3+
"version": "5.4.0",
44
"description": "SDK for streaming market data from Barchart.com",
55
"author": {
66
"name": "Eero Pikat",

0 commit comments

Comments
 (0)