Skip to content

Commit ec10a9e

Browse files
committed
Release. Bump version number
1 parent 21e79aa commit ec10a9e

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
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.25.1</small>
1+
# Barchart Market Data SDK <small>JavaScript 5.26.0</small>
22

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

example/browser/example.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4905,19 +4905,19 @@ module.exports = (() => {
49054905

49064906
const previousPrice = quote.days[0].lastPrice;
49074907
const previousPreviousPrice = quote.days[0].previousPrice;
4908-
let priceChange = null;
4909-
let priceChangePercent = null;
4908+
let previousPriceChange = null;
4909+
let previousPriceChangePercent = null;
49104910

49114911
if (is.number(previousPrice) && is.number(previousPreviousPrice)) {
4912-
priceChange = previousPrice - previousPreviousPrice;
4912+
previousPriceChange = previousPrice - previousPreviousPrice;
49134913

49144914
if (previousPreviousPrice !== 0) {
4915-
priceChangePercent = priceChange / Math.abs(previousPreviousPrice);
4915+
previousPriceChangePercent = previousPriceChange / Math.abs(previousPreviousPrice);
49164916
}
49174917
}
49184918

4919-
quote.previousPriceChange = priceChange;
4920-
quote.previousPriceChangePercent = priceChangePercent;
4919+
quote.previousPriceChange = previousPriceChange;
4920+
quote.previousPriceChangePercent = previousPriceChangePercent;
49214921
};
49224922

49234923
const _processMessage = (message, options) => {
@@ -6109,7 +6109,7 @@ module.exports = (() => {
61096109
'use strict';
61106110

61116111
return {
6112-
version: '5.25.1'
6112+
version: '5.26.0'
61136113
};
61146114
})();
61156115

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.25.1'
5+
version: '5.26.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.25.1",
3+
"version": "5.26.0",
44
"description": "SDK for streaming market data from Barchart.com",
55
"author": {
66
"name": "Eero Pikat",

test/dist/barchart-marketdata-api-tests-5.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,6 +2316,8 @@ module.exports = (() => {
23162316
if (sessions.combined.day) message.day = session.day;
23172317
if (premarket && typeof message.flag === 'undefined') message.flag = 'p';
23182318
const p = sessions.previous;
2319+
message.previousDay = p.day;
2320+
message.previousLastPrice = p.lastPrice;
23192321
message.previousPreviousPrice = p.previousPrice;
23202322
message.previousSettlementPrice = p.settlementPrice;
23212323
message.previousOpenPrice = p.openPrice;

0 commit comments

Comments
 (0)