diff --git a/docs/_coverpage.md b/docs/_coverpage.md
index 9f10d8e..7f373f7 100644
--- a/docs/_coverpage.md
+++ b/docs/_coverpage.md
@@ -1,4 +1,4 @@
-# Barchart Market Data SDK JavaScript 5.10.0
+# Barchart Market Data SDK JavaScript 5.11.0
> Inject real-time market data into your JavaScript applications
diff --git a/example/browser/example.js b/example/browser/example.js
index 48ea5ca..c87f07f 100644
--- a/example/browser/example.js
+++ b/example/browser/example.js
@@ -184,6 +184,7 @@ module.exports = (() => {
connection = new Connection();
connection.setExtendedProfileMode(true);
connection.setExtendedQuoteMode(true);
+ connection.setDeferredDayChangeMode(true);
connection.on('events', handleEvents);
connection.connect(hostname, username, password);
};
@@ -588,6 +589,9 @@ module.exports = (() => {
let __pollingFrequency = null;
let __extendedProfile = false;
let __extendedQuote = false;
+ let __processOptions = {
+ deferDayChange: false
+ };
let __watchdogToken = null;
let __watchdogAwake = false;
let __exchangeMetadataPromise = null;
@@ -650,6 +654,12 @@ module.exports = (() => {
if (__extendedQuote !== mode) {
__extendedQuote = mode;
}
+ }
+
+ function setDeferredDayChangeMode(mode) {
+ if (__processOptions.deferDayChange !== mode) {
+ __processOptions.deferDayChange = mode;
+ }
} //
// Functions for connecting to and disconnecting from JERQ, monitoring
// established connections, and handling involuntary disconnects.
@@ -1401,7 +1411,7 @@ module.exports = (() => {
let parsed;
try {
- parsed = parseMessage(message);
+ parsed = parseMessage(message, __processOptions);
} catch (e) {
parsed = null;
@@ -2267,6 +2277,7 @@ module.exports = (() => {
setPollingFrequency: setPollingFrequency,
setExtendedProfileMode: setExtendedProfileMode,
setExtendedQuoteMode: setExtendedQuoteMode,
+ setDeferredDayChangeMode: setDeferredDayChangeMode,
handleProfileRequest: handleProfileRequest,
getDiagnosticsController: getDiagnosticsController
};
@@ -2351,6 +2362,10 @@ module.exports = (() => {
return this._internal.setExtendedQuoteMode(mode);
}
+ _setDeferredDayChangeMode(mode) {
+ return this._internal.setDeferredDayChangeMode(mode);
+ }
+
_handleProfileRequest(symbol) {
this._internal.handleProfileRequest(symbol);
}
@@ -2395,6 +2410,7 @@ module.exports = (() => {
this._pollingFrequency = null;
this._extendedProfileMode = false;
this._extendedQuoteMode = false;
+ this._deferredDayChangeMode = false;
this._instance = ++instanceCounter;
}
/**
@@ -2665,6 +2681,39 @@ module.exports = (() => {
getExtendedQuoteMode() {
return this._extendedQuoteMode;
}
+ /**
+ * @public
+ * @ignore
+ * @param {Boolean}
+ */
+
+
+ setDeferredDayChangeMode(mode) {
+ if (is.boolean(mode) && this._deferredDayChangeMode !== mode) {
+ this._deferredDayChangeMode = mode;
+
+ this._setDeferredDayChangeMode(this._deferredDayChangeMode);
+ }
+ }
+ /**
+ * @protected
+ * @ignore
+ */
+
+
+ _setDeferredDayChangeMode(mode) {
+ return;
+ }
+ /**
+ * @public
+ * @ignore
+ * @returns {Boolean}
+ */
+
+
+ getDeferredDayChangeMode() {
+ return this._deferredDayChangeMode;
+ }
/**
* @protected
* @ignore
@@ -3086,7 +3135,7 @@ module.exports = (() => {
/**
* @public
* @param {String} file
- * @param {DiagnosticsSubscription[]=} subscriptions
+ * @param {*} subscriptions
*/
@@ -3367,8 +3416,6 @@ const SymbolParser = require('./../../../utilities/parsers/SymbolParser');
module.exports = (() => {
'use strict';
-
- let logger = null;
/**
* Executes an HTTP request for a quote snapshot extension(s). A quote
* extension contains supplemental quote-related data that is not available
@@ -3460,7 +3507,7 @@ module.exports = (() => {
* @param symbols
* @param username
* @param password
- * @returns {Promise<>}
+ * @returns {Promise