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 Jul 16, 2021
1 parent a7ef658 commit fe7a428
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 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.14.0</small>
# Barchart Market Data SDK <small>JavaScript 5.14.1</small>

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

return {
version: '5.14.0'
version: '5.14.1'
};
})();

Expand Down Expand Up @@ -6655,18 +6655,12 @@ const formatFraction = require('./../fraction'),

module.exports = (() => {
'use strict';
/*
// This is a listing of futures option roots which do not use the
// same default formatting rules, as specified in the UnitCode
// class. The desired formatting rules can be viewed on the CME
// website.
const futures = { };
futures["ZB"] = [ 'ZB', 'BB1', 'BB3', 'BB5', 'BB8' ]; // T-Bond, includes weekly and wednesday options
futures["ZT"] = [ 'ZT', 'BT1', 'BT3', 'BT5', 'BT8' ]; // 2-year note, includes weekly and wednesday options
futures["ZF"] = [ 'ZF', 'BF1', 'BF3', 'BF5', 'BF8' ]; // 5-year note, includes weekly and wednesday options
futures["ZN"] = [ 'ZN', 'BN1', 'BN3', 'BN5', 'BN8' ]; // 10-year note, includes weekly and wednesday options
*/

const regex = {};
regex.ZB = /^BB\d$/;
regex.ZT = /^BT\d$/;
regex.ZF = /^BF\d$/;
regex.ZN = /^BN\d$/;
/**
* An implementation of {@link Callbacks.CustomPriceFormatterCallback} which can be
* used with ${@link Profile.setPriceFormatterCustom} which uses logic specific to
Expand All @@ -6690,7 +6684,7 @@ module.exports = (() => {
// the latter. This logic includes the option "root" symbols for normal, weekly,
// and wendesday options (for ZB and ZN futures).

if (root === 'ZB' || root === 'BB1' || root === 'BB3' || root === 'BB5' || root === 'BB8' || root === 'ZN' || root === 'BN1' || root === 'BN3' || root === 'BN5' || root === 'BN8') {
if (root === 'ZB' || root === 'ZN' || regex.ZB.test(root) || regex.ZN.test(root)) {
return formatFraction(value, 64, 2, '-', false);
} // 2021/07/15, BRI. Options for ZT and ZF use unitcode="6" which defines
// 128 price increments. The default price formatter will output fractions
Expand All @@ -6701,7 +6695,7 @@ module.exports = (() => {
// normal, weekly,and wendesday options (for ZT and ZF futures).


if (root === 'ZT' || root === 'BT1' || root === 'BT3' || root === 'BT5' || root === 'BT8' || root === 'ZF' || root === 'BF1' || root === 'BF3' || root === 'BF5' || root === 'BF8') {
if (root === 'ZT' || root === 'ZF' || regex.ZT.test(root) || regex.ZF.test(root)) {
return formatFraction(value, 640, 3, '-', false);
}
}
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.14.0'
version: '5.14.1'
};
})();
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.14.0",
"version": "5.14.1",
"description": "SDK for streaming market data from Barchart.com",
"author": {
"name": "Eero Pikat",
Expand Down

0 comments on commit fe7a428

Please sign in to comment.