@quotemedia.com/streamer 2.46.0 → 2.48.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.46.0.js → qmci-streamer-2.48.0.js} +537 -39
- package/{qmci-streamer-2.46.0.min.js → qmci-streamer-2.48.0.min.js} +12 -12
|
@@ -568,6 +568,7 @@ var Stream = function () {
|
|
|
568
568
|
this.pendingAlertSubscription = {};
|
|
569
569
|
this.pendingTradeSubscription = {};
|
|
570
570
|
this.pendingTradeUnsubscription = {};
|
|
571
|
+
this.pendingCorpEventSubscription = {};
|
|
571
572
|
|
|
572
573
|
this.on("error", function (err) {
|
|
573
574
|
_this.log.warn(err);
|
|
@@ -587,7 +588,7 @@ var Stream = function () {
|
|
|
587
588
|
|
|
588
589
|
Stream.prototype.reconnectSuccess = function reconnectSuccess(msg) {
|
|
589
590
|
this.events.fire("reconnectSuccess", msg);
|
|
590
|
-
this.log.info("
|
|
591
|
+
this.log.info("Successful reconnection. Previous Id: " + msg.previousConnectionId + " Current Id = " + msg.currentConnectionId);
|
|
591
592
|
};
|
|
592
593
|
|
|
593
594
|
Stream.prototype.on = function on(event, listener) {
|
|
@@ -739,6 +740,55 @@ var Stream = function () {
|
|
|
739
740
|
this.send(request);
|
|
740
741
|
};
|
|
741
742
|
|
|
743
|
+
Stream.prototype.subscribeCorpEvents = function subscribeCorpEvents(symbols, corpEventTypes, allCorpEvents, optsOrCallback, callbackOrNothing) {
|
|
744
|
+
if (symbols) {
|
|
745
|
+
symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
|
|
746
|
+
return s.toUpperCase();
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
corpEventTypes = Array.isArray(corpEventTypes) ? corpEventTypes : [corpEventTypes].map(function (s) {
|
|
750
|
+
return s.toUpperCase();
|
|
751
|
+
});
|
|
752
|
+
|
|
753
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
754
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
755
|
+
|
|
756
|
+
if (this.isClosed()) {
|
|
757
|
+
var event = events.error("Stream is disconnected", {
|
|
758
|
+
code: -1,
|
|
759
|
+
reason: "Already disconnected"
|
|
760
|
+
});
|
|
761
|
+
this.events.fire("error", event);
|
|
762
|
+
return;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
var subscribe = {
|
|
766
|
+
id: [],
|
|
767
|
+
symbols: symbols,
|
|
768
|
+
corpEventTypes: corpEventTypes,
|
|
769
|
+
allCorpEvents: allCorpEvents,
|
|
770
|
+
mimeType: this.format,
|
|
771
|
+
callback: callback,
|
|
772
|
+
result: {
|
|
773
|
+
subscribed: [],
|
|
774
|
+
unsubscribed: [],
|
|
775
|
+
invalid: []
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
if (corpEventTypes.length === 0) {
|
|
780
|
+
callback(null, subscribe.result);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
var request = this.buildCorpEventRequest(symbols, subscribe, _streamerApi.messages.control.Action.SUBSCRIBE);
|
|
784
|
+
var id = this.requestid.next();
|
|
785
|
+
subscribe.id.push(id);
|
|
786
|
+
this.pendingCorpEventSubscription[id] = subscribe;
|
|
787
|
+
request.id = id;
|
|
788
|
+
|
|
789
|
+
this.send(request);
|
|
790
|
+
};
|
|
791
|
+
|
|
742
792
|
Stream.prototype.subUnsubAlerts = function subUnsubAlerts(operation, optsOrCallback, callbackOrNothing) {
|
|
743
793
|
|
|
744
794
|
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
@@ -1007,6 +1057,55 @@ var Stream = function () {
|
|
|
1007
1057
|
this.send(request);
|
|
1008
1058
|
};
|
|
1009
1059
|
|
|
1060
|
+
Stream.prototype.unsubscribeCorpEvents = function unsubscribeCorpEvents(symbols, corpEventTypes, allCorpEvents, optsOrCallback, callbackOrNothing) {
|
|
1061
|
+
if (symbols) {
|
|
1062
|
+
symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
|
|
1063
|
+
return s.toUpperCase();
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
corpEventTypes = Array.isArray(corpEventTypes) ? corpEventTypes : [corpEventTypes].map(function (s) {
|
|
1067
|
+
return s.toUpperCase();
|
|
1068
|
+
});
|
|
1069
|
+
|
|
1070
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
1071
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
1072
|
+
|
|
1073
|
+
if (this.isClosed()) {
|
|
1074
|
+
var event = events.error("Stream is disconnected", {
|
|
1075
|
+
code: -1,
|
|
1076
|
+
reason: "Already disconnected"
|
|
1077
|
+
});
|
|
1078
|
+
this.events.fire("error", event);
|
|
1079
|
+
return;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
var unsubscribe = {
|
|
1083
|
+
id: [],
|
|
1084
|
+
symbols: symbols,
|
|
1085
|
+
corpEventTypes: corpEventTypes,
|
|
1086
|
+
allCorpEvents: allCorpEvents,
|
|
1087
|
+
mimeType: this.format,
|
|
1088
|
+
callback: callback,
|
|
1089
|
+
result: {
|
|
1090
|
+
subscribed: [],
|
|
1091
|
+
unsubscribed: [],
|
|
1092
|
+
invalid: []
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
if (corpEventTypes.length === 0) {
|
|
1097
|
+
callback(null, unsubscribe.result);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
var request = this.buildCorpEventRequest(symbols, unsubscribe, _streamerApi.messages.control.Action.UNSUBSCRIBE);
|
|
1101
|
+
var id = this.requestid.next();
|
|
1102
|
+
unsubscribe.id.push(id);
|
|
1103
|
+
this.pendingCorpEventSubscription[id] = unsubscribe;
|
|
1104
|
+
request.id = id;
|
|
1105
|
+
|
|
1106
|
+
this.send(request);
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1010
1109
|
Stream.prototype.unsubscribeTrade = function unsubscribeTrade(notificationType, optsOrCallback, callbackOrNothing) {
|
|
1011
1110
|
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
1012
1111
|
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
@@ -1112,6 +1211,16 @@ var Stream = function () {
|
|
|
1112
1211
|
return msg;
|
|
1113
1212
|
};
|
|
1114
1213
|
|
|
1214
|
+
Stream.prototype.buildCorpEventRequest = function buildCorpEventRequest(symbols, sub, action) {
|
|
1215
|
+
var msg = new _streamerApi.messages.control.CorpEventSubscribeMessage();
|
|
1216
|
+
msg.symbols = symbols;
|
|
1217
|
+
msg.action = action;
|
|
1218
|
+
msg.corpEventTypes = sub.corpEventTypes;
|
|
1219
|
+
msg.allCorpEvents = sub.allCorpEvents;
|
|
1220
|
+
msg.mimeType = sub.mimeType;
|
|
1221
|
+
return msg;
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1115
1224
|
Stream.prototype.buildAlertsSubUnsubRequest = function buildAlertsSubUnsubRequest(opr, subscription) {
|
|
1116
1225
|
var msg = new _streamerApi.messages.control.AlertsSubUnsubMessage();
|
|
1117
1226
|
msg.operation = opr;
|
|
@@ -1181,6 +1290,9 @@ var Stream = function () {
|
|
|
1181
1290
|
case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_RESPONSE:
|
|
1182
1291
|
this.onNewsCmdFilterResponse(msg);
|
|
1183
1292
|
break;
|
|
1293
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.CORP_EVENT_RESPONSE:
|
|
1294
|
+
this.onCorpEventResponse(msg);
|
|
1295
|
+
break;
|
|
1184
1296
|
case _streamerApi.messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE:
|
|
1185
1297
|
this.onTradeUnsubscribeResponse(msg);
|
|
1186
1298
|
break;
|
|
@@ -1441,6 +1553,89 @@ var Stream = function () {
|
|
|
1441
1553
|
}
|
|
1442
1554
|
};
|
|
1443
1555
|
|
|
1556
|
+
Stream.prototype.onCorpEventResponse = function onCorpEventResponse(msg) {
|
|
1557
|
+
var corpEventSub = this.pendingCorpEventSubscription[msg.__id];
|
|
1558
|
+
var callback = corpEventSub.callback;
|
|
1559
|
+
|
|
1560
|
+
(0, _utils.removeFromArray)(corpEventSub.id, msg.__id);
|
|
1561
|
+
delete this.pendingCorpEventSubscription[msg.__id];
|
|
1562
|
+
|
|
1563
|
+
var result = corpEventSub.result;
|
|
1564
|
+
|
|
1565
|
+
console.log(msg);
|
|
1566
|
+
if (msg.code != 200) {
|
|
1567
|
+
var event = events.error("Error subscribing to Corporate Events", {
|
|
1568
|
+
code: msg.code,
|
|
1569
|
+
reason: msg.reason
|
|
1570
|
+
});
|
|
1571
|
+
this.events.fire("error", event);
|
|
1572
|
+
if (callback) {
|
|
1573
|
+
corpEventSub.callback(event);
|
|
1574
|
+
}
|
|
1575
|
+
return;
|
|
1576
|
+
}
|
|
1577
|
+
if (msg.subscribed) {
|
|
1578
|
+
for (var _iterator8 = msg.subscribed, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) {
|
|
1579
|
+
var _ref8;
|
|
1580
|
+
|
|
1581
|
+
if (_isArray8) {
|
|
1582
|
+
if (_i8 >= _iterator8.length) break;
|
|
1583
|
+
_ref8 = _iterator8[_i8++];
|
|
1584
|
+
} else {
|
|
1585
|
+
_i8 = _iterator8.next();
|
|
1586
|
+
if (_i8.done) break;
|
|
1587
|
+
_ref8 = _i8.value;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
var subbed = _ref8;
|
|
1591
|
+
|
|
1592
|
+
result.subscribed.push(subbed);
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
if (msg.unsubscribed) {
|
|
1596
|
+
for (var _iterator9 = msg.unsubscribed, _isArray9 = Array.isArray(_iterator9), _i9 = 0, _iterator9 = _isArray9 ? _iterator9 : _iterator9[Symbol.iterator]();;) {
|
|
1597
|
+
var _ref9;
|
|
1598
|
+
|
|
1599
|
+
if (_isArray9) {
|
|
1600
|
+
if (_i9 >= _iterator9.length) break;
|
|
1601
|
+
_ref9 = _iterator9[_i9++];
|
|
1602
|
+
} else {
|
|
1603
|
+
_i9 = _iterator9.next();
|
|
1604
|
+
if (_i9.done) break;
|
|
1605
|
+
_ref9 = _i9.value;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
var unSubbed = _ref9;
|
|
1609
|
+
|
|
1610
|
+
result.unsubscribed.push(unSubbed);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
if (msg.invalid) {
|
|
1614
|
+
for (var _iterator10 = msg.invalid, _isArray10 = Array.isArray(_iterator10), _i10 = 0, _iterator10 = _isArray10 ? _iterator10 : _iterator10[Symbol.iterator]();;) {
|
|
1615
|
+
var _ref10;
|
|
1616
|
+
|
|
1617
|
+
if (_isArray10) {
|
|
1618
|
+
if (_i10 >= _iterator10.length) break;
|
|
1619
|
+
_ref10 = _iterator10[_i10++];
|
|
1620
|
+
} else {
|
|
1621
|
+
_i10 = _iterator10.next();
|
|
1622
|
+
if (_i10.done) break;
|
|
1623
|
+
_ref10 = _i10.value;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
var invalid = _ref10;
|
|
1627
|
+
|
|
1628
|
+
result.invalid.push(invalid);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
if (corpEventSub.id.length === 0) {
|
|
1633
|
+
if (callback) {
|
|
1634
|
+
callback(null, corpEventSub.result);
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1444
1639
|
Stream.prototype.onAlertsSubUnsubResponse = function onAlertsSubUnsubResponse(msg) {
|
|
1445
1640
|
var alertsSub = this.pendingAlertSubscription[msg.__id];
|
|
1446
1641
|
var callback = alertsSub.callback;
|
|
@@ -1535,19 +1730,19 @@ var Stream = function () {
|
|
|
1535
1730
|
}
|
|
1536
1731
|
|
|
1537
1732
|
if (msg.newsFilters) {
|
|
1538
|
-
for (var
|
|
1539
|
-
var
|
|
1733
|
+
for (var _iterator11 = msg.newsFilters, _isArray11 = Array.isArray(_iterator11), _i11 = 0, _iterator11 = _isArray11 ? _iterator11 : _iterator11[Symbol.iterator]();;) {
|
|
1734
|
+
var _ref11;
|
|
1540
1735
|
|
|
1541
|
-
if (
|
|
1542
|
-
if (
|
|
1543
|
-
|
|
1736
|
+
if (_isArray11) {
|
|
1737
|
+
if (_i11 >= _iterator11.length) break;
|
|
1738
|
+
_ref11 = _iterator11[_i11++];
|
|
1544
1739
|
} else {
|
|
1545
|
-
|
|
1546
|
-
if (
|
|
1547
|
-
|
|
1740
|
+
_i11 = _iterator11.next();
|
|
1741
|
+
if (_i11.done) break;
|
|
1742
|
+
_ref11 = _i11.value;
|
|
1548
1743
|
}
|
|
1549
1744
|
|
|
1550
|
-
var newsFilter =
|
|
1745
|
+
var newsFilter = _ref11;
|
|
1551
1746
|
|
|
1552
1747
|
result.unsubscribed.push(newsFilter);
|
|
1553
1748
|
}
|
|
@@ -5947,6 +6142,8 @@ fmt.Formatter = function () {
|
|
|
5947
6142
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE] = this._fmttradeunsubscriberesponse;
|
|
5948
6143
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE] = this._fmtreconnectresponse;
|
|
5949
6144
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.MISSED_DATA_SENT] = this._fmtmisseddatasent;
|
|
6145
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CORP_EVENT_MESSAGE] = this._fmtcorporateeventsubscribe;
|
|
6146
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CORP_EVENT_RESPONSE] = this._fmtcorporateeventresponse;
|
|
5950
6147
|
|
|
5951
6148
|
//
|
|
5952
6149
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.QUOTE] = this._fmtquote;
|
|
@@ -6562,6 +6759,8 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
|
|
|
6562
6759
|
s.append(val.eventType);
|
|
6563
6760
|
s.sep();
|
|
6564
6761
|
s.append(val.alertable);
|
|
6762
|
+
s.sep();
|
|
6763
|
+
s.append(val.title);
|
|
6565
6764
|
|
|
6566
6765
|
return s.toString();
|
|
6567
6766
|
};
|
|
@@ -6736,6 +6935,13 @@ fmt.Formatter.prototype._fmtexchangesubscribe = function (val) {
|
|
|
6736
6935
|
return s.toString();
|
|
6737
6936
|
};
|
|
6738
6937
|
|
|
6938
|
+
fmt.Formatter.prototype._fmtcorporateeventsubscribe = function (val) {
|
|
6939
|
+
var s = new fmt.StringBuilder();
|
|
6940
|
+
s.append('CORPORATE EVENT SUBSCRIBE');
|
|
6941
|
+
// TODO
|
|
6942
|
+
return s.toString();
|
|
6943
|
+
};
|
|
6944
|
+
|
|
6739
6945
|
fmt.Formatter.prototype._fmtalertsubunsub = function (val) {
|
|
6740
6946
|
var s = new fmt.StringBuilder();
|
|
6741
6947
|
s.append('ALERT');
|
|
@@ -6781,6 +6987,15 @@ fmt.Formatter.prototype._fmtexchangesubscriberesponse = function (val) {
|
|
|
6781
6987
|
return s.toString();
|
|
6782
6988
|
};
|
|
6783
6989
|
|
|
6990
|
+
fmt.Formatter.prototype._fmtcorporateeventresponse = function (val) {
|
|
6991
|
+
var s = new fmt.StringBuilder();
|
|
6992
|
+
s.append('CORPORATE EVENT SUBSCRIBED');
|
|
6993
|
+
s.sep();
|
|
6994
|
+
this.__baseresponse(val, s);
|
|
6995
|
+
// TODO
|
|
6996
|
+
return s.toString();
|
|
6997
|
+
};
|
|
6998
|
+
|
|
6784
6999
|
fmt.Formatter.prototype._fmtalertsubunsubresponse = function (val) {
|
|
6785
7000
|
var s = new fmt.StringBuilder();
|
|
6786
7001
|
s.append('ALERT SUBSCRIBED');
|
|
@@ -7195,6 +7410,12 @@ _Streamer2["default"].marketDataTypes.get = function (msg) {
|
|
|
7195
7410
|
* */
|
|
7196
7411
|
_Streamer2["default"].subscriptionTypes = _streamerApi.messages.market.SubscriptionTypes;
|
|
7197
7412
|
|
|
7413
|
+
/**
|
|
7414
|
+
* Contains the different allowed subscription types.
|
|
7415
|
+
* It can be used along with the subscription requests.
|
|
7416
|
+
* */
|
|
7417
|
+
_Streamer2["default"].corpEventTypes = _streamerApi.messages.market.CorporateEventTypes;
|
|
7418
|
+
|
|
7198
7419
|
module.exports = _Streamer2["default"];
|
|
7199
7420
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/index.js","/lib")
|
|
7200
7421
|
},{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":108,"./streamer-utils.js":110,"_process":131,"buffer":121,"json3":129,"timers":152}],16:[function(require,module,exports){
|
|
@@ -13450,6 +13671,7 @@ var StompStream = function () {
|
|
|
13450
13671
|
this.pendingTradeSubscription = {};
|
|
13451
13672
|
this.pendingTradeUnsubscription = {};
|
|
13452
13673
|
this.pendingSCFMessages = {};
|
|
13674
|
+
this.pendingCorpEventSubscription = {};
|
|
13453
13675
|
|
|
13454
13676
|
this.on("error", function (err) {
|
|
13455
13677
|
_this.log.warn(err);
|
|
@@ -13469,7 +13691,7 @@ var StompStream = function () {
|
|
|
13469
13691
|
|
|
13470
13692
|
StompStream.prototype.reconnectSuccess = function reconnectSuccess(msg) {
|
|
13471
13693
|
this.events.fire("reconnectSuccess", msg);
|
|
13472
|
-
this.log.info("
|
|
13694
|
+
this.log.info("Successful reconnection. Previous Id: " + msg.previousConnectionId + " Current Id = " + msg.currentConnectionId);
|
|
13473
13695
|
};
|
|
13474
13696
|
|
|
13475
13697
|
StompStream.prototype.on = function on(event, listener) {
|
|
@@ -13658,6 +13880,55 @@ var StompStream = function () {
|
|
|
13658
13880
|
this.send(request);
|
|
13659
13881
|
};
|
|
13660
13882
|
|
|
13883
|
+
StompStream.prototype.subscribeCorpEvents = function subscribeCorpEvents(symbols, corpEventTypes, allCorpEvents, optsOrCallback, callbackOrNothing) {
|
|
13884
|
+
if (symbols) {
|
|
13885
|
+
symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
|
|
13886
|
+
return s.toUpperCase();
|
|
13887
|
+
});
|
|
13888
|
+
}
|
|
13889
|
+
corpEventTypes = Array.isArray(corpEventTypes) ? corpEventTypes : [corpEventTypes].map(function (s) {
|
|
13890
|
+
return s.toUpperCase();
|
|
13891
|
+
});
|
|
13892
|
+
|
|
13893
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
13894
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
13895
|
+
|
|
13896
|
+
if (this.isClosed()) {
|
|
13897
|
+
var event = events.error("Stream is disconnected", {
|
|
13898
|
+
code: -1,
|
|
13899
|
+
reason: "Already disconnected"
|
|
13900
|
+
});
|
|
13901
|
+
this.events.fire("error", event);
|
|
13902
|
+
return;
|
|
13903
|
+
}
|
|
13904
|
+
|
|
13905
|
+
var subscribe = {
|
|
13906
|
+
id: [],
|
|
13907
|
+
symbols: symbols,
|
|
13908
|
+
corpEventTypes: corpEventTypes,
|
|
13909
|
+
allCorpEvents: allCorpEvents,
|
|
13910
|
+
mimeType: this.format,
|
|
13911
|
+
callback: callback,
|
|
13912
|
+
result: {
|
|
13913
|
+
subscribed: [],
|
|
13914
|
+
unsubscribed: [],
|
|
13915
|
+
invalid: []
|
|
13916
|
+
}
|
|
13917
|
+
};
|
|
13918
|
+
|
|
13919
|
+
if (corpEventTypes.length === 0) {
|
|
13920
|
+
callback(null, subscribe.result);
|
|
13921
|
+
}
|
|
13922
|
+
|
|
13923
|
+
var request = this.buildCorpEventRequest(symbols, subscribe, _streamerApi.messages.control.Action.SUBSCRIBE);
|
|
13924
|
+
var id = this.requestid.next();
|
|
13925
|
+
subscribe.id.push(id);
|
|
13926
|
+
this.pendingCorpEventSubscription[id] = subscribe;
|
|
13927
|
+
request.id = id;
|
|
13928
|
+
|
|
13929
|
+
this.send(request);
|
|
13930
|
+
};
|
|
13931
|
+
|
|
13661
13932
|
StompStream.prototype.subUnsubAlerts = function subUnsubAlerts(operation, optsOrCallback, callbackOrNothing) {
|
|
13662
13933
|
|
|
13663
13934
|
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
@@ -13926,6 +14197,55 @@ var StompStream = function () {
|
|
|
13926
14197
|
this.send(request);
|
|
13927
14198
|
};
|
|
13928
14199
|
|
|
14200
|
+
StompStream.prototype.unsubscribeCorpEvents = function unsubscribeCorpEvents(symbols, corpEventTypes, allCorpEvents, optsOrCallback, callbackOrNothing) {
|
|
14201
|
+
if (symbols) {
|
|
14202
|
+
symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
|
|
14203
|
+
return s.toUpperCase();
|
|
14204
|
+
});
|
|
14205
|
+
}
|
|
14206
|
+
corpEventTypes = Array.isArray(corpEventTypes) ? corpEventTypes : [corpEventTypes].map(function (s) {
|
|
14207
|
+
return s.toUpperCase();
|
|
14208
|
+
});
|
|
14209
|
+
|
|
14210
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
14211
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
14212
|
+
|
|
14213
|
+
if (this.isClosed()) {
|
|
14214
|
+
var event = events.error("Stream is disconnected", {
|
|
14215
|
+
code: -1,
|
|
14216
|
+
reason: "Already disconnected"
|
|
14217
|
+
});
|
|
14218
|
+
this.events.fire("error", event);
|
|
14219
|
+
return;
|
|
14220
|
+
}
|
|
14221
|
+
|
|
14222
|
+
var unsubscribe = {
|
|
14223
|
+
id: [],
|
|
14224
|
+
symbols: symbols,
|
|
14225
|
+
corpEventTypes: corpEventTypes,
|
|
14226
|
+
allCorpEvents: allCorpEvents,
|
|
14227
|
+
mimeType: this.format,
|
|
14228
|
+
callback: callback,
|
|
14229
|
+
result: {
|
|
14230
|
+
subscribed: [],
|
|
14231
|
+
unsubscribed: [],
|
|
14232
|
+
invalid: []
|
|
14233
|
+
}
|
|
14234
|
+
};
|
|
14235
|
+
|
|
14236
|
+
if (corpEventTypes.length === 0) {
|
|
14237
|
+
callback(null, unsubscribe.result);
|
|
14238
|
+
}
|
|
14239
|
+
|
|
14240
|
+
var request = this.buildCorpEventRequest(symbols, unsubscribe, _streamerApi.messages.control.Action.UNSUBSCRIBE);
|
|
14241
|
+
var id = this.requestid.next();
|
|
14242
|
+
unsubscribe.id.push(id);
|
|
14243
|
+
this.pendingCorpEventSubscription[id] = unsubscribe;
|
|
14244
|
+
request.id = id;
|
|
14245
|
+
|
|
14246
|
+
this.send(request);
|
|
14247
|
+
};
|
|
14248
|
+
|
|
13929
14249
|
StompStream.prototype.unsubscribeTrade = function unsubscribeTrade(notificationType, optsOrCallback, callbackOrNothing) {
|
|
13930
14250
|
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
13931
14251
|
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
@@ -14033,6 +14353,16 @@ var StompStream = function () {
|
|
|
14033
14353
|
return msg;
|
|
14034
14354
|
};
|
|
14035
14355
|
|
|
14356
|
+
StompStream.prototype.buildCorpEventRequest = function buildCorpEventRequest(symbols, sub, action) {
|
|
14357
|
+
var msg = new _streamerApi.messages.control.CorpEventSubscribeMessage();
|
|
14358
|
+
msg.symbols = symbols;
|
|
14359
|
+
msg.action = action;
|
|
14360
|
+
msg.corpEventTypes = sub.corpEventTypes;
|
|
14361
|
+
msg.allCorpEvents = sub.allCorpEvents;
|
|
14362
|
+
msg.mimeType = sub.mimeType;
|
|
14363
|
+
return msg;
|
|
14364
|
+
};
|
|
14365
|
+
|
|
14036
14366
|
StompStream.prototype.buildAlertsSubUnsubRequest = function buildAlertsSubUnsubRequest(opr, subscription) {
|
|
14037
14367
|
var msg = new _streamerApi.messages.control.AlertsSubUnsubMessage();
|
|
14038
14368
|
msg.operation = opr;
|
|
@@ -14102,6 +14432,9 @@ var StompStream = function () {
|
|
|
14102
14432
|
case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_RESPONSE:
|
|
14103
14433
|
this.onNewsCmdFilterResponse(msg);
|
|
14104
14434
|
break;
|
|
14435
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.CORP_EVENT_RESPONSE:
|
|
14436
|
+
this.onCorpEventResponse(msg);
|
|
14437
|
+
break;
|
|
14105
14438
|
case _streamerApi.messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE:
|
|
14106
14439
|
this.onTradeUnsubscribeResponse(msg);
|
|
14107
14440
|
break;
|
|
@@ -14373,6 +14706,89 @@ var StompStream = function () {
|
|
|
14373
14706
|
}
|
|
14374
14707
|
};
|
|
14375
14708
|
|
|
14709
|
+
StompStream.prototype.onCorpEventResponse = function onCorpEventResponse(msg) {
|
|
14710
|
+
var corpEventSub = this.pendingCorpEventSubscription[msg.__id];
|
|
14711
|
+
var callback = corpEventSub.callback;
|
|
14712
|
+
|
|
14713
|
+
(0, _utils.removeFromArray)(corpEventSub.id, msg.__id);
|
|
14714
|
+
delete this.pendingCorpEventSubscription[msg.__id];
|
|
14715
|
+
|
|
14716
|
+
var result = corpEventSub.result;
|
|
14717
|
+
|
|
14718
|
+
console.log(msg);
|
|
14719
|
+
if (msg.code != 200) {
|
|
14720
|
+
var event = events.error("Error subscribing to Corporate Events", {
|
|
14721
|
+
code: msg.code,
|
|
14722
|
+
reason: msg.reason
|
|
14723
|
+
});
|
|
14724
|
+
this.events.fire("error", event);
|
|
14725
|
+
if (callback) {
|
|
14726
|
+
corpEventSub.callback(event);
|
|
14727
|
+
}
|
|
14728
|
+
return;
|
|
14729
|
+
}
|
|
14730
|
+
if (msg.subscribed) {
|
|
14731
|
+
for (var _iterator7 = msg.subscribed, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
|
|
14732
|
+
var _ref7;
|
|
14733
|
+
|
|
14734
|
+
if (_isArray7) {
|
|
14735
|
+
if (_i7 >= _iterator7.length) break;
|
|
14736
|
+
_ref7 = _iterator7[_i7++];
|
|
14737
|
+
} else {
|
|
14738
|
+
_i7 = _iterator7.next();
|
|
14739
|
+
if (_i7.done) break;
|
|
14740
|
+
_ref7 = _i7.value;
|
|
14741
|
+
}
|
|
14742
|
+
|
|
14743
|
+
var subbed = _ref7;
|
|
14744
|
+
|
|
14745
|
+
result.subscribed.push(subbed);
|
|
14746
|
+
}
|
|
14747
|
+
}
|
|
14748
|
+
if (msg.unsubscribed) {
|
|
14749
|
+
for (var _iterator8 = msg.unsubscribed, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) {
|
|
14750
|
+
var _ref8;
|
|
14751
|
+
|
|
14752
|
+
if (_isArray8) {
|
|
14753
|
+
if (_i8 >= _iterator8.length) break;
|
|
14754
|
+
_ref8 = _iterator8[_i8++];
|
|
14755
|
+
} else {
|
|
14756
|
+
_i8 = _iterator8.next();
|
|
14757
|
+
if (_i8.done) break;
|
|
14758
|
+
_ref8 = _i8.value;
|
|
14759
|
+
}
|
|
14760
|
+
|
|
14761
|
+
var unSubbed = _ref8;
|
|
14762
|
+
|
|
14763
|
+
result.unsubscribed.push(unSubbed);
|
|
14764
|
+
}
|
|
14765
|
+
}
|
|
14766
|
+
if (msg.invalid) {
|
|
14767
|
+
for (var _iterator9 = msg.invalid, _isArray9 = Array.isArray(_iterator9), _i9 = 0, _iterator9 = _isArray9 ? _iterator9 : _iterator9[Symbol.iterator]();;) {
|
|
14768
|
+
var _ref9;
|
|
14769
|
+
|
|
14770
|
+
if (_isArray9) {
|
|
14771
|
+
if (_i9 >= _iterator9.length) break;
|
|
14772
|
+
_ref9 = _iterator9[_i9++];
|
|
14773
|
+
} else {
|
|
14774
|
+
_i9 = _iterator9.next();
|
|
14775
|
+
if (_i9.done) break;
|
|
14776
|
+
_ref9 = _i9.value;
|
|
14777
|
+
}
|
|
14778
|
+
|
|
14779
|
+
var invalid = _ref9;
|
|
14780
|
+
|
|
14781
|
+
result.invalid.push(invalid);
|
|
14782
|
+
}
|
|
14783
|
+
}
|
|
14784
|
+
|
|
14785
|
+
if (corpEventSub.id.length === 0) {
|
|
14786
|
+
if (callback) {
|
|
14787
|
+
callback(null, corpEventSub.result);
|
|
14788
|
+
}
|
|
14789
|
+
}
|
|
14790
|
+
};
|
|
14791
|
+
|
|
14376
14792
|
StompStream.prototype.onAlertsSubUnsubResponse = function onAlertsSubUnsubResponse(msg) {
|
|
14377
14793
|
var alertsSub = this.pendingAlertSubscription[msg.__id];
|
|
14378
14794
|
var callback = alertsSub.callback;
|
|
@@ -14467,19 +14883,19 @@ var StompStream = function () {
|
|
|
14467
14883
|
}
|
|
14468
14884
|
|
|
14469
14885
|
if (msg.newsFilters) {
|
|
14470
|
-
for (var
|
|
14471
|
-
var
|
|
14886
|
+
for (var _iterator10 = msg.newsFilters, _isArray10 = Array.isArray(_iterator10), _i10 = 0, _iterator10 = _isArray10 ? _iterator10 : _iterator10[Symbol.iterator]();;) {
|
|
14887
|
+
var _ref10;
|
|
14472
14888
|
|
|
14473
|
-
if (
|
|
14474
|
-
if (
|
|
14475
|
-
|
|
14889
|
+
if (_isArray10) {
|
|
14890
|
+
if (_i10 >= _iterator10.length) break;
|
|
14891
|
+
_ref10 = _iterator10[_i10++];
|
|
14476
14892
|
} else {
|
|
14477
|
-
|
|
14478
|
-
if (
|
|
14479
|
-
|
|
14893
|
+
_i10 = _iterator10.next();
|
|
14894
|
+
if (_i10.done) break;
|
|
14895
|
+
_ref10 = _i10.value;
|
|
14480
14896
|
}
|
|
14481
14897
|
|
|
14482
|
-
var newsFilter =
|
|
14898
|
+
var newsFilter = _ref10;
|
|
14483
14899
|
|
|
14484
14900
|
result.unsubscribed.push(newsFilter);
|
|
14485
14901
|
}
|
|
@@ -15014,7 +15430,7 @@ exports.__esModule = true;
|
|
|
15014
15430
|
*/
|
|
15015
15431
|
|
|
15016
15432
|
var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
|
|
15017
|
-
var VERSION = exports.VERSION = "2.
|
|
15433
|
+
var VERSION = exports.VERSION = "2.48.0";
|
|
15018
15434
|
|
|
15019
15435
|
/**
|
|
15020
15436
|
* Streamer message api namespace.
|
|
@@ -15081,7 +15497,10 @@ messages.MessageTypeNames = {
|
|
|
15081
15497
|
OPEN_FLOW: 'C28',
|
|
15082
15498
|
RECONNECT_RESPONSE: 'C29',
|
|
15083
15499
|
TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
|
|
15084
|
-
MISSED_DATA_SENT: 'C31'
|
|
15500
|
+
MISSED_DATA_SENT: 'C31',
|
|
15501
|
+
// Corporate events C33 and C34 for consistency with Java Mapping
|
|
15502
|
+
CORP_EVENT_MESSAGE: 'C33',
|
|
15503
|
+
CORP_EVENT_RESPONSE: 'C34'
|
|
15085
15504
|
},
|
|
15086
15505
|
/**
|
|
15087
15506
|
* Name space for data message type identifiers.<br>
|
|
@@ -15170,7 +15589,7 @@ messages.control.SubscribeMessage = function () {
|
|
|
15170
15589
|
this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
|
|
15171
15590
|
|
|
15172
15591
|
/**
|
|
15173
|
-
* The action the server will
|
|
15592
|
+
* The action the server will take when receiving this message.
|
|
15174
15593
|
* @type {string}
|
|
15175
15594
|
* @see exports.messages.control.Action
|
|
15176
15595
|
*/
|
|
@@ -15212,7 +15631,7 @@ messages.control.ExchangeSubscribeMessage = function () {
|
|
|
15212
15631
|
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
|
|
15213
15632
|
|
|
15214
15633
|
/**
|
|
15215
|
-
* The action the server will
|
|
15634
|
+
* The action the server will take when receiving this message.
|
|
15216
15635
|
* @type {string}
|
|
15217
15636
|
* @see exports.messages.control.Action
|
|
15218
15637
|
*/
|
|
@@ -15240,14 +15659,14 @@ messages.control.ExchangeSubscribeMessage = function () {
|
|
|
15240
15659
|
messages.control.ExchangeSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15241
15660
|
|
|
15242
15661
|
/**
|
|
15243
|
-
* Creates
|
|
15662
|
+
* Creates a news subscribe message.
|
|
15244
15663
|
* @constructor
|
|
15245
15664
|
*/
|
|
15246
15665
|
messages.control.NewsSubscribeMessage = function () {
|
|
15247
15666
|
this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
|
|
15248
15667
|
|
|
15249
15668
|
/**
|
|
15250
|
-
* The action the server will
|
|
15669
|
+
* The action the server will take when receiving this message.
|
|
15251
15670
|
* @type {string}
|
|
15252
15671
|
* @see exports.messages.control.Action
|
|
15253
15672
|
*/
|
|
@@ -15269,14 +15688,14 @@ messages.control.NewsSubscribeMessage = function () {
|
|
|
15269
15688
|
messages.control.NewsSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15270
15689
|
|
|
15271
15690
|
/**
|
|
15272
|
-
* Creates
|
|
15691
|
+
* Creates a news reset message.
|
|
15273
15692
|
* @constructor
|
|
15274
15693
|
*/
|
|
15275
15694
|
messages.control.NewsCommandMessage = function () {
|
|
15276
15695
|
this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
|
|
15277
15696
|
|
|
15278
15697
|
/**
|
|
15279
|
-
* The action the server will
|
|
15698
|
+
* The action the server will take when receiving this message.
|
|
15280
15699
|
* @type {string}
|
|
15281
15700
|
* @see exports.messages.control.Action
|
|
15282
15701
|
*/
|
|
@@ -15292,7 +15711,48 @@ messages.control.NewsCommandMessage = function () {
|
|
|
15292
15711
|
messages.control.NewsCommandMessage.prototype = new messages.control.CtrlMessage();
|
|
15293
15712
|
|
|
15294
15713
|
/**
|
|
15295
|
-
* Creates
|
|
15714
|
+
* Creates a Corporate Event subscribe message.
|
|
15715
|
+
* @constructor
|
|
15716
|
+
*/
|
|
15717
|
+
messages.control.CorpEventSubscribeMessage = function () {
|
|
15718
|
+
this.init(messages.MessageTypeNames.ctrl.CORP_EVENT_MESSAGE);
|
|
15719
|
+
|
|
15720
|
+
/**
|
|
15721
|
+
* The action the server will take when receiving this message.
|
|
15722
|
+
* @type {string}
|
|
15723
|
+
* @see exports.messages.control.Action
|
|
15724
|
+
*/
|
|
15725
|
+
this.action = null;
|
|
15726
|
+
|
|
15727
|
+
/**
|
|
15728
|
+
* The symbols to subscribe/un-subscribe for.
|
|
15729
|
+
* @type {Array.<string>}
|
|
15730
|
+
*/
|
|
15731
|
+
this.symbols = [];
|
|
15732
|
+
|
|
15733
|
+
/**
|
|
15734
|
+
* List of Corporate Event types to subscribe/un-subscribe for.
|
|
15735
|
+
* @type {Array.<string>}
|
|
15736
|
+
*/
|
|
15737
|
+
this.corpEventTypes = [];
|
|
15738
|
+
|
|
15739
|
+
/**
|
|
15740
|
+
* Whether to subscribe to all corporate events symbols
|
|
15741
|
+
* @type {boolean}
|
|
15742
|
+
*/
|
|
15743
|
+
this.allCorpEvents = null;
|
|
15744
|
+
|
|
15745
|
+
/**
|
|
15746
|
+
* Requested message mime-type format.
|
|
15747
|
+
* @type {string}
|
|
15748
|
+
* @see exports.messages.MimeTypes
|
|
15749
|
+
*/
|
|
15750
|
+
this.mimeType = null;
|
|
15751
|
+
};
|
|
15752
|
+
messages.control.CorpEventSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15753
|
+
|
|
15754
|
+
/**
|
|
15755
|
+
* Creates an Alert subscribe/unsubscribe message.
|
|
15296
15756
|
* @constructor
|
|
15297
15757
|
*/
|
|
15298
15758
|
messages.control.AlertsSubUnsubMessage = function () {
|
|
@@ -15322,7 +15782,7 @@ messages.control.TradeSubscribeMessage = function () {
|
|
|
15322
15782
|
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
|
|
15323
15783
|
|
|
15324
15784
|
/**
|
|
15325
|
-
* The action the server will
|
|
15785
|
+
* The action the server will take when receiving this message.
|
|
15326
15786
|
* @type {string}
|
|
15327
15787
|
* @see exports.messages.control.Action
|
|
15328
15788
|
*/
|
|
@@ -15466,6 +15926,33 @@ messages.control.NewsUnsubscribeResponse = function () {
|
|
|
15466
15926
|
};
|
|
15467
15927
|
messages.control.NewsUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15468
15928
|
|
|
15929
|
+
/**
|
|
15930
|
+
* Creates a Corporate Event response message.
|
|
15931
|
+
* @constructor
|
|
15932
|
+
*/
|
|
15933
|
+
messages.control.CorporateEventResponse = function () {
|
|
15934
|
+
this.init(messages.MessageTypeNames.ctrl.CORP_EVENT_RESPONSE);
|
|
15935
|
+
|
|
15936
|
+
/**
|
|
15937
|
+
*
|
|
15938
|
+
* @type {Array.<string>}
|
|
15939
|
+
*/
|
|
15940
|
+
this.subscribed = [];
|
|
15941
|
+
|
|
15942
|
+
/**
|
|
15943
|
+
*
|
|
15944
|
+
* @type {Array.<string>}
|
|
15945
|
+
*/
|
|
15946
|
+
this.unsubscribed = [];
|
|
15947
|
+
|
|
15948
|
+
/**
|
|
15949
|
+
*
|
|
15950
|
+
* @type {Array.<string>}
|
|
15951
|
+
*/
|
|
15952
|
+
this.invalid = [];
|
|
15953
|
+
};
|
|
15954
|
+
messages.control.CorporateEventResponse.prototype = new messages.control.BaseResponse();
|
|
15955
|
+
|
|
15469
15956
|
/**
|
|
15470
15957
|
* Creates Trade notification subscribe response message.
|
|
15471
15958
|
* @constructor
|
|
@@ -15542,9 +16029,9 @@ messages.control.ReconnectResponse = function () {
|
|
|
15542
16029
|
undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
|
|
15543
16030
|
|
|
15544
16031
|
/**
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
16032
|
+
* The server version.
|
|
16033
|
+
* @type {string}
|
|
16034
|
+
*/
|
|
15548
16035
|
undefined.version = null;
|
|
15549
16036
|
|
|
15550
16037
|
/**
|
|
@@ -15566,9 +16053,9 @@ messages.control.ReconnectResponse = function () {
|
|
|
15566
16053
|
undefined.conflationMs = null;
|
|
15567
16054
|
|
|
15568
16055
|
/**
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
16056
|
+
* The previous subscriptions
|
|
16057
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
16058
|
+
*/
|
|
15572
16059
|
undefined.previousSubscriptions = null;
|
|
15573
16060
|
};
|
|
15574
16061
|
|
|
@@ -15754,9 +16241,9 @@ messages.control.ResubscribeMessage = function () {
|
|
|
15754
16241
|
messages.control.ResubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15755
16242
|
|
|
15756
16243
|
/**
|
|
15757
|
-
* Creates a Missed Data Sent response message.
|
|
15758
|
-
* @constructor
|
|
15759
|
-
*/
|
|
16244
|
+
* Creates a Missed Data Sent response message.
|
|
16245
|
+
* @constructor
|
|
16246
|
+
*/
|
|
15760
16247
|
messages.control.MissedDataSent = function () {
|
|
15761
16248
|
this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
|
|
15762
16249
|
|
|
@@ -15847,6 +16334,17 @@ messages.market.SubscriptionTypes = {
|
|
|
15847
16334
|
IVGREEKS: "IVGREEKS",
|
|
15848
16335
|
IMBALANCESTATUS: "IMBALANCESTATUS"
|
|
15849
16336
|
|
|
16337
|
+
/**
|
|
16338
|
+
* Enum for the allowed Corporate Event subscription types
|
|
16339
|
+
* @enum
|
|
16340
|
+
* @readonly
|
|
16341
|
+
*/
|
|
16342
|
+
};messages.market.CorporateEventTypes = {
|
|
16343
|
+
DIVIDEND: "DIVIDEND",
|
|
16344
|
+
SPLIT: "SPLIT",
|
|
16345
|
+
EARNINGS: "EARNINGS",
|
|
16346
|
+
SYMBOLCHANGED: "SYMBOLCHANGED"
|
|
16347
|
+
|
|
15850
16348
|
/**
|
|
15851
16349
|
* Enum for streamer responses from server
|
|
15852
16350
|
* @enum
|