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 Feb 7, 2021
1 parent 6d2a3f8 commit 62c4a36
Show file tree
Hide file tree
Showing 5 changed files with 366 additions and 87 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.7.4</small>
# Barchart Market Data SDK <small>JavaScript 5.7.5</small>

> Inject real-time market data into your JavaScript applications
Expand Down
18 changes: 9 additions & 9 deletions example/browser/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -5048,7 +5048,7 @@ module.exports = (() => {
'use strict';

return {
version: '5.7.4'
version: '5.7.5'
};
})();

Expand Down Expand Up @@ -7000,7 +7000,7 @@ module.exports = (() => {
types.cmdty.internal = /(\.CM)$/i;
types.cmdty.external = /(\.CP)$/i;
types.equities = {};
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;
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;
types.funds = {};
types.funds.canadian = /(.*)(\.CF)$/i;
Expand Down Expand Up @@ -7077,17 +7077,17 @@ module.exports = (() => {
const match = symbol.match(types.equities.options);

if (match !== null) {
const suffix = typeof match[3] !== 'undefined' ? match[3] : '';
const suffix = typeof match[4] !== 'undefined' ? match[4] : '';
definition = {};
definition.symbol = symbol;
definition.type = 'equity_option';
definition.option_type = match[8] === 'C' ? 'call' : 'put';
definition.strike = parseFloat(match[7]);
definition.option_type = match[9] === 'C' ? 'call' : 'put';
definition.strike = parseFloat(match[8]);
definition.root = `${match[1]}${suffix}`;
definition.month = parseInt(match[5]);
definition.day = parseInt(match[6]);
definition.year = parseInt(match[4]);
definition.adjusted = match[2] !== '';
definition.month = parseInt(match[6]);
definition.day = parseInt(match[7]);
definition.year = parseInt(match[5]);
definition.adjusted = match[3] !== '';
}

return definition;
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.7.4'
version: '5.7.5'
};
})();
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.7.4",
"version": "5.7.5",
"description": "SDK for streaming market data from Barchart.com",
"author": {
"name": "Eero Pikat",
Expand Down
Loading

0 comments on commit 62c4a36

Please sign in to comment.