File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed
Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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} ) ( ) ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments