@quotemedia.com/streamer 2.40.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/examples/enduser-example.html +1 -1
- package/examples/enterprise-token-example.html +1 -1
- package/examples/reconnect-example.html +1 -1
- package/examples/stomp-3rd-party-library-example.html +1 -1
- package/examples/subscription-example.html +1 -1
- package/examples/wmid-example.html +1 -1
- package/package.json +1 -1
- package/{qmci-streamer-2.40.0.js → qmci-streamer-2.43.0.js} +40 -3
- package/{qmci-streamer-2.40.0.min.js → qmci-streamer-2.43.0.min.js} +2 -2
- package/examples/test_example.html +0 -126
package/README.md
CHANGED
|
@@ -9,10 +9,10 @@ Javascript library responsible to connect to the Quotemedia Streaming Service.
|
|
|
9
9
|
````
|
|
10
10
|
|
|
11
11
|
### Usage
|
|
12
|
-
Include the javascript file (qmci-streamer-2.
|
|
12
|
+
Include the javascript file (qmci-streamer-2.43.0.min.js) in your html page.
|
|
13
13
|
|
|
14
14
|
````
|
|
15
|
-
<script src="qmci-streamer-2.
|
|
15
|
+
<script src="qmci-streamer-2.43.0.min.js"></script>
|
|
16
16
|
````
|
|
17
17
|
|
|
18
18
|
After this, you should be able to use the Streamer object. It will allow you to authenticate, subscribe and unsubscribe
|
package/package.json
CHANGED
|
@@ -5973,6 +5973,7 @@ fmt.Formatter = function () {
|
|
|
5973
5973
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.DIVIDEND] = this._fmtdividend;
|
|
5974
5974
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.EARNINGS] = this._fmtearnings;
|
|
5975
5975
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.SPLIT] = this._fmtsplit;
|
|
5976
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.data.SYMBOLCHANGED] = this._fmtsymbolChanged;
|
|
5976
5977
|
};
|
|
5977
5978
|
|
|
5978
5979
|
fmt.Formatter._UNKOWNTYPE = '__UNKNOWN__';
|
|
@@ -6550,6 +6551,8 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
|
|
|
6550
6551
|
var s = new fmt.StringBuilder();
|
|
6551
6552
|
s.append("TN");
|
|
6552
6553
|
s.sep();
|
|
6554
|
+
s.append(val.traceId);
|
|
6555
|
+
s.sep();
|
|
6553
6556
|
s.append(val.accountId);
|
|
6554
6557
|
s.sep();
|
|
6555
6558
|
s.append(val.enduserId);
|
|
@@ -6557,6 +6560,8 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
|
|
|
6557
6560
|
s.append(val.message);
|
|
6558
6561
|
s.sep();
|
|
6559
6562
|
s.append(val.eventType);
|
|
6563
|
+
s.sep();
|
|
6564
|
+
s.append(val.alertable);
|
|
6560
6565
|
|
|
6561
6566
|
return s.toString();
|
|
6562
6567
|
};
|
|
@@ -6692,6 +6697,23 @@ fmt.Formatter.prototype._fmtsplit = function (val) {
|
|
|
6692
6697
|
return s.toString();
|
|
6693
6698
|
};
|
|
6694
6699
|
|
|
6700
|
+
fmt.Formatter.prototype._fmtsymbolChanged = function (val) {
|
|
6701
|
+
var s = new fmt.StringBuilder();
|
|
6702
|
+
s.append("SBCG");
|
|
6703
|
+
s.sep();
|
|
6704
|
+
s.append(val.symbolId);
|
|
6705
|
+
s.sep();
|
|
6706
|
+
s.append(val.symbol);
|
|
6707
|
+
s.sep();
|
|
6708
|
+
s.append(val.oldSymbol);
|
|
6709
|
+
s.sep();
|
|
6710
|
+
s.append(val.newSymbol);
|
|
6711
|
+
s.sep();
|
|
6712
|
+
s.datetime(val.day);
|
|
6713
|
+
|
|
6714
|
+
return s.toString();
|
|
6715
|
+
};
|
|
6716
|
+
|
|
6695
6717
|
fmt.Formatter.prototype._fmtheartbeat = function (val) {
|
|
6696
6718
|
var s = new fmt.StringBuilder();
|
|
6697
6719
|
s.append("HEARBEAT");
|
|
@@ -13461,7 +13483,8 @@ var StompStream = function () {
|
|
|
13461
13483
|
subscribed: [],
|
|
13462
13484
|
rejected: [],
|
|
13463
13485
|
unentitled: [],
|
|
13464
|
-
invalidSymbols: []
|
|
13486
|
+
invalidSymbols: [],
|
|
13487
|
+
messageFilters: []
|
|
13465
13488
|
}
|
|
13466
13489
|
};
|
|
13467
13490
|
|
|
@@ -13908,6 +13931,7 @@ var StompStream = function () {
|
|
|
13908
13931
|
}
|
|
13909
13932
|
if (opts) {
|
|
13910
13933
|
msg.conflation = opts.conflation;
|
|
13934
|
+
msg.intervalPeriod = opts.intervalPeriod;
|
|
13911
13935
|
}
|
|
13912
13936
|
return msg;
|
|
13913
13937
|
};
|
|
@@ -14725,6 +14749,12 @@ var StompStreamingService = function () {
|
|
|
14725
14749
|
this.addToHeaderParams('X-Stream-Previous-Connection-Id', connectionId);
|
|
14726
14750
|
}
|
|
14727
14751
|
|
|
14752
|
+
var _intervalPeriod = this.config.intervalPeriod;
|
|
14753
|
+
if (_intervalPeriod != null && _intervalPeriod !== '') {
|
|
14754
|
+
headers['X-Stream-Interval-Period'] = _intervalPeriod;
|
|
14755
|
+
this.addToHeaderParams('X-Stream-Interval-Period', _intervalPeriod);
|
|
14756
|
+
}
|
|
14757
|
+
|
|
14728
14758
|
var _rejectExcessiveConnection = this.config.rejectExcessiveConnection;
|
|
14729
14759
|
if (_rejectExcessiveConnection != null && _rejectExcessiveConnection !== '') {
|
|
14730
14760
|
headers['X-Stream-Reject'] = _rejectExcessiveConnection;
|
|
@@ -14882,7 +14912,7 @@ exports.__esModule = true;
|
|
|
14882
14912
|
*/
|
|
14883
14913
|
|
|
14884
14914
|
var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
|
|
14885
|
-
var VERSION = exports.VERSION = "2.
|
|
14915
|
+
var VERSION = exports.VERSION = "2.43.0";
|
|
14886
14916
|
|
|
14887
14917
|
/**
|
|
14888
14918
|
* Streamer message api namespace.
|
|
@@ -14980,7 +15010,8 @@ messages.MessageTypeNames = {
|
|
|
14980
15010
|
NEWSERROR: 'D21',
|
|
14981
15011
|
DIVIDEND: 'D22',
|
|
14982
15012
|
EARNINGS: 'D23',
|
|
14983
|
-
SPLIT: 'D24'
|
|
15013
|
+
SPLIT: 'D24',
|
|
15014
|
+
SYMBOLCHANGED: 'D25'
|
|
14984
15015
|
}
|
|
14985
15016
|
};
|
|
14986
15017
|
|
|
@@ -15255,6 +15286,12 @@ messages.control.SubscribeResponse = function () {
|
|
|
15255
15286
|
* @type {Array.<string>}
|
|
15256
15287
|
*/
|
|
15257
15288
|
this.rejectedsymbols = null;
|
|
15289
|
+
|
|
15290
|
+
/**
|
|
15291
|
+
*
|
|
15292
|
+
* @type {Array.<string>}
|
|
15293
|
+
*/
|
|
15294
|
+
this.messagefilters = null;
|
|
15258
15295
|
};
|
|
15259
15296
|
messages.control.SubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15260
15297
|
|