Skip to content

Commit

Permalink
Release. Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
bryaningl3 committed Oct 7, 2021
1 parent 3bd58a9 commit ab90619
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Barchart Market Data SDK <small>JavaScript 5.15.2</small>
# Barchart Market Data SDK <small>JavaScript 5.16.0</small>

> Inject real-time market data into your JavaScript applications
Expand Down
32 changes: 26 additions & 6 deletions example/browser/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ module.exports = (() => {
* additional out-of-band queries to Barchart web services.
*
* @public
* @param {Boolean}
* @param {Boolean} mode
*/


Expand Down Expand Up @@ -2697,7 +2697,7 @@ module.exports = (() => {
/**
* @protected
* @ignore
* @param {String}
* @param {String} symbol
*/


Expand Down Expand Up @@ -5444,6 +5444,8 @@ module.exports = (() => {
}
/**
* Configures the logic used to format all prices using the {@link Profile#formatPrice} instance function.
* Alternately, the {@link Profile.setPriceFormatterCustom} function can be used for complete control over
* price formatting.
*
* @public
* @static
Expand All @@ -5458,7 +5460,8 @@ module.exports = (() => {
}
/**
* An alternative to {@link Profile.setPriceFormatter} which allows the consumer to specify
* a function to
* a function to format prices. Use of this function overrides the rules set using the
* {link Profile.setPriceFormatter} function.
*
* @public
* @static
Expand All @@ -5470,7 +5473,7 @@ module.exports = (() => {
formatter = fn;
}
/**
* Alias for {@link Profile.setPriceFormatter} function.
* Alias for the {@link Profile.setPriceFormatter} function.
*
* @public
* @static
Expand Down Expand Up @@ -5762,7 +5765,7 @@ module.exports = (() => {
'use strict';

return {
version: '5.15.2'
version: '5.16.0'
};
})();

Expand Down Expand Up @@ -7670,7 +7673,9 @@ module.exports = (() => {
return is.string(symbol) && (types.futures.options.short.test(symbol) || types.futures.options.long.test(symbol) || types.futures.options.historical.test(symbol));
}
/**
* Returns true when a symbol represents a foreign exchange currency pair.
* Returns true when a symbol represents a foreign exchange currency pair. However,
* this function can return false positives (cyptocurrency symbols can use the same
* pattern).
*
* @public
* @static
Expand All @@ -7682,6 +7687,20 @@ module.exports = (() => {
static getIsForex(symbol) {
return is.string(symbol) && types.forex.test(symbol);
}
/**
* Returns true when a symbol represents a cryptocurrency. However, this function can
* return false positives (forex symbols can use the same pattern).
*
* @public
* @static
* @param {String} symbol
* @returns {Boolean}
*/


static getIsCrypto(symbol) {
return is.string(symbol) && types.crypto.test(symbol);
}
/**
* Returns true if the symbol represents an external index (i.e. an index
* which is not generated by Barchart, e.g. the S&P 500).
Expand Down Expand Up @@ -8010,6 +8029,7 @@ module.exports = (() => {
types.cmdty.stats = /(\.CS)$/i;
types.cmdty.internal = /(\.CM)$/i;
types.cmdty.external = /(\.CP)$/i;
types.crypto = /^\^([A-Z]{3})([A-Z]{3,4})$/i;
types.equities = {};
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;
Expand Down
2 changes: 1 addition & 1 deletion lib/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = (() => {
'use strict';

return {
version: '5.15.2'
version: '5.16.0'
};
})();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@barchart/marketdata-api-js",
"version": "5.15.2",
"version": "5.16.0",
"description": "SDK for streaming market data from Barchart.com",
"author": {
"name": "Eero Pikat",
Expand Down
Loading

0 comments on commit ab90619

Please sign in to comment.