@quotemedia.com/streamer 2.39.0 → 2.41.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.
@@ -429,52 +429,52 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
429
429
 
430
430
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
431
431
 
432
- /**
433
- * Generic payload container with metadata.
434
- * @constructor
432
+ /**
433
+ * Generic payload container with metadata.
434
+ * @constructor
435
435
  */
436
436
  var SMessage = function SMessage() {
437
437
  _classCallCheck(this, SMessage);
438
438
 
439
- /**
440
- * Message type to distinguish different message types.
441
- * @type {string}
439
+ /**
440
+ * Message type to distinguish different message types.
441
+ * @type {string}
442
442
  */
443
443
  this.type = _codec2["default"].TYPE;
444
444
 
445
- /**
446
- * Sequence number may be used for flow control.
447
- * @type {number}
445
+ /**
446
+ * Sequence number may be used for flow control.
447
+ * @type {number}
448
448
  */
449
449
  this.sequencenumber = null;
450
450
 
451
- /**
452
- * Timestamp may be used for latency measuring.
453
- * @type {number}
451
+ /**
452
+ * Timestamp may be used for latency measuring.
453
+ * @type {number}
454
454
  */
455
455
  this.timestamp = null;
456
456
 
457
- /**
458
- * Id may be used for request response matching.
459
- * @type {number}
457
+ /**
458
+ * Id may be used for request response matching.
459
+ * @type {number}
460
460
  */
461
461
  this.id = null;
462
462
 
463
- /**
464
- * Encoding of <code>payload</code>.
465
- * @type {string}
463
+ /**
464
+ * Encoding of <code>payload</code>.
465
+ * @type {string}
466
466
  */
467
467
  this.encoding = null;
468
468
 
469
- /**
470
- * Mime type of <code>payload</code>.
471
- * @type {string}
469
+ /**
470
+ * Mime type of <code>payload</code>.
471
+ * @type {string}
472
472
  */
473
473
  this.mimetype = null;
474
474
 
475
- /**
476
- * Payload encoded with <code>encoding</code> and serialized with <code>mimetype</code>.
477
- * @type {string}
475
+ /**
476
+ * Payload encoded with <code>encoding</code> and serialized with <code>mimetype</code>.
477
+ * @type {string}
478
478
  */
479
479
  this.payload = null;
480
480
  };
@@ -628,7 +628,8 @@ var Stream = function () {
628
628
  subscribed: [],
629
629
  rejected: [],
630
630
  unentitled: [],
631
- invalidSymbols: []
631
+ invalidSymbols: [],
632
+ messageFilters: []
632
633
  }
633
634
  };
634
635
 
@@ -1304,6 +1305,25 @@ var Stream = function () {
1304
1305
  (_result$invalidSymbol = result.invalidSymbols).push.apply(_result$invalidSymbol, msg.invalidSymbols);
1305
1306
  }
1306
1307
  }
1308
+ if (msg.messageFilters) {
1309
+ this.log.debug('MESSAGE FILTERS ' + JSON.stringify(msg.messageFilters));
1310
+ for (var _iterator4 = msg.messageFilters, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
1311
+ var _ref4;
1312
+
1313
+ if (_isArray4) {
1314
+ if (_i4 >= _iterator4.length) break;
1315
+ _ref4 = _iterator4[_i4++];
1316
+ } else {
1317
+ _i4 = _iterator4.next();
1318
+ if (_i4.done) break;
1319
+ _ref4 = _i4.value;
1320
+ }
1321
+
1322
+ var filter = _ref4;
1323
+
1324
+ result.messageFilters.push(filter);
1325
+ }
1326
+ }
1307
1327
 
1308
1328
  if (subscription.ids.length === 0 && !subscription.failed) {
1309
1329
  if (callback) {
@@ -1360,25 +1380,7 @@ var Stream = function () {
1360
1380
  return;
1361
1381
  }
1362
1382
  if (msg.newsFilters) {
1363
- for (var _iterator4 = msg.newsFilters, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
1364
- var _ref4;
1365
-
1366
- if (_isArray4) {
1367
- if (_i4 >= _iterator4.length) break;
1368
- _ref4 = _iterator4[_i4++];
1369
- } else {
1370
- _i4 = _iterator4.next();
1371
- if (_i4.done) break;
1372
- _ref4 = _i4.value;
1373
- }
1374
-
1375
- var newsFilter = _ref4;
1376
-
1377
- result.newsFilters.push(newsFilter);
1378
- }
1379
- }
1380
- if (msg.rejectedNewsFilters) {
1381
- for (var _iterator5 = msg.rejectedNewsFilters, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) {
1383
+ for (var _iterator5 = msg.newsFilters, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) {
1382
1384
  var _ref5;
1383
1385
 
1384
1386
  if (_isArray5) {
@@ -1390,13 +1392,13 @@ var Stream = function () {
1390
1392
  _ref5 = _i5.value;
1391
1393
  }
1392
1394
 
1393
- var rejectedFilter = _ref5;
1395
+ var newsFilter = _ref5;
1394
1396
 
1395
- result.rejectedNewsFilters.push(rejectedFilter);
1397
+ result.newsFilters.push(newsFilter);
1396
1398
  }
1397
1399
  }
1398
- if (msg.unentitledNewsFilters) {
1399
- for (var _iterator6 = msg.unentitledNewsFilters, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) {
1400
+ if (msg.rejectedNewsFilters) {
1401
+ for (var _iterator6 = msg.rejectedNewsFilters, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) {
1400
1402
  var _ref6;
1401
1403
 
1402
1404
  if (_isArray6) {
@@ -1408,7 +1410,25 @@ var Stream = function () {
1408
1410
  _ref6 = _i6.value;
1409
1411
  }
1410
1412
 
1411
- var unentitledFilter = _ref6;
1413
+ var rejectedFilter = _ref6;
1414
+
1415
+ result.rejectedNewsFilters.push(rejectedFilter);
1416
+ }
1417
+ }
1418
+ if (msg.unentitledNewsFilters) {
1419
+ for (var _iterator7 = msg.unentitledNewsFilters, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
1420
+ var _ref7;
1421
+
1422
+ if (_isArray7) {
1423
+ if (_i7 >= _iterator7.length) break;
1424
+ _ref7 = _iterator7[_i7++];
1425
+ } else {
1426
+ _i7 = _iterator7.next();
1427
+ if (_i7.done) break;
1428
+ _ref7 = _i7.value;
1429
+ }
1430
+
1431
+ var unentitledFilter = _ref7;
1412
1432
 
1413
1433
  result.unentitledNewsFilters.push(unentitledFilter);
1414
1434
  }
@@ -1515,19 +1535,19 @@ var Stream = function () {
1515
1535
  }
1516
1536
 
1517
1537
  if (msg.newsFilters) {
1518
- for (var _iterator7 = msg.newsFilters, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
1519
- var _ref7;
1538
+ for (var _iterator8 = msg.newsFilters, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) {
1539
+ var _ref8;
1520
1540
 
1521
- if (_isArray7) {
1522
- if (_i7 >= _iterator7.length) break;
1523
- _ref7 = _iterator7[_i7++];
1541
+ if (_isArray8) {
1542
+ if (_i8 >= _iterator8.length) break;
1543
+ _ref8 = _iterator8[_i8++];
1524
1544
  } else {
1525
- _i7 = _iterator7.next();
1526
- if (_i7.done) break;
1527
- _ref7 = _i7.value;
1545
+ _i8 = _iterator8.next();
1546
+ if (_i8.done) break;
1547
+ _ref8 = _i8.value;
1528
1548
  }
1529
1549
 
1530
- var newsFilter = _ref7;
1550
+ var newsFilter = _ref8;
1531
1551
 
1532
1552
  result.unsubscribed.push(newsFilter);
1533
1553
  }
@@ -2177,38 +2197,38 @@ exports["default"] = UShortId;
2177
2197
 
2178
2198
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2179
2199
 
2180
- /*
2181
- * Copyright 2015 Async-IO.org
2182
- *
2183
- * Licensed under the Apache License, Version 2.0 (the "License");
2184
- * you may not use this file except in compliance with the License.
2185
- * You may obtain a copy of the License at
2186
- *
2187
- * http://www.apache.org/licenses/LICENSE-2.0
2188
- *
2189
- * Unless required by applicable law or agreed to in writing, software
2190
- * distributed under the License is distributed on an "AS IS" BASIS,
2191
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2192
- * See the License for the specific language governing permissions and
2193
- * limitations under the License.
2200
+ /*
2201
+ * Copyright 2015 Async-IO.org
2202
+ *
2203
+ * Licensed under the Apache License, Version 2.0 (the "License");
2204
+ * you may not use this file except in compliance with the License.
2205
+ * You may obtain a copy of the License at
2206
+ *
2207
+ * http://www.apache.org/licenses/LICENSE-2.0
2208
+ *
2209
+ * Unless required by applicable law or agreed to in writing, software
2210
+ * distributed under the License is distributed on an "AS IS" BASIS,
2211
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2212
+ * See the License for the specific language governing permissions and
2213
+ * limitations under the License.
2194
2214
  */
2195
- /**
2196
- * Added binary message processing that reads from the blob.
2197
- * Tweaked implementation to support binary messages with streaming protocol:
2198
- * - edited message calculation logic to support multiple messages that could be read from stream at once
2199
- * without message size being pre-appended;
2200
- * - override mimetype to be able to retrieve original byte array;
2201
- * - don't trim string representation of binary messages.
2215
+ /**
2216
+ * Added binary message processing that reads from the blob.
2217
+ * Tweaked implementation to support binary messages with streaming protocol:
2218
+ * - edited message calculation logic to support multiple messages that could be read from stream at once
2219
+ * without message size being pre-appended;
2220
+ * - override mimetype to be able to retrieve original byte array;
2221
+ * - don't trim string representation of binary messages.
2202
2222
  */
2203
- /**
2204
- * Atmosphere.js
2205
- * https://github.com/Atmosphere/atmosphere-javascript
2206
- *
2207
- * API reference
2208
- * https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
2209
- *
2210
- * Highly inspired by
2211
- * - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
2223
+ /**
2224
+ * Atmosphere.js
2225
+ * https://github.com/Atmosphere/atmosphere-javascript
2226
+ *
2227
+ * API reference
2228
+ * https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
2229
+ *
2230
+ * Highly inspired by
2231
+ * - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
2212
2232
  */
2213
2233
  (function (root, factory) {
2214
2234
  if (typeof define === "function" && define.amd) {
@@ -2248,41 +2268,41 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2248
2268
  onClientTimeout: function onClientTimeout(request) {},
2249
2269
  onOpenAfterResume: function onOpenAfterResume(request) {},
2250
2270
 
2251
- /**
2252
- * Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
2253
- *
2254
- * @class WebsocketApiAdapter
2255
- * @param {Object} request the request object to build the underlying subscription
2256
- * @constructor
2271
+ /**
2272
+ * Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
2273
+ *
2274
+ * @class WebsocketApiAdapter
2275
+ * @param {Object} request the request object to build the underlying subscription
2276
+ * @constructor
2257
2277
  */
2258
2278
  WebsocketApiAdapter: function WebsocketApiAdapter(request) {
2259
2279
  var _socket, _adapter;
2260
2280
 
2261
- /**
2262
- * Overrides the onMessage callback in given request.
2263
- *
2264
- * @method onMessage
2265
- * @param {Object} e the event object
2281
+ /**
2282
+ * Overrides the onMessage callback in given request.
2283
+ *
2284
+ * @method onMessage
2285
+ * @param {Object} e the event object
2266
2286
  */
2267
2287
  request.onMessage = function (e) {
2268
2288
  _adapter.onmessage({ data: e.responseBody });
2269
2289
  };
2270
2290
 
2271
- /**
2272
- * Overrides the onMessagePublished callback in given request.
2273
- *
2274
- * @method onMessagePublished
2275
- * @param {Object} e the event object
2291
+ /**
2292
+ * Overrides the onMessagePublished callback in given request.
2293
+ *
2294
+ * @method onMessagePublished
2295
+ * @param {Object} e the event object
2276
2296
  */
2277
2297
  request.onMessagePublished = function (e) {
2278
2298
  _adapter.onmessage({ data: e.responseBody });
2279
2299
  };
2280
2300
 
2281
- /**
2282
- * Overrides the onOpen callback in given request to proxy the event to the adapter.
2283
- *
2284
- * @method onOpen
2285
- * @param {Object} e the event object
2301
+ /**
2302
+ * Overrides the onOpen callback in given request to proxy the event to the adapter.
2303
+ *
2304
+ * @method onOpen
2305
+ * @param {Object} e the event object
2286
2306
  */
2287
2307
  request.onOpen = function (e) {
2288
2308
  _adapter.onopen(e);
@@ -2312,10 +2332,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2312
2332
 
2313
2333
  AtmosphereRequest: function AtmosphereRequest(options) {
2314
2334
 
2315
- /**
2316
- * {Object} Request parameters.
2317
- *
2318
- * @private
2335
+ /**
2336
+ * {Object} Request parameters.
2337
+ *
2338
+ * @private
2319
2339
  */
2320
2340
  var _request = {
2321
2341
  timeout: 300000,
@@ -2380,10 +2400,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2380
2400
  onOpenAfterResume: function onOpenAfterResume(request) {}
2381
2401
  };
2382
2402
 
2383
- /**
2384
- * {Object} Request's last response.
2385
- *
2386
- * @private
2403
+ /**
2404
+ * {Object} Request's last response.
2405
+ *
2406
+ * @private
2387
2407
  */
2388
2408
  var _response = {
2389
2409
  status: 200,
@@ -2401,101 +2421,101 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2401
2421
  ffTryingReconnect: false
2402
2422
  };
2403
2423
 
2404
- /**
2405
- * {websocket} Opened web socket.
2406
- *
2407
- * @private
2424
+ /**
2425
+ * {websocket} Opened web socket.
2426
+ *
2427
+ * @private
2408
2428
  */
2409
2429
  var _websocket = null;
2410
2430
 
2411
- /**
2412
- * {SSE} Opened SSE.
2413
- *
2414
- * @private
2431
+ /**
2432
+ * {SSE} Opened SSE.
2433
+ *
2434
+ * @private
2415
2435
  */
2416
2436
  var _sse = null;
2417
2437
 
2418
- /**
2419
- * {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
2420
- *
2421
- * @private
2438
+ /**
2439
+ * {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
2440
+ *
2441
+ * @private
2422
2442
  */
2423
2443
  var _activeRequest = null;
2424
2444
 
2425
- /**
2426
- * {Object} Object use for streaming with IE.
2427
- *
2428
- * @private
2445
+ /**
2446
+ * {Object} Object use for streaming with IE.
2447
+ *
2448
+ * @private
2429
2449
  */
2430
2450
  var _ieStream = null;
2431
2451
 
2432
- /**
2433
- * {Object} Object use for jsonp transport.
2434
- *
2435
- * @private
2452
+ /**
2453
+ * {Object} Object use for jsonp transport.
2454
+ *
2455
+ * @private
2436
2456
  */
2437
2457
  var _jqxhr = null;
2438
2458
 
2439
- /**
2440
- * {boolean} If request has been subscribed or not.
2441
- *
2442
- * @private
2459
+ /**
2460
+ * {boolean} If request has been subscribed or not.
2461
+ *
2462
+ * @private
2443
2463
  */
2444
2464
  var _subscribed = true;
2445
2465
 
2446
- /**
2447
- * {number} Number of test reconnection.
2448
- *
2449
- * @private
2466
+ /**
2467
+ * {number} Number of test reconnection.
2468
+ *
2469
+ * @private
2450
2470
  */
2451
2471
  var _requestCount = 0;
2452
2472
 
2453
- /**
2454
- * The Heartbeat interval send by the server.
2455
- * @type {int}
2456
- * @private
2473
+ /**
2474
+ * The Heartbeat interval send by the server.
2475
+ * @type {int}
2476
+ * @private
2457
2477
  */
2458
2478
  var _heartbeatInterval = 0;
2459
2479
 
2460
- /**
2461
- * The Heartbeat bytes send by the server.
2462
- * @type {string}
2463
- * @private
2480
+ /**
2481
+ * The Heartbeat bytes send by the server.
2482
+ * @type {string}
2483
+ * @private
2464
2484
  */
2465
2485
  var _heartbeatPadding = 'X';
2466
2486
 
2467
- /**
2468
- * {boolean} If request is currently aborted.
2469
- *
2470
- * @private
2487
+ /**
2488
+ * {boolean} If request is currently aborted.
2489
+ *
2490
+ * @private
2471
2491
  */
2472
2492
  var _abortingConnection = false;
2473
2493
 
2474
- /**
2475
- * A local "channel' of communication.
2476
- *
2477
- * @private
2494
+ /**
2495
+ * A local "channel' of communication.
2496
+ *
2497
+ * @private
2478
2498
  */
2479
2499
  var _localSocketF = null;
2480
2500
 
2481
- /**
2482
- * The storage used.
2483
- *
2484
- * @private
2501
+ /**
2502
+ * The storage used.
2503
+ *
2504
+ * @private
2485
2505
  */
2486
2506
  var _storageService;
2487
2507
 
2488
- /**
2489
- * Local communication
2490
- *
2491
- * @private
2508
+ /**
2509
+ * Local communication
2510
+ *
2511
+ * @private
2492
2512
  */
2493
2513
  var _localStorageService = null;
2494
2514
 
2495
- /**
2496
- * A Unique ID
2497
- *
2498
- * @private
2515
+ /**
2516
+ * A Unique ID
2517
+ *
2518
+ * @private
2499
2519
  */
2500
2520
  var guid = atmosphere.util.now();
2501
2521
 
@@ -2505,21 +2525,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2505
2525
  /** Key for connection sharing */
2506
2526
  var _sharingKey;
2507
2527
 
2508
- /**
2509
- * {boolean} If window beforeUnload event has been called.
2510
- * Flag will be reset after 5000 ms
2511
- *
2512
- * @private
2528
+ /**
2529
+ * {boolean} If window beforeUnload event has been called.
2530
+ * Flag will be reset after 5000 ms
2531
+ *
2532
+ * @private
2513
2533
  */
2514
2534
  var _beforeUnloadState = false;
2515
2535
 
2516
2536
  // Automatic call to subscribe
2517
2537
  _subscribe(options);
2518
2538
 
2519
- /**
2520
- * Initialize atmosphere request object.
2521
- *
2522
- * @private
2539
+ /**
2540
+ * Initialize atmosphere request object.
2541
+ *
2542
+ * @private
2523
2543
  */
2524
2544
  function _init() {
2525
2545
  _subscribed = true;
@@ -2532,20 +2552,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2532
2552
  _ieStream = null;
2533
2553
  }
2534
2554
 
2535
- /**
2536
- * Re-initialize atmosphere object.
2537
- *
2538
- * @private
2555
+ /**
2556
+ * Re-initialize atmosphere object.
2557
+ *
2558
+ * @private
2539
2559
  */
2540
2560
  function _reinit() {
2541
2561
  _clearState();
2542
2562
  _init();
2543
2563
  }
2544
2564
 
2545
- /**
2546
- * Returns true if the given level is equal or above the configured log level.
2547
- *
2548
- * @private
2565
+ /**
2566
+ * Returns true if the given level is equal or above the configured log level.
2567
+ *
2568
+ * @private
2549
2569
  */
2550
2570
  function _canLog(level) {
2551
2571
  if (level == 'debug') {
@@ -2567,9 +2587,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2567
2587
  }
2568
2588
  }
2569
2589
 
2570
- /**
2571
- *
2572
- * @private
2590
+ /**
2591
+ *
2592
+ * @private
2573
2593
  */
2574
2594
  function _verifyStreamingLength(ajaxRequest, rq) {
2575
2595
  // Wait to be sure we have the full message before closing.
@@ -2579,10 +2599,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2579
2599
  return false;
2580
2600
  }
2581
2601
 
2582
- /**
2583
- * Disconnect
2584
- *
2585
- * @private
2602
+ /**
2603
+ * Disconnect
2604
+ *
2605
+ * @private
2586
2606
  */
2587
2607
  function _disconnect() {
2588
2608
  if (_request.enableProtocol && !_request.disableDisconnect && !_request.firstMessage) {
@@ -2619,10 +2639,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2619
2639
  }
2620
2640
  }
2621
2641
 
2622
- /**
2623
- * Close request.
2624
- *
2625
- * @private
2642
+ /**
2643
+ * Close request.
2644
+ *
2645
+ * @private
2626
2646
  */
2627
2647
  function _close() {
2628
2648
  _debug("Closing (AtmosphereRequest._close() called)");
@@ -2709,12 +2729,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2709
2729
  }
2710
2730
  }
2711
2731
 
2712
- /**
2713
- * Subscribe request using request transport. <br>
2714
- * If request is currently opened, this one will be closed.
2715
- *
2716
- * @param {Object} Request parameters.
2717
- * @private
2732
+ /**
2733
+ * Subscribe request using request transport. <br>
2734
+ * If request is currently opened, this one will be closed.
2735
+ *
2736
+ * @param {Object} Request parameters.
2737
+ * @private
2718
2738
  */
2719
2739
  function _subscribe(options) {
2720
2740
  _reinit();
@@ -2727,21 +2747,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2727
2747
  }
2728
2748
  }
2729
2749
 
2730
- /**
2731
- * Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
2732
- *
2733
- * @returns {boolean} True if web socket is supported, false otherwise.
2734
- * @private
2750
+ /**
2751
+ * Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
2752
+ *
2753
+ * @returns {boolean} True if web socket is supported, false otherwise.
2754
+ * @private
2735
2755
  */
2736
2756
  function _supportWebsocket() {
2737
2757
  return _request.webSocketImpl != null || window.WebSocket || window.MozWebSocket;
2738
2758
  }
2739
2759
 
2740
- /**
2741
- * Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
2742
- *
2743
- * @returns {boolean} True if web socket is supported, false otherwise.
2744
- * @private
2760
+ /**
2761
+ * Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
2762
+ *
2763
+ * @returns {boolean} True if web socket is supported, false otherwise.
2764
+ * @private
2745
2765
  */
2746
2766
  function _supportSSE() {
2747
2767
  // Origin parts
@@ -2757,11 +2777,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2757
2777
  return window.EventSource && (!crossOrigin || !atmosphere.util.browser.safari || atmosphere.util.browser.vmajor >= 7);
2758
2778
  }
2759
2779
 
2760
- /**
2761
- * Open request using request transport. <br>
2762
- * If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
2763
- *
2764
- * @private
2780
+ /**
2781
+ * Open request using request transport. <br>
2782
+ * If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
2783
+ *
2784
+ * @private
2765
2785
  */
2766
2786
  function _execute() {
2767
2787
  // Shared across multiple tabs/windows.
@@ -3175,8 +3195,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3175
3195
  _storageService = storageService;
3176
3196
  }
3177
3197
 
3178
- /**
3179
- * @private
3198
+ /**
3199
+ * @private
3180
3200
  */
3181
3201
  function _open(state, transport, request) {
3182
3202
  if (_request.shared && transport !== 'local') {
@@ -3210,11 +3230,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3210
3230
  }
3211
3231
  }
3212
3232
 
3213
- /**
3214
- * Execute request using jsonp transport.
3215
- *
3216
- * @param request {Object} request Request parameters, if undefined _request object will be used.
3217
- * @private
3233
+ /**
3234
+ * Execute request using jsonp transport.
3235
+ *
3236
+ * @param request {Object} request Request parameters, if undefined _request object will be used.
3237
+ * @private
3218
3238
  */
3219
3239
  function _jsonp(request) {
3220
3240
  // When CORS is enabled, make sure we force the proper transport.
@@ -3344,12 +3364,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3344
3364
  _jqxhr.open();
3345
3365
  }
3346
3366
 
3347
- /**
3348
- * Build websocket object.
3349
- *
3350
- * @param location {string} Web socket url.
3351
- * @returns {websocket} Web socket object.
3352
- * @private
3367
+ /**
3368
+ * Build websocket object.
3369
+ *
3370
+ * @param location {string} Web socket url.
3371
+ * @returns {websocket} Web socket object.
3372
+ * @private
3353
3373
  */
3354
3374
  function _getWebSocket(location) {
3355
3375
  if (_request.webSocketImpl != null) {
@@ -3365,32 +3385,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3365
3385
  }
3366
3386
  }
3367
3387
 
3368
- /**
3369
- * Build web socket url from request url.
3370
- *
3371
- * @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
3372
- * @private
3388
+ /**
3389
+ * Build web socket url from request url.
3390
+ *
3391
+ * @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
3392
+ * @private
3373
3393
  */
3374
3394
  function _buildWebSocketUrl() {
3375
3395
  return _attachHeaders(_request, atmosphere.util.getAbsoluteURL(_request.webSocketUrl || _request.url)).replace(/^http/, "ws");
3376
3396
  }
3377
3397
 
3378
- /**
3379
- * Build SSE url from request url.
3380
- *
3381
- * @return a url with Atmosphere's headers
3382
- * @private
3398
+ /**
3399
+ * Build SSE url from request url.
3400
+ *
3401
+ * @return a url with Atmosphere's headers
3402
+ * @private
3383
3403
  */
3384
3404
  function _buildSSEUrl() {
3385
3405
  var url = _attachHeaders(_request);
3386
3406
  return url;
3387
3407
  }
3388
3408
 
3389
- /**
3390
- * Open SSE. <br>
3391
- * Automatically use fallback transport if SSE can't be opened.
3392
- *
3393
- * @private
3409
+ /**
3410
+ * Open SSE. <br>
3411
+ * Automatically use fallback transport if SSE can't be opened.
3412
+ *
3413
+ * @private
3394
3414
  */
3395
3415
  function _executeSSE(sseOpened) {
3396
3416
 
@@ -3471,9 +3491,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3471
3491
 
3472
3492
  // https://github.com/remy/polyfills/blob/master/EventSource.js
3473
3493
  // Since we polling.
3474
- /* if (_sse.URL) {
3475
- _sse.interval = 100;
3476
- _sse.URL = _buildSSEUrl();
3494
+ /* if (_sse.URL) {
3495
+ _sse.interval = 100;
3496
+ _sse.URL = _buildSSEUrl();
3477
3497
  } */
3478
3498
 
3479
3499
  if (!skipCallbackInvocation) {
@@ -3522,11 +3542,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3522
3542
  };
3523
3543
  }
3524
3544
 
3525
- /**
3526
- * Open web socket. <br>
3527
- * Automatically use fallback transport if web socket can't be opened.
3528
- *
3529
- * @private
3545
+ /**
3546
+ * Open web socket. <br>
3547
+ * Automatically use fallback transport if web socket can't be opened.
3548
+ *
3549
+ * @private
3530
3550
  */
3531
3551
  function _executeWebSocket(webSocketOpened) {
3532
3552
 
@@ -3866,12 +3886,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3866
3886
  _invokeCallback();
3867
3887
  }
3868
3888
 
3869
- /**
3870
- * Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
3871
- *
3872
- * @param message
3873
- * @param request
3874
- * @param response
3889
+ /**
3890
+ * Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
3891
+ *
3892
+ * @param message
3893
+ * @param request
3894
+ * @param response
3875
3895
  */
3876
3896
  function _trackMessageSize(message, request, response) {
3877
3897
  // skip message tracking for binary messages
@@ -3930,11 +3950,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3930
3950
  return false;
3931
3951
  }
3932
3952
 
3933
- /**
3934
- * Reconnect request with fallback transport. <br>
3935
- * Used in case websocket can't be opened.
3936
- *
3937
- * @private
3953
+ /**
3954
+ * Reconnect request with fallback transport. <br>
3955
+ * Used in case websocket can't be opened.
3956
+ *
3957
+ * @private
3938
3958
  */
3939
3959
  function _reconnectWithFallbackTransport(errorMessage) {
3940
3960
  atmosphere.util.log(_request.logLevel, [errorMessage]);
@@ -3963,13 +3983,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3963
3983
  }
3964
3984
  }
3965
3985
 
3966
- /**
3967
- * Get url from request and attach headers to it.
3968
- *
3969
- * @param request {Object} request Request parameters, if undefined _request object will be used.
3970
- *
3971
- * @returns {Object} Request object, if undefined, _request object will be used.
3972
- * @private
3986
+ /**
3987
+ * Get url from request and attach headers to it.
3988
+ *
3989
+ * @param request {Object} request Request parameters, if undefined _request object will be used.
3990
+ *
3991
+ * @returns {Object} Request object, if undefined, _request object will be used.
3992
+ * @private
3973
3993
  */
3974
3994
  function _attachHeaders(request, url) {
3975
3995
  var rq = _request;
@@ -4054,11 +4074,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4054
4074
  }
4055
4075
  }
4056
4076
 
4057
- /**
4058
- * Execute ajax request. <br>
4059
- *
4060
- * @param request {Object} request Request parameters, if undefined _request object will be used.
4061
- * @private
4077
+ /**
4078
+ * Execute ajax request. <br>
4079
+ *
4080
+ * @param request {Object} request Request parameters, if undefined _request object will be used.
4081
+ * @private
4062
4082
  */
4063
4083
  function _executeRequest(request) {
4064
4084
  var rq = _request;
@@ -4351,12 +4371,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4351
4371
  _reconnect(ajaxRequest, rq, 500);
4352
4372
  }
4353
4373
 
4354
- /**
4355
- * Do ajax request.
4356
- *
4357
- * @param ajaxRequest Ajax request.
4358
- * @param request Request parameters.
4359
- * @param create If ajax request has to be open.
4374
+ /**
4375
+ * Do ajax request.
4376
+ *
4377
+ * @param ajaxRequest Ajax request.
4378
+ * @param request Request parameters.
4379
+ * @param create If ajax request has to be open.
4360
4380
  */
4361
4381
  function _doRequest(ajaxRequest, request, create) {
4362
4382
  // Prevent Android to cache request
@@ -4733,12 +4753,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4733
4753
  };
4734
4754
  }
4735
4755
 
4736
- /**
4737
- * Send message. <br>
4738
- * Will be automatically dispatch to other connected.
4739
- *
4740
- * @param {Object, string} Message to send.
4741
- * @private
4756
+ /**
4757
+ * Send message. <br>
4758
+ * Will be automatically dispatch to other connected.
4759
+ *
4760
+ * @param {Object, string} Message to send.
4761
+ * @private
4742
4762
  */
4743
4763
  function _push(message) {
4744
4764
 
@@ -4794,22 +4814,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4794
4814
  }
4795
4815
  }
4796
4816
 
4797
- /**
4798
- * Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
4799
- *
4800
- * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4801
- * @private
4817
+ /**
4818
+ * Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
4819
+ *
4820
+ * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4821
+ * @private
4802
4822
  */
4803
4823
  function _pushAjaxMessage(message) {
4804
4824
  var rq = _getPushRequest(message);
4805
4825
  _executeRequest(rq);
4806
4826
  }
4807
4827
 
4808
- /**
4809
- * Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
4810
- *
4811
- * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4812
- * @private
4828
+ /**
4829
+ * Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
4830
+ *
4831
+ * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4832
+ * @private
4813
4833
  */
4814
4834
  function _pushIE(message) {
4815
4835
  if (_request.enableXDR && atmosphere.util.checkCORSSupport()) {
@@ -4822,11 +4842,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4822
4842
  }
4823
4843
  }
4824
4844
 
4825
- /**
4826
- * Send a message using jsonp transport. <br>
4827
- *
4828
- * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4829
- * @private
4845
+ /**
4846
+ * Send a message using jsonp transport. <br>
4847
+ *
4848
+ * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4849
+ * @private
4830
4850
  */
4831
4851
  function _pushJsonp(message) {
4832
4852
  _pushAjaxMessage(message);
@@ -4840,11 +4860,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4840
4860
  return msg;
4841
4861
  }
4842
4862
 
4843
- /**
4844
- * Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
4845
- *
4846
- * @return {Object} Request object use to push message.
4847
- * @private
4863
+ /**
4864
+ * Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
4865
+ *
4866
+ * @return {Object} Request object use to push message.
4867
+ * @private
4848
4868
  */
4849
4869
  function _getPushRequest(message) {
4850
4870
  var msg = _getStringMessage(message);
@@ -4886,9 +4906,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4886
4906
  return rq;
4887
4907
  }
4888
4908
 
4889
- /**
4890
- * Send a message using currently opened websocket. <br>
4891
- *
4909
+ /**
4910
+ * Send a message using currently opened websocket. <br>
4911
+ *
4892
4912
  */
4893
4913
  function _pushWebSocket(message) {
4894
4914
  var msg = atmosphere.util.isBinary(message) ? message : _getStringMessage(message);
@@ -5038,10 +5058,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5038
5058
  }
5039
5059
  }
5040
5060
 
5041
- /**
5042
- * Invoke request callbacks.
5043
- *
5044
- * @private
5061
+ /**
5062
+ * Invoke request callbacks.
5063
+ *
5064
+ * @private
5045
5065
  */
5046
5066
  function _invokeCallback() {
5047
5067
  var call = function call(index, func) {
@@ -5880,21 +5900,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
5880
5900
 
5881
5901
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
5882
5902
 
5883
- /*
5884
- Note: Usage of formatters can cause a potential performance penalty
5903
+ /*
5904
+ Note: Usage of formatters can cause a potential performance penalty
5885
5905
  */
5886
5906
 
5887
5907
  /* Keep synchronized with com.quotemedia.streamer.client.fmt.FmtMessage */
5888
5908
 
5889
5909
  var fmt = {};
5890
5910
 
5891
- /**
5892
- * Creates a new message formatter.
5893
- * @constructor
5911
+ /**
5912
+ * Creates a new message formatter.
5913
+ * @constructor
5894
5914
  */
5895
5915
  fmt.Formatter = function () {
5896
- /**
5897
- * Formatters by message type.
5916
+ /**
5917
+ * Formatters by message type.
5898
5918
  */
5899
5919
  this.formatters = {};
5900
5920
  this.formatters[fmt.Formatter._UNKOWNTYPE] = this._fmtunknown;
@@ -5951,6 +5971,8 @@ fmt.Formatter = function () {
5951
5971
  this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSCMDFILTER] = this._fmtnewscmdfilter;
5952
5972
  this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSERROR] = this._fmtnewserror;
5953
5973
  this.formatters[_streamerApi.messages.MessageTypeNames.data.DIVIDEND] = this._fmtdividend;
5974
+ this.formatters[_streamerApi.messages.MessageTypeNames.data.EARNINGS] = this._fmtearnings;
5975
+ this.formatters[_streamerApi.messages.MessageTypeNames.data.SPLIT] = this._fmtsplit;
5954
5976
  };
5955
5977
 
5956
5978
  fmt.Formatter._UNKOWNTYPE = '__UNKNOWN__';
@@ -6058,6 +6080,8 @@ fmt.Formatter.prototype._fmtpricedata = function (val) {
6058
6080
  s.sep();
6059
6081
  s.append(val.vwap);
6060
6082
  s.sep();
6083
+ s.append(val.vwapVolume);
6084
+ s.sep();
6061
6085
  s.datetime(val.preMarketTradeTime);
6062
6086
  s.sep();
6063
6087
  s.append(val.preMarketLast);
@@ -6533,6 +6557,8 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
6533
6557
  s.append(val.message);
6534
6558
  s.sep();
6535
6559
  s.append(val.eventType);
6560
+ s.sep();
6561
+ s.append(val.alertable);
6536
6562
 
6537
6563
  return s.toString();
6538
6564
  };
@@ -6595,6 +6621,8 @@ fmt.Formatter.prototype._fmtdividend = function (val) {
6595
6621
  s.sep();
6596
6622
  s.append(val.symbolId);
6597
6623
  s.sep();
6624
+ s.append(val.symbol);
6625
+ s.sep();
6598
6626
  s.append(val.instrument);
6599
6627
  s.sep();
6600
6628
  s.datetime(val.declarationDate);
@@ -6614,6 +6642,58 @@ fmt.Formatter.prototype._fmtdividend = function (val) {
6614
6642
  return s.toString();
6615
6643
  };
6616
6644
 
6645
+ fmt.Formatter.prototype._fmtearnings = function (val) {
6646
+ var s = new fmt.StringBuilder();
6647
+ s.append("ERN");
6648
+ s.sep();
6649
+ s.datetime(val.occuredOn);
6650
+ s.sep();
6651
+ s.append(val.symbolId);
6652
+ s.sep();
6653
+ s.append(val.symbol);
6654
+ s.sep();
6655
+ s.append(val.fiscalYear);
6656
+ s.sep();
6657
+ s.append(val.quarter);
6658
+ s.sep();
6659
+ s.append(val.earningsPerShare);
6660
+ s.sep();
6661
+ s.datetime(val.announcementDate);
6662
+ s.sep();
6663
+ s.append(val.announcementTimeOfDay);
6664
+ s.sep();
6665
+ s.append(val.announcementUrl);
6666
+
6667
+ return s.toString();
6668
+ };
6669
+
6670
+ fmt.Formatter.prototype._fmtsplit = function (val) {
6671
+ var s = new fmt.StringBuilder();
6672
+ s.append("SPLT");
6673
+ s.sep();
6674
+ s.datetime(val.occuredOn);
6675
+ s.sep();
6676
+ s.append(val.symbolId);
6677
+ s.sep();
6678
+ s.append(val.symbol);
6679
+ s.sep();
6680
+ s.datetime(val.executionDate);
6681
+ s.sep();
6682
+ s.datetime(val.declarationDate);
6683
+ s.sep();
6684
+ s.datetime(val.recordDate);
6685
+ s.sep();
6686
+ s.datetime(val.paymentDate);
6687
+ s.sep();
6688
+ s.append(val.ratio);
6689
+ s.sep();
6690
+ s.append(val.ratioNumerator);
6691
+ s.sep();
6692
+ s.append(val.ratioDenominator);
6693
+
6694
+ return s.toString();
6695
+ };
6696
+
6617
6697
  fmt.Formatter.prototype._fmtheartbeat = function (val) {
6618
6698
  var s = new fmt.StringBuilder();
6619
6699
  s.append("HEARBEAT");
@@ -6901,9 +6981,9 @@ fmt.Formatter.prototype._fmtmisseddatasent = function (val) {
6901
6981
  return s.toString();
6902
6982
  };
6903
6983
 
6904
- /**
6905
- * Create a new sting builder.
6906
- * @constructor
6984
+ /**
6985
+ * Create a new sting builder.
6986
+ * @constructor
6907
6987
  */
6908
6988
  fmt.StringBuilder = function () {
6909
6989
  this._str = '';
@@ -7164,16 +7244,16 @@ function asLogger(logger) {
7164
7244
  exports.__esModule = true;
7165
7245
  /* @see http://usejsdoc.org */
7166
7246
 
7167
- /**
7168
- * Streamer api namespace.
7169
- * @namespace
7247
+ /**
7248
+ * Streamer api namespace.
7249
+ * @namespace
7170
7250
  */
7171
7251
 
7172
7252
  /* ****************************************************************************************************************** */
7173
7253
 
7174
- /**
7175
- * Supported encodings.
7176
- * @enum
7254
+ /**
7255
+ * Supported encodings.
7256
+ * @enum
7177
7257
  */
7178
7258
  var Encodings = exports.Encodings = {
7179
7259
  UNDEFINED: "undefined",
@@ -7186,9 +7266,9 @@ var Encodings = exports.Encodings = {
7186
7266
  BASE64_CHAR: "B"
7187
7267
  };
7188
7268
 
7189
- /**
7190
- * Supported mime types.
7191
- * @enum
7269
+ /**
7270
+ * Supported mime types.
7271
+ * @enum
7192
7272
  */
7193
7273
  var MimeTypes = exports.MimeTypes = {
7194
7274
  UNDEFINED: "undefined",
@@ -7204,12 +7284,12 @@ var MimeTypes = exports.MimeTypes = {
7204
7284
  QITCH_CHAR: "I"
7205
7285
  };
7206
7286
 
7207
- /**
7208
- * Returns the with '0' left padded string representation of the number.
7209
- * @param num {number} the number to create string for
7210
- * @param len {number} the target length of the string
7211
- * @return {string} the with '0' left padded string
7212
- * @throws Will throw an error if number doesn't fit within target length
7287
+ /**
7288
+ * Returns the with '0' left padded string representation of the number.
7289
+ * @param num {number} the number to create string for
7290
+ * @param len {number} the target length of the string
7291
+ * @return {string} the with '0' left padded string
7292
+ * @throws Will throw an error if number doesn't fit within target length
7213
7293
  */
7214
7294
  var lpad = exports.lpad = function lpad(num, len) {
7215
7295
  var _numstr = num.toString();
@@ -7535,13 +7615,13 @@ var BIG_INT_FORTY = _jsbi2["default"].BigInt(40);
7535
7615
  var BIG_INT_FORTY_EIGHT = _jsbi2["default"].BigInt(48);
7536
7616
  var BIG_INT_FIFTY_SIX = _jsbi2["default"].BigInt(56);
7537
7617
 
7538
- /*
7539
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
7618
+ /*
7619
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
7540
7620
  */
7541
- /**
7542
- * Translates bytes into numbers and vice versa.
7543
- * Use multiplication instead of shifts because in javascript shifts are slower than multiplication
7544
- * (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
7621
+ /**
7622
+ * Translates bytes into numbers and vice versa.
7623
+ * Use multiplication instead of shifts because in javascript shifts are slower than multiplication
7624
+ * (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
7545
7625
  */
7546
7626
 
7547
7627
  var Bytes = function () {
@@ -7555,11 +7635,11 @@ var Bytes = function () {
7555
7635
  return dst;
7556
7636
  };
7557
7637
 
7558
- /**
7559
- * Gets numeric value that is in range of short (Int16) from byte array
7560
- * @param src The source array
7561
- * @param offset The offset
7562
- * @returns {number} Resulting short value
7638
+ /**
7639
+ * Gets numeric value that is in range of short (Int16) from byte array
7640
+ * @param src The source array
7641
+ * @param offset The offset
7642
+ * @returns {number} Resulting short value
7563
7643
  */
7564
7644
 
7565
7645
 
@@ -7576,11 +7656,11 @@ var Bytes = function () {
7576
7656
  return dst;
7577
7657
  };
7578
7658
 
7579
- /**
7580
- * Gets numeric value that is in range of integer (Int32) from byte array
7581
- * @param src The source array
7582
- * @param offset The offset
7583
- * @returns {number} Resulting int value
7659
+ /**
7660
+ * Gets numeric value that is in range of integer (Int32) from byte array
7661
+ * @param src The source array
7662
+ * @param offset The offset
7663
+ * @returns {number} Resulting int value
7584
7664
  */
7585
7665
 
7586
7666
 
@@ -7591,11 +7671,11 @@ var Bytes = function () {
7591
7671
  src[offset + 3] & 0xff;
7592
7672
  };
7593
7673
 
7594
- /**
7595
- * Gets numeric value that is in range of long (Int64) from byte array.
7596
- * @param src The source array
7597
- * @param offset The offset
7598
- * @returns {JSBI} Resulting string representation of long.
7674
+ /**
7675
+ * Gets numeric value that is in range of long (Int64) from byte array.
7676
+ * @param src The source array
7677
+ * @param offset The offset
7678
+ * @returns {JSBI} Resulting string representation of long.
7599
7679
  */
7600
7680
 
7601
7681
 
@@ -7637,8 +7717,8 @@ var UShort = function () {
7637
7717
  return UShort;
7638
7718
  }();
7639
7719
 
7640
- /**
7641
- * Length in bytes
7720
+ /**
7721
+ * Length in bytes
7642
7722
  */
7643
7723
 
7644
7724
 
@@ -7668,8 +7748,8 @@ var UByte = function () {
7668
7748
  return UByte;
7669
7749
  }();
7670
7750
 
7671
- /**
7672
- * Length in bytes
7751
+ /**
7752
+ * Length in bytes
7673
7753
  */
7674
7754
 
7675
7755
 
@@ -7699,8 +7779,8 @@ var UInt = function () {
7699
7779
  return UInt;
7700
7780
  }();
7701
7781
 
7702
- /**
7703
- * Length in bytes
7782
+ /**
7783
+ * Length in bytes
7704
7784
  */
7705
7785
 
7706
7786
 
@@ -7946,24 +8026,24 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
7946
8026
 
7947
8027
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7948
8028
 
7949
- /*
7950
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
8029
+ /*
8030
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
7951
8031
  */
7952
8032
  var Qitch = function () {
7953
8033
  function Qitch() {
7954
8034
  _classCallCheck(this, Qitch);
7955
8035
  }
7956
8036
 
7957
- /**
7958
- * Copies an array from the specified source array, beginning at sourceIndex,
7959
- * to the specified position of the destination array.
7960
- * The number of components copied is equal to the length argument. The elements are copied
7961
- * into a destination array starting from destinationIndex.
7962
- * @param sourceArray The source array
7963
- * @param sourceIndex The starting position in the source array.
7964
- * @param destinationArray The destination array
7965
- * @param destinationIndex The starting position in the destination array.
7966
- * @param length The number of array elements to be copied.
8037
+ /**
8038
+ * Copies an array from the specified source array, beginning at sourceIndex,
8039
+ * to the specified position of the destination array.
8040
+ * The number of components copied is equal to the length argument. The elements are copied
8041
+ * into a destination array starting from destinationIndex.
8042
+ * @param sourceArray The source array
8043
+ * @param sourceIndex The starting position in the source array.
8044
+ * @param destinationArray The destination array
8045
+ * @param destinationIndex The starting position in the destination array.
8046
+ * @param length The number of array elements to be copied.
7967
8047
  */
7968
8048
  Qitch.copyArray = function copyArray(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {
7969
8049
  if (length === 0) {
@@ -7990,12 +8070,12 @@ var Qitch = function () {
7990
8070
  }
7991
8071
  };
7992
8072
 
7993
- /**
7994
- * Gets boolean value from source byte array at specified position.
7995
- * @param src The source array.
7996
- * @param offset The offset.
7997
- * @returns {boolean} Returns obtained value.
7998
- * @throws Exception in case if src is not {@link Int8Array}
8073
+ /**
8074
+ * Gets boolean value from source byte array at specified position.
8075
+ * @param src The source array.
8076
+ * @param offset The offset.
8077
+ * @returns {boolean} Returns obtained value.
8078
+ * @throws Exception in case if src is not {@link Int8Array}
7999
8079
  */
8000
8080
 
8001
8081
 
@@ -8006,13 +8086,13 @@ var Qitch = function () {
8006
8086
  throw "Invalid source. Expected: Int8Array";
8007
8087
  };
8008
8088
 
8009
- /**
8010
- * Puts boolean value into destination array.
8011
- * @param dst The destination array
8012
- * @param offset The offset.
8013
- * @param val Boolean value.
8014
- * @returns {Int8Array} destination array.
8015
- * @throws Exception in case if dst is not {@link Int8Array}
8089
+ /**
8090
+ * Puts boolean value into destination array.
8091
+ * @param dst The destination array
8092
+ * @param offset The offset.
8093
+ * @param val Boolean value.
8094
+ * @returns {Int8Array} destination array.
8095
+ * @throws Exception in case if dst is not {@link Int8Array}
8016
8096
  */
8017
8097
 
8018
8098
 
@@ -8024,13 +8104,13 @@ var Qitch = function () {
8024
8104
  throw "Invalid destination. Expected: Int8Array";
8025
8105
  };
8026
8106
 
8027
- /**
8028
- * Puts byte value into destination array.
8029
- * @param dst The destination array
8030
- * @param offset The offset.
8031
- * @param val Byte value.
8032
- * @returns {Int8Array} destination array.
8033
- * @throws Exception in case if dst is not {@link Int8Array}
8107
+ /**
8108
+ * Puts byte value into destination array.
8109
+ * @param dst The destination array
8110
+ * @param offset The offset.
8111
+ * @param val Byte value.
8112
+ * @returns {Int8Array} destination array.
8113
+ * @throws Exception in case if dst is not {@link Int8Array}
8034
8114
  */
8035
8115
 
8036
8116
 
@@ -8042,12 +8122,12 @@ var Qitch = function () {
8042
8122
  throw "Invalid destination. Expected: Int8Array";
8043
8123
  };
8044
8124
 
8045
- /**
8046
- * Gets integer (int32) value from source byte array at specified position.
8047
- * @param src The source array.
8048
- * @param offset The offset.
8049
- * @returns {number} Returns obtained value.
8050
- * @throws Exception in case if src is not {@link Int8Array}
8125
+ /**
8126
+ * Gets integer (int32) value from source byte array at specified position.
8127
+ * @param src The source array.
8128
+ * @param offset The offset.
8129
+ * @returns {number} Returns obtained value.
8130
+ * @throws Exception in case if src is not {@link Int8Array}
8051
8131
  */
8052
8132
 
8053
8133
 
@@ -8058,13 +8138,13 @@ var Qitch = function () {
8058
8138
  throw "Invalid source. Expected: Int8Array";
8059
8139
  };
8060
8140
 
8061
- /**
8062
- * Sets integer (int32) value to destination array
8063
- * @param dst destination array
8064
- * @param offset offset
8065
- * @param val integer value
8066
- * @returns {Int8Array} destination array.
8067
- * @throws Exception in case if dst is not {@link Int8Array}
8141
+ /**
8142
+ * Sets integer (int32) value to destination array
8143
+ * @param dst destination array
8144
+ * @param offset offset
8145
+ * @param val integer value
8146
+ * @returns {Int8Array} destination array.
8147
+ * @throws Exception in case if dst is not {@link Int8Array}
8068
8148
  */
8069
8149
 
8070
8150
 
@@ -8075,12 +8155,12 @@ var Qitch = function () {
8075
8155
  throw "Invalid destination. Expected: Int8Array";
8076
8156
  };
8077
8157
 
8078
- /**
8079
- * Gets unsigned integer (uint32) value from source byte array at specified position.
8080
- * @param src The source array.
8081
- * @param offset The offset.
8082
- * @returns {number} Returns obtained value.
8083
- * @throws Exception in case if src is not {@link Int8Array}
8158
+ /**
8159
+ * Gets unsigned integer (uint32) value from source byte array at specified position.
8160
+ * @param src The source array.
8161
+ * @param offset The offset.
8162
+ * @returns {number} Returns obtained value.
8163
+ * @throws Exception in case if src is not {@link Int8Array}
8084
8164
  */
8085
8165
 
8086
8166
 
@@ -8091,13 +8171,13 @@ var Qitch = function () {
8091
8171
  throw "Invalid source. Expected: Int8Array";
8092
8172
  };
8093
8173
 
8094
- /**
8095
- * Sets unsigned integer (uint32) value to destination array
8096
- * @param dst destination array
8097
- * @param offset offset
8098
- * @param val unsigned integer value
8099
- * @returns {Int8Array} destination array.
8100
- * @throws Exception in case if dst is not {@link Int8Array}
8174
+ /**
8175
+ * Sets unsigned integer (uint32) value to destination array
8176
+ * @param dst destination array
8177
+ * @param offset offset
8178
+ * @param val unsigned integer value
8179
+ * @returns {Int8Array} destination array.
8180
+ * @throws Exception in case if dst is not {@link Int8Array}
8101
8181
  */
8102
8182
 
8103
8183
 
@@ -8108,13 +8188,13 @@ var Qitch = function () {
8108
8188
  throw "Invalid destination. Expected: Int8Array";
8109
8189
  };
8110
8190
 
8111
- /**
8112
- * Gets single character from source byte array at specified position.
8113
- * @param src The source array.
8114
- * @param offset The offset.
8115
- * @returns {null|String} Returns null if offset is out of array index range or
8116
- * value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
8117
- * @throws Exception in case if src is not {@link Int8Array}
8191
+ /**
8192
+ * Gets single character from source byte array at specified position.
8193
+ * @param src The source array.
8194
+ * @param offset The offset.
8195
+ * @returns {null|String} Returns null if offset is out of array index range or
8196
+ * value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
8197
+ * @throws Exception in case if src is not {@link Int8Array}
8118
8198
  */
8119
8199
 
8120
8200
 
@@ -8129,13 +8209,13 @@ var Qitch = function () {
8129
8209
  throw "Invalid source. Expected: Int8Array";
8130
8210
  };
8131
8211
 
8132
- /**
8133
- * Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
8134
- * it is returned as {@link JSBI.BigInt}.
8135
- * @param src The source array.
8136
- * @param offset The offset.
8137
- * @returns {JSBI} Returns obtained value.
8138
- * @throws Exception in case if src is not {@link Int8Array}
8212
+ /**
8213
+ * Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
8214
+ * it is returned as {@link JSBI.BigInt}.
8215
+ * @param src The source array.
8216
+ * @param offset The offset.
8217
+ * @returns {JSBI} Returns obtained value.
8218
+ * @throws Exception in case if src is not {@link Int8Array}
8139
8219
  */
8140
8220
 
8141
8221
 
@@ -8146,14 +8226,14 @@ var Qitch = function () {
8146
8226
  throw "Invalid source. Expected: Int8Array";
8147
8227
  };
8148
8228
 
8149
- /**
8150
- * Gets double value from byte source array at specified position.
8151
- * In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
8152
- * doesn't support long values, the result is returned as {@link BigNumber}.
8153
- * @param src The source array.
8154
- * @param offset The offset.
8155
- * @returns {BigNumber} Returns obtained value.
8156
- * @throws Exception in case if src is not {@link Int8Array}
8229
+ /**
8230
+ * Gets double value from byte source array at specified position.
8231
+ * In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
8232
+ * doesn't support long values, the result is returned as {@link BigNumber}.
8233
+ * @param src The source array.
8234
+ * @param offset The offset.
8235
+ * @returns {BigNumber} Returns obtained value.
8236
+ * @throws Exception in case if src is not {@link Int8Array}
8157
8237
  */
8158
8238
 
8159
8239
 
@@ -8164,12 +8244,12 @@ var Qitch = function () {
8164
8244
  throw "Invalid source. Expected: Int8Array";
8165
8245
  };
8166
8246
 
8167
- /**
8168
- * Gets signed byte from source byte array at specified position.
8169
- * @param src The source array.
8170
- * @param offset The offset.
8171
- * @returns {number} Returns obtained value.
8172
- * @throws Exception in case if src is not {@link Int8Array}
8247
+ /**
8248
+ * Gets signed byte from source byte array at specified position.
8249
+ * @param src The source array.
8250
+ * @param offset The offset.
8251
+ * @returns {number} Returns obtained value.
8252
+ * @throws Exception in case if src is not {@link Int8Array}
8173
8253
  */
8174
8254
 
8175
8255
 
@@ -8180,14 +8260,14 @@ var Qitch = function () {
8180
8260
  throw "Invalid source. Expected: Int8Array";
8181
8261
  };
8182
8262
 
8183
- /**
8184
- * Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
8185
- * it is returned as {@link JSBI.BigInt}
8186
- * @param src The source array.
8187
- * @param offset The offset.
8188
- * @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
8189
- * otherwise returns the obtained value.
8190
- * @throws Exception in case if src is not {@link Int8Array}
8263
+ /**
8264
+ * Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
8265
+ * it is returned as {@link JSBI.BigInt}
8266
+ * @param src The source array.
8267
+ * @param offset The offset.
8268
+ * @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
8269
+ * otherwise returns the obtained value.
8270
+ * @throws Exception in case if src is not {@link Int8Array}
8191
8271
  */
8192
8272
 
8193
8273
 
@@ -8199,12 +8279,12 @@ var Qitch = function () {
8199
8279
  throw "Invalid source. Expected: Int8Array";
8200
8280
  };
8201
8281
 
8202
- /**
8203
- * Gets locate code value from source byte array at specified offset.
8204
- * @param src The source array.
8205
- * @param offset The offset.
8206
- * @returns {number} Returns obtained value.
8207
- * @throws Exception in case if src is not {@link Int8Array}
8282
+ /**
8283
+ * Gets locate code value from source byte array at specified offset.
8284
+ * @param src The source array.
8285
+ * @param offset The offset.
8286
+ * @returns {number} Returns obtained value.
8287
+ * @throws Exception in case if src is not {@link Int8Array}
8208
8288
  */
8209
8289
 
8210
8290
 
@@ -8215,13 +8295,13 @@ var Qitch = function () {
8215
8295
  throw "Invalid source. Expected: Int8Array";
8216
8296
  };
8217
8297
 
8218
- /**
8219
- * Gets symbol value from source byte array at specified offset.
8220
- * @param src The source array.
8221
- * @param offset The offset.
8222
- * @returns {null|String} Returns null in case if specified offset is too big (offset + symbol length in bytes is bigger than length of source array),
8223
- * otherwise returns obtained value.
8224
- * @throws Exception in case if src is not {@link Int8Array}
8298
+ /**
8299
+ * Gets symbol value from source byte array at specified offset.
8300
+ * @param src The source array.
8301
+ * @param offset The offset.
8302
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + symbol length in bytes is bigger than length of source array),
8303
+ * otherwise returns obtained value.
8304
+ * @throws Exception in case if src is not {@link Int8Array}
8225
8305
  */
8226
8306
 
8227
8307
 
@@ -8235,13 +8315,13 @@ var Qitch = function () {
8235
8315
  throw "Invalid source. Expected: Int8Array";
8236
8316
  };
8237
8317
 
8238
- /**
8239
- * Puts symbol value into destination array.
8240
- * @param dst The destination array.
8241
- * @param offset The offset.
8242
- * @param val Symbol value.
8243
- * @returns {Int8Array} destination array.
8244
- * @throws Exception in case if dst is not {@link Int8Array}
8318
+ /**
8319
+ * Puts symbol value into destination array.
8320
+ * @param dst The destination array.
8321
+ * @param offset The offset.
8322
+ * @param val Symbol value.
8323
+ * @returns {Int8Array} destination array.
8324
+ * @throws Exception in case if dst is not {@link Int8Array}
8245
8325
  */
8246
8326
 
8247
8327
 
@@ -8252,14 +8332,14 @@ var Qitch = function () {
8252
8332
  throw "Invalid destination. Expected: Int8Array";
8253
8333
  };
8254
8334
 
8255
- /**
8256
- * Gets String value from source byte array at specified offset.
8257
- * @param src The source array.
8258
- * @param offset The offset.
8259
- * @param maxLength The max length of returning value.
8260
- * @returns {null|String} Returns null in case if specified offset is too big (offset + maxLength in bytes is bigger than length of source array),
8261
- * otherwise returns obtained value.
8262
- * @throws Exception in case if src is not {@link Int8Array}
8335
+ /**
8336
+ * Gets String value from source byte array at specified offset.
8337
+ * @param src The source array.
8338
+ * @param offset The offset.
8339
+ * @param maxLength The max length of returning value.
8340
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + maxLength in bytes is bigger than length of source array),
8341
+ * otherwise returns obtained value.
8342
+ * @throws Exception in case if src is not {@link Int8Array}
8263
8343
  */
8264
8344
 
8265
8345
 
@@ -8270,14 +8350,14 @@ var Qitch = function () {
8270
8350
  throw "Invalid source. Expected: Int8Array";
8271
8351
  };
8272
8352
 
8273
- /**
8274
- * Puts String value into destination array.
8275
- * @param dst The destination array.
8276
- * @param offset The offset.
8277
- * @param val String value.
8278
- * @param maxLength The max length of returning value.
8279
- * @returns {Int8Array} destination array.
8280
- * @throws Exception in case if dst is not {@link Int8Array}
8353
+ /**
8354
+ * Puts String value into destination array.
8355
+ * @param dst The destination array.
8356
+ * @param offset The offset.
8357
+ * @param val String value.
8358
+ * @param maxLength The max length of returning value.
8359
+ * @returns {Int8Array} destination array.
8360
+ * @throws Exception in case if dst is not {@link Int8Array}
8281
8361
  */
8282
8362
 
8283
8363
 
@@ -8288,13 +8368,13 @@ var Qitch = function () {
8288
8368
  throw "Invalid destination. Expected: Int8Array";
8289
8369
  };
8290
8370
 
8291
- /**
8292
- * Gets excode value from source byte array at specified offset.
8293
- * @param src The source array.
8294
- * @param offset The offset.
8295
- * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8296
- * otherwise returns obtained value.
8297
- * @throws Exception in case if src is not {@link Int8Array}
8371
+ /**
8372
+ * Gets excode value from source byte array at specified offset.
8373
+ * @param src The source array.
8374
+ * @param offset The offset.
8375
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8376
+ * otherwise returns obtained value.
8377
+ * @throws Exception in case if src is not {@link Int8Array}
8298
8378
  */
8299
8379
 
8300
8380
 
@@ -8308,13 +8388,13 @@ var Qitch = function () {
8308
8388
  throw "Invalid source. Expected: Int8Array";
8309
8389
  };
8310
8390
 
8311
- /**
8312
- * Puts excode value into destination array.
8313
- * @param dst The destination array.
8314
- * @param offset The offset.
8315
- * @param val excode value.
8316
- * @returns {Int8Array} destination array.
8317
- * @throws Exception in case if dst is not {@link Int8Array}
8391
+ /**
8392
+ * Puts excode value into destination array.
8393
+ * @param dst The destination array.
8394
+ * @param offset The offset.
8395
+ * @param val excode value.
8396
+ * @returns {Int8Array} destination array.
8397
+ * @throws Exception in case if dst is not {@link Int8Array}
8318
8398
  */
8319
8399
 
8320
8400
 
@@ -8325,13 +8405,13 @@ var Qitch = function () {
8325
8405
  throw "Invalid destination. Expected: Int8Array";
8326
8406
  };
8327
8407
 
8328
- /**
8329
- * Gets mmid value from source byte array at specified offset.
8330
- * @param src The source array.
8331
- * @param offset The offset.
8332
- * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8333
- * otherwise returns obtained value.
8334
- * @throws Exception in case if src is not {@link Int8Array}
8408
+ /**
8409
+ * Gets mmid value from source byte array at specified offset.
8410
+ * @param src The source array.
8411
+ * @param offset The offset.
8412
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8413
+ * otherwise returns obtained value.
8414
+ * @throws Exception in case if src is not {@link Int8Array}
8335
8415
  */
8336
8416
 
8337
8417
 
@@ -8345,13 +8425,13 @@ var Qitch = function () {
8345
8425
  throw "Invalid source. Expected: Int8Array";
8346
8426
  };
8347
8427
 
8348
- /**
8349
- * Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
8350
- * it is returned as {@link JSBI.BigInt}
8351
- * @param src The source array.
8352
- * @param offset The offset.
8353
- * @returns {JSBI} Returns obtained value.
8354
- * @throws Exception in case if src is not {@link Int8Array}
8428
+ /**
8429
+ * Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
8430
+ * it is returned as {@link JSBI.BigInt}
8431
+ * @param src The source array.
8432
+ * @param offset The offset.
8433
+ * @returns {JSBI} Returns obtained value.
8434
+ * @throws Exception in case if src is not {@link Int8Array}
8355
8435
  */
8356
8436
 
8357
8437
 
@@ -8362,13 +8442,13 @@ var Qitch = function () {
8362
8442
  throw "Invalid source. Expected: Int8Array";
8363
8443
  };
8364
8444
 
8365
- /**
8366
- * Gets order id as string from source byte array at specified offset.
8367
- * @param src The source array.
8368
- * @param offset The offset.
8369
- * @returns {null|String} Returns null in case if specified offset is too big (offset + order id length in bytes is bigger than length of source array),
8370
- * otherwise returns obtained value.
8371
- * @throws Exception in case if src is not {@link Int8Array}
8445
+ /**
8446
+ * Gets order id as string from source byte array at specified offset.
8447
+ * @param src The source array.
8448
+ * @param offset The offset.
8449
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + order id length in bytes is bigger than length of source array),
8450
+ * otherwise returns obtained value.
8451
+ * @throws Exception in case if src is not {@link Int8Array}
8372
8452
  */
8373
8453
 
8374
8454
 
@@ -8382,13 +8462,13 @@ var Qitch = function () {
8382
8462
  throw "Invalid source. Expected: Int8Array";
8383
8463
  };
8384
8464
 
8385
- /**
8386
- * Gets currency id from source byte array at specified offset.
8387
- * @param src The source array.
8388
- * @param offset The offset.
8389
- * @returns {null|String} Returns null in case if specified offset is too big (offset + currency id length in bytes is bigger than length of source array),
8390
- * otherwise returns obtained value.
8391
- * @throws Exception in case if src is not {@link Int8Array}
8465
+ /**
8466
+ * Gets currency id from source byte array at specified offset.
8467
+ * @param src The source array.
8468
+ * @param offset The offset.
8469
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + currency id length in bytes is bigger than length of source array),
8470
+ * otherwise returns obtained value.
8471
+ * @throws Exception in case if src is not {@link Int8Array}
8392
8472
  */
8393
8473
 
8394
8474
 
@@ -8402,13 +8482,13 @@ var Qitch = function () {
8402
8482
  throw "Invalid source. Expected: Int8Array";
8403
8483
  };
8404
8484
 
8405
- /**
8406
- * Gets tick from source byte array at specified offset.
8407
- * @param src The source array.
8408
- * @param offset The offset.
8409
- * @returns {string|null} Returns null in case if offset is out of array index range,
8410
- * otherwise character at specified offset is returned.
8411
- * @throws Exception in case if src is not {@link Int8Array}
8485
+ /**
8486
+ * Gets tick from source byte array at specified offset.
8487
+ * @param src The source array.
8488
+ * @param offset The offset.
8489
+ * @returns {string|null} Returns null in case if offset is out of array index range,
8490
+ * otherwise character at specified offset is returned.
8491
+ * @throws Exception in case if src is not {@link Int8Array}
8412
8492
  */
8413
8493
 
8414
8494
 
@@ -8422,13 +8502,13 @@ var Qitch = function () {
8422
8502
  throw "Invalid source. Expected: Int8Array";
8423
8503
  };
8424
8504
 
8425
- /**
8426
- * Gets order change type from source byte array at specified offset.
8427
- * @param src The source array.
8428
- * @param offset The offset.
8429
- * @returns {null|*} Returns null in case if offset is out of array index range,
8430
- * otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
8431
- * @throws Exception in case if src is not {@link Int8Array}
8505
+ /**
8506
+ * Gets order change type from source byte array at specified offset.
8507
+ * @param src The source array.
8508
+ * @param offset The offset.
8509
+ * @returns {null|*} Returns null in case if offset is out of array index range,
8510
+ * otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
8511
+ * @throws Exception in case if src is not {@link Int8Array}
8432
8512
  */
8433
8513
 
8434
8514
 
@@ -8446,13 +8526,13 @@ var Qitch = function () {
8446
8526
  throw "Invalid source. Expected: Int8Array";
8447
8527
  };
8448
8528
 
8449
- /**
8450
- * Gets order side from source byte array at specified offset.
8451
- * @param src The source array.
8452
- * @param offset The offset.
8453
- * @returns {string|null} Returns null in case if offset is out of array index range,
8454
- * otherwise character at specified offset is returned.
8455
- * @throws Exception in case if src is not {@link Int8Array}
8529
+ /**
8530
+ * Gets order side from source byte array at specified offset.
8531
+ * @param src The source array.
8532
+ * @param offset The offset.
8533
+ * @returns {string|null} Returns null in case if offset is out of array index range,
8534
+ * otherwise character at specified offset is returned.
8535
+ * @throws Exception in case if src is not {@link Int8Array}
8456
8536
  */
8457
8537
 
8458
8538
 
@@ -8470,13 +8550,13 @@ var Qitch = function () {
8470
8550
  throw "Invalid source. Expected: Int8Array";
8471
8551
  };
8472
8552
 
8473
- /**
8474
- * Gets range indicator from source byte array at specified offset.
8475
- * @param src The source array.
8476
- * @param offset The offset.
8477
- * @returns {string|null} Returns null in case if offset is out of array index range,
8478
- * otherwise character at specified offset is returned.
8479
- * @throws Exception in case if src is not {@link Int8Array}
8553
+ /**
8554
+ * Gets range indicator from source byte array at specified offset.
8555
+ * @param src The source array.
8556
+ * @param offset The offset.
8557
+ * @returns {string|null} Returns null in case if offset is out of array index range,
8558
+ * otherwise character at specified offset is returned.
8559
+ * @throws Exception in case if src is not {@link Int8Array}
8480
8560
  */
8481
8561
 
8482
8562
 
@@ -8490,13 +8570,13 @@ var Qitch = function () {
8490
8570
  throw "Invalid source. Expected: Int8Array";
8491
8571
  };
8492
8572
 
8493
- /**
8494
- * Gets instrument type from source byte array at specified offset.
8495
- * @param src The source array.
8496
- * @param offset The offset.
8497
- * @returns {null|*} Returns null in case if offset is out of array index range,
8498
- * otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
8499
- * @throws Exception in case if src is not {@link Int8Array}
8573
+ /**
8574
+ * Gets instrument type from source byte array at specified offset.
8575
+ * @param src The source array.
8576
+ * @param offset The offset.
8577
+ * @returns {null|*} Returns null in case if offset is out of array index range,
8578
+ * otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
8579
+ * @throws Exception in case if src is not {@link Int8Array}
8500
8580
  */
8501
8581
 
8502
8582
 
@@ -8510,13 +8590,13 @@ var Qitch = function () {
8510
8590
  throw "Invalid source. Expected: Int8Array";
8511
8591
  };
8512
8592
 
8513
- /**
8514
- * Gets imbalance type from source byte array at specified offset.
8515
- * @param src The source array.
8516
- * @param offset The offset.
8517
- * @returns {null|*} Returns null in case if offset is out of array index range,
8518
- * otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
8519
- * @throws Exception in case if src is not {@link Int8Array}
8593
+ /**
8594
+ * Gets imbalance type from source byte array at specified offset.
8595
+ * @param src The source array.
8596
+ * @param offset The offset.
8597
+ * @returns {null|*} Returns null in case if offset is out of array index range,
8598
+ * otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
8599
+ * @throws Exception in case if src is not {@link Int8Array}
8520
8600
  */
8521
8601
 
8522
8602
 
@@ -8530,13 +8610,13 @@ var Qitch = function () {
8530
8610
  throw "Invalid source. Expected: Int8Array";
8531
8611
  };
8532
8612
 
8533
- /**
8534
- * Gets order refernece from source byte array at specified offset.
8535
- * @param src The source array.
8536
- * @param offset The offset.
8537
- * @returns {null|String} Returns null in case if specified offset is too big (offset + order reference length in bytes is bigger than length of source array),
8538
- * otherwise returns obtained value.
8539
- * @throws Exception in case if src is not {@link Int8Array}
8613
+ /**
8614
+ * Gets order refernece from source byte array at specified offset.
8615
+ * @param src The source array.
8616
+ * @param offset The offset.
8617
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + order reference length in bytes is bigger than length of source array),
8618
+ * otherwise returns obtained value.
8619
+ * @throws Exception in case if src is not {@link Int8Array}
8540
8620
  */
8541
8621
 
8542
8622
 
@@ -8550,13 +8630,13 @@ var Qitch = function () {
8550
8630
  throw "Invalid source. Expected: Int8Array";
8551
8631
  };
8552
8632
 
8553
- /**
8554
- * Gets response reason from source byte array at specified offset.
8555
- * @param src The source array.
8556
- * @param offset The offset.
8557
- * @returns {null|String} Returns null in case if specified offset is too big (offset + reason length in bytes is bigger than length of source array),
8558
- * otherwise returns obtained value.
8559
- * @throws Exception in case if src is not {@link Int8Array}
8633
+ /**
8634
+ * Gets response reason from source byte array at specified offset.
8635
+ * @param src The source array.
8636
+ * @param offset The offset.
8637
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + reason length in bytes is bigger than length of source array),
8638
+ * otherwise returns obtained value.
8639
+ * @throws Exception in case if src is not {@link Int8Array}
8560
8640
  */
8561
8641
 
8562
8642
 
@@ -8570,13 +8650,13 @@ var Qitch = function () {
8570
8650
  throw "Invalid source. Expected: Int8Array";
8571
8651
  };
8572
8652
 
8573
- /**
8574
- * Gets streamer version from source byte array at specified offset.
8575
- * @param src The source array.
8576
- * @param offset The offset.
8577
- * @returns {null|String} Returns null in case if specified offset is too big (offset + version length in bytes is bigger than length of source array),
8578
- * otherwise returns obtained value.
8579
- * @throws Exception in case if src is not {@link Int8Array}
8653
+ /**
8654
+ * Gets streamer version from source byte array at specified offset.
8655
+ * @param src The source array.
8656
+ * @param offset The offset.
8657
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + version length in bytes is bigger than length of source array),
8658
+ * otherwise returns obtained value.
8659
+ * @throws Exception in case if src is not {@link Int8Array}
8580
8660
  */
8581
8661
 
8582
8662
 
@@ -8590,13 +8670,13 @@ var Qitch = function () {
8590
8670
  throw "Invalid source. Expected: Int8Array";
8591
8671
  };
8592
8672
 
8593
- /**
8594
- * Gets server instance from source byte array at specified offset.
8595
- * @param src The source array.
8596
- * @param offset The offset.
8597
- * @returns {null|String} Returns null in case if specified offset is too big (offset + server instance length in bytes is bigger than length of source array),
8598
- * otherwise returns obtained value.
8599
- * @throws Exception in case if src is not {@link Int8Array}
8673
+ /**
8674
+ * Gets server instance from source byte array at specified offset.
8675
+ * @param src The source array.
8676
+ * @param offset The offset.
8677
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + server instance length in bytes is bigger than length of source array),
8678
+ * otherwise returns obtained value.
8679
+ * @throws Exception in case if src is not {@link Int8Array}
8600
8680
  */
8601
8681
 
8602
8682
 
@@ -8610,13 +8690,13 @@ var Qitch = function () {
8610
8690
  throw "Invalid source. Expected: Int8Array";
8611
8691
  };
8612
8692
 
8613
- /**
8614
- * Gets the note message from source byte array at specified offset.
8615
- * @param src The source array.
8616
- * @param offset The offset.
8617
- * @returns {null|String} Returns null in case if specified offset is too big (offset + note length in bytes is bigger than length of source array),
8618
- * otherwise returns obtained value.
8619
- * @throws Exception in case if src is not {@link Int8Array}
8693
+ /**
8694
+ * Gets the note message from source byte array at specified offset.
8695
+ * @param src The source array.
8696
+ * @param offset The offset.
8697
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + note length in bytes is bigger than length of source array),
8698
+ * otherwise returns obtained value.
8699
+ * @throws Exception in case if src is not {@link Int8Array}
8620
8700
  */
8621
8701
 
8622
8702
 
@@ -8630,13 +8710,13 @@ var Qitch = function () {
8630
8710
  throw "Invalid source. Expected: Int8Array";
8631
8711
  };
8632
8712
 
8633
- /**
8634
- * Puts action value into destination array.
8635
- * @param dst The destination array.
8636
- * @param offset The offset.
8637
- * @param val Action value.
8638
- * @returns {Int8Array} destination array.
8639
- * @throws Exception in case if dst is not {@link Int8Array}
8713
+ /**
8714
+ * Puts action value into destination array.
8715
+ * @param dst The destination array.
8716
+ * @param offset The offset.
8717
+ * @param val Action value.
8718
+ * @returns {Int8Array} destination array.
8719
+ * @throws Exception in case if dst is not {@link Int8Array}
8640
8720
  */
8641
8721
 
8642
8722
 
@@ -8648,13 +8728,13 @@ var Qitch = function () {
8648
8728
  throw "Invalid destination. Expected: Int8Array";
8649
8729
  };
8650
8730
 
8651
- /**
8652
- * Puts mimetype value into destination array.
8653
- * @param dst The destination array.
8654
- * @param offset The offset.
8655
- * @param val Mimetype value.
8656
- * @returns {Int8Array} destination array.
8657
- * @throws Exception in case if dst is not {@link Int8Array}
8731
+ /**
8732
+ * Puts mimetype value into destination array.
8733
+ * @param dst The destination array.
8734
+ * @param offset The offset.
8735
+ * @param val Mimetype value.
8736
+ * @returns {Int8Array} destination array.
8737
+ * @throws Exception in case if dst is not {@link Int8Array}
8658
8738
  */
8659
8739
 
8660
8740
 
@@ -8665,13 +8745,13 @@ var Qitch = function () {
8665
8745
  throw "Invalid destination. Expected: Int8Array";
8666
8746
  };
8667
8747
 
8668
- /**
8669
- * Puts conflation value into destination array. If conflation is null, -1 will be put instead.
8670
- * @param dst The destination array.
8671
- * @param offset The offset.
8672
- * @param val Conflation value.
8673
- * @returns {Int8Array} destination array.
8674
- * @throws Exception in case if dst is not {@link Int8Array}
8748
+ /**
8749
+ * Puts conflation value into destination array. If conflation is null, -1 will be put instead.
8750
+ * @param dst The destination array.
8751
+ * @param offset The offset.
8752
+ * @param val Conflation value.
8753
+ * @returns {Int8Array} destination array.
8754
+ * @throws Exception in case if dst is not {@link Int8Array}
8675
8755
  */
8676
8756
 
8677
8757
 
@@ -8682,13 +8762,13 @@ var Qitch = function () {
8682
8762
  throw "Invalid destination. Expected: Int8Array";
8683
8763
  };
8684
8764
 
8685
- /**
8686
- * Gets marketdata type from source byte array at specified offset.
8687
- * @param src The source array.
8688
- * @param offset The offset.
8689
- * @returns {null|String} Returns null in case if offset is out of array index range,
8690
- * otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
8691
- * @throws Exception in case if src is not {@link Int8Array}
8765
+ /**
8766
+ * Gets marketdata type from source byte array at specified offset.
8767
+ * @param src The source array.
8768
+ * @param offset The offset.
8769
+ * @returns {null|String} Returns null in case if offset is out of array index range,
8770
+ * otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
8771
+ * @throws Exception in case if src is not {@link Int8Array}
8692
8772
  */
8693
8773
 
8694
8774
 
@@ -8702,13 +8782,13 @@ var Qitch = function () {
8702
8782
  throw "Invalid source. Expected: Int8Array";
8703
8783
  };
8704
8784
 
8705
- /**
8706
- * Puts marketdata type value into destination array.
8707
- * @param dst The destination array.
8708
- * @param offset The offset.
8709
- * @param val Marketdatatype value.
8710
- * @returns {Int8Array} destination array.
8711
- * @throws Exception in case if dst is not {@link Int8Array}
8785
+ /**
8786
+ * Puts marketdata type value into destination array.
8787
+ * @param dst The destination array.
8788
+ * @param offset The offset.
8789
+ * @param val Marketdatatype value.
8790
+ * @returns {Int8Array} destination array.
8791
+ * @throws Exception in case if dst is not {@link Int8Array}
8712
8792
  */
8713
8793
 
8714
8794
 
@@ -8720,13 +8800,13 @@ var Qitch = function () {
8720
8800
  throw "Invalid destination. Expected: Int8Array";
8721
8801
  };
8722
8802
 
8723
- /**
8724
- * Gets entitlement type from source byte array at specified offset.
8725
- * @param src The source array.
8726
- * @param offset The offset.
8727
- * @returns {null|String} Returns null in case if offset is out of array index range,
8728
- * otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
8729
- * @throws Exception in case if src is not {@link Int8Array}
8803
+ /**
8804
+ * Gets entitlement type from source byte array at specified offset.
8805
+ * @param src The source array.
8806
+ * @param offset The offset.
8807
+ * @returns {null|String} Returns null in case if offset is out of array index range,
8808
+ * otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
8809
+ * @throws Exception in case if src is not {@link Int8Array}
8730
8810
  */
8731
8811
 
8732
8812
 
@@ -8740,12 +8820,12 @@ var Qitch = function () {
8740
8820
  throw "Invalid source. Expected: Int8Array";
8741
8821
  };
8742
8822
 
8743
- /**
8744
- * Gets stream entitlement entry from source byte array at specified offset.
8745
- * @param src The source array.
8746
- * @param offset The offset.
8747
- * @returns {messages.control.StreamEntitlement}
8748
- * @throws Exception in case if src is not {@link Int8Array}
8823
+ /**
8824
+ * Gets stream entitlement entry from source byte array at specified offset.
8825
+ * @param src The source array.
8826
+ * @param offset The offset.
8827
+ * @returns {messages.control.StreamEntitlement}
8828
+ * @throws Exception in case if src is not {@link Int8Array}
8749
8829
  */
8750
8830
 
8751
8831
 
@@ -8778,8 +8858,8 @@ var _jsbi2 = _interopRequireDefault(_jsbi);
8778
8858
 
8779
8859
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8780
8860
 
8781
- /*
8782
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
8861
+ /*
8862
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
8783
8863
  */
8784
8864
  var ASCII_NULL = exports.ASCII_NULL = 0;
8785
8865
  var ASCIICHAR_NULL = exports.ASCIICHAR_NULL = '0';
@@ -9148,9 +9228,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
9148
9228
 
9149
9229
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9150
9230
 
9151
- /**
9152
- * Decodes a stream of message blocks into messages.
9153
- * This class is stateful and cannot be shared between multiple streams.
9231
+ /**
9232
+ * Decodes a stream of message blocks into messages.
9233
+ * This class is stateful and cannot be shared between multiple streams.
9154
9234
  */
9155
9235
  var BlockDecoder = function () {
9156
9236
  function BlockDecoder(decoders, capacity) {
@@ -9172,9 +9252,9 @@ var BlockDecoder = function () {
9172
9252
  this.doflip = false;
9173
9253
  }
9174
9254
 
9175
- /**
9176
- * The number of messages in the current block.
9177
- * @returns {number} The number of messages or -1 if no block is being decoded
9255
+ /**
9256
+ * The number of messages in the current block.
9257
+ * @returns {number} The number of messages or -1 if no block is being decoded
9178
9258
  */
9179
9259
 
9180
9260
 
@@ -9182,9 +9262,9 @@ var BlockDecoder = function () {
9182
9262
  return this.state.messagecount;
9183
9263
  };
9184
9264
 
9185
- /**
9186
- * Returns the sequence number of the current block.
9187
- * @returns {number} the sequence number of the current block.
9265
+ /**
9266
+ * Returns the sequence number of the current block.
9267
+ * @returns {number} the sequence number of the current block.
9188
9268
  */
9189
9269
 
9190
9270
 
@@ -9192,13 +9272,13 @@ var BlockDecoder = function () {
9192
9272
  return this.state.blocksequencenumber;
9193
9273
  };
9194
9274
 
9195
- /**
9196
- * Adds bytes to internal buffer.
9197
- * Call {@link decode} to decode the buffered data.
9198
- * @param bytes The array from witch bytes are to be added.
9199
- * @param offset The offset within the array of the fist byte to be added.
9200
- * @param length The number of bytes to be added from the given array.
9201
- * @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
9275
+ /**
9276
+ * Adds bytes to internal buffer.
9277
+ * Call {@link decode} to decode the buffered data.
9278
+ * @param bytes The array from witch bytes are to be added.
9279
+ * @param offset The offset within the array of the fist byte to be added.
9280
+ * @param length The number of bytes to be added from the given array.
9281
+ * @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
9202
9282
  */
9203
9283
 
9204
9284
 
@@ -9227,11 +9307,11 @@ var BlockDecoder = function () {
9227
9307
  return numOfLeftoverBytes;
9228
9308
  };
9229
9309
 
9230
- /**
9231
- * Incrementally decodes the data in the internal buffer.
9232
- * Successive calls to this method will return the next decoded message as long enough data is avail
9233
- * If not enough data is available null will be returned until more data is added.
9234
- * @returns {*} The next decoded message or null if not enough data is available.
9310
+ /**
9311
+ * Incrementally decodes the data in the internal buffer.
9312
+ * Successive calls to this method will return the next decoded message as long enough data is avail
9313
+ * If not enough data is available null will be returned until more data is added.
9314
+ * @returns {*} The next decoded message or null if not enough data is available.
9235
9315
  */
9236
9316
 
9237
9317
 
@@ -9590,8 +9670,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
9590
9670
 
9591
9671
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9592
9672
 
9593
- /*
9594
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
9673
+ /*
9674
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
9595
9675
  */
9596
9676
  var QitchDecoder = function () {
9597
9677
  function QitchDecoder(bufferSize) {
@@ -10949,6 +11029,7 @@ var PricedataDecoder = function () {
10949
11029
  out.postMarketPercentChange = this._postmarketPercentChange(out);
10950
11030
  out.lastTradeExcode = _Qitch2["default"].excode(src, offset + def.LASTTRADEEXCODE_OFFSET);
10951
11031
  out.currencyID = _Qitch2["default"].currencyid(src, offset + def.CURRENCYID_OFFSET);
11032
+ out.vwapVolume = _Qitch2["default"].dec8double(src, offset + def.VWAPVOLUME_OFFSET);
10952
11033
 
10953
11034
  return out;
10954
11035
  };
@@ -11292,8 +11373,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
11292
11373
 
11293
11374
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11294
11375
 
11295
- /*
11296
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
11376
+ /*
11377
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
11297
11378
  */
11298
11379
  var QitchEncoder = function () {
11299
11380
  function QitchEncoder() {
@@ -11302,12 +11383,12 @@ var QitchEncoder = function () {
11302
11383
  this.encoder = new MessageEncoder();
11303
11384
  }
11304
11385
 
11305
- /**
11306
- * Encodes a message into its binary representation.
11307
- * @param msg Msg {SMessage} the message to encode
11308
- * @param offset The offset used to write message into a buffer
11309
- * @returns {ArrayBuffer} the encoded bytes
11310
- * @throws Throws an error if message cannot be encoded
11386
+ /**
11387
+ * Encodes a message into its binary representation.
11388
+ * @param msg Msg {SMessage} the message to encode
11389
+ * @param offset The offset used to write message into a buffer
11390
+ * @returns {ArrayBuffer} the encoded bytes
11391
+ * @throws Throws an error if message cannot be encoded
11311
11392
  */
11312
11393
 
11313
11394
 
@@ -11989,7 +12070,7 @@ var LENGTH = exports.LENGTH = SELLBLOCKTRANSACTIONS_OFFSET + _QitchConstants.INT
11989
12070
  "use strict";
11990
12071
 
11991
12072
  exports.__esModule = true;
11992
- exports.PricedataFlags = exports.LENGTH = exports.CURRENCYID_OFFSET = exports.DECIMALLASTTRADESIZE_OFFSET = exports.DECIMALPOSTMARKETVOLUME_OFFSET = exports.DECIMALPREMARKETVOLUME_OFFSET = exports.DECIMALACCUMULATEDVOLUME_OFFSET = exports.LASTTRADEEXCODE_OFFSET = exports.POSTMARKETCHANGE_OFFSET = exports.POSTMARKETVOLUME_OFFSET = exports.POSTMARKETLASTPRICE_OFFSET = exports.POSTMARKETTRADETIME_OFFSET = exports.PREMARKETCHANGE_OFFSET = exports.PREMARKETVOLUME_OFFSET = exports.PREMARKETLASTPRICE_OFFSET = exports.PREMARKETTRADETIME_OFFSET = exports.TWAP_OFFSET = exports.VWAP_OFFSET = exports.FLAGS_OFFSET = exports.ACCUMULATEDTRADEVALUE_OFFSET = exports.TRADECOUNT_OFFSET = exports.CLOSE_OFFSET = exports.LASTTRADESIZE_OFFSET = exports.TICK_OFFSET = exports.LASTTRADETIME_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.LOW_OFFSET = exports.HIGH_OFFSET = exports.OPEN_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
12073
+ exports.PricedataFlags = exports.LENGTH = exports.VWAPVOLUME_OFFSET = exports.CURRENCYID_OFFSET = exports.DECIMALLASTTRADESIZE_OFFSET = exports.DECIMALPOSTMARKETVOLUME_OFFSET = exports.DECIMALPREMARKETVOLUME_OFFSET = exports.DECIMALACCUMULATEDVOLUME_OFFSET = exports.LASTTRADEEXCODE_OFFSET = exports.POSTMARKETCHANGE_OFFSET = exports.POSTMARKETVOLUME_OFFSET = exports.POSTMARKETLASTPRICE_OFFSET = exports.POSTMARKETTRADETIME_OFFSET = exports.PREMARKETCHANGE_OFFSET = exports.PREMARKETVOLUME_OFFSET = exports.PREMARKETLASTPRICE_OFFSET = exports.PREMARKETTRADETIME_OFFSET = exports.TWAP_OFFSET = exports.VWAP_OFFSET = exports.FLAGS_OFFSET = exports.ACCUMULATEDTRADEVALUE_OFFSET = exports.TRADECOUNT_OFFSET = exports.CLOSE_OFFSET = exports.LASTTRADESIZE_OFFSET = exports.TICK_OFFSET = exports.LASTTRADETIME_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.LOW_OFFSET = exports.HIGH_OFFSET = exports.OPEN_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
11993
12074
 
11994
12075
  var _QitchConstants = require("../QitchConstants");
11995
12076
 
@@ -12031,7 +12112,9 @@ var DECIMALLASTTRADESIZE_OFFSET = exports.DECIMALLASTTRADESIZE_OFFSET = DECIMALP
12031
12112
 
12032
12113
  var CURRENCYID_OFFSET = exports.CURRENCYID_OFFSET = DECIMALLASTTRADESIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
12033
12114
 
12034
- var LENGTH = exports.LENGTH = CURRENCYID_OFFSET + _QitchConstants.CURRENCYID_LENGTH;
12115
+ var VWAPVOLUME_OFFSET = exports.VWAPVOLUME_OFFSET = CURRENCYID_OFFSET + _QitchConstants.CURRENCYID_LENGTH;
12116
+
12117
+ var LENGTH = exports.LENGTH = VWAPVOLUME_OFFSET + _QitchConstants.DOUBLE_LENGTH;
12035
12118
 
12036
12119
  var PricedataFlags = exports.PricedataFlags = function () {
12037
12120
  function PricedataFlags() {
@@ -12527,11 +12610,11 @@ exports["default"] = new function () {
12527
12610
 
12528
12611
  // Generated by CoffeeScript 1.7.1
12529
12612
 
12530
- /*
12531
- Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
12532
-
12533
- Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
12534
- Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
12613
+ /*
12614
+ Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
12615
+
12616
+ Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
12617
+ Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
12535
12618
  */
12536
12619
 
12537
12620
  (function () {
@@ -13380,7 +13463,8 @@ var StompStream = function () {
13380
13463
  subscribed: [],
13381
13464
  rejected: [],
13382
13465
  unentitled: [],
13383
- invalidSymbols: []
13466
+ invalidSymbols: [],
13467
+ messageFilters: []
13384
13468
  }
13385
13469
  };
13386
13470
 
@@ -13827,6 +13911,7 @@ var StompStream = function () {
13827
13911
  }
13828
13912
  if (opts) {
13829
13913
  msg.conflation = opts.conflation;
13914
+ msg.intervalPeriod = opts.intervalPeriod;
13830
13915
  }
13831
13916
  return msg;
13832
13917
  };
@@ -14644,6 +14729,12 @@ var StompStreamingService = function () {
14644
14729
  this.addToHeaderParams('X-Stream-Previous-Connection-Id', connectionId);
14645
14730
  }
14646
14731
 
14732
+ var _intervalPeriod = this.config.intervalPeriod;
14733
+ if (_intervalPeriod != null && _intervalPeriod !== '') {
14734
+ headers['X-Stream-Interval-Period'] = _intervalPeriod;
14735
+ this.addToHeaderParams('X-Stream-Interval-Period', _intervalPeriod);
14736
+ }
14737
+
14647
14738
  var _rejectExcessiveConnection = this.config.rejectExcessiveConnection;
14648
14739
  if (_rejectExcessiveConnection != null && _rejectExcessiveConnection !== '') {
14649
14740
  headers['X-Stream-Reject'] = _rejectExcessiveConnection;
@@ -14795,1158 +14886,1166 @@ exports["default"] = StompStreamingService;
14795
14886
  exports.__esModule = true;
14796
14887
  /* @see http://usejsdoc.org */
14797
14888
 
14798
- /**
14799
- * Streamer api namespace.
14800
- * @namespace
14889
+ /**
14890
+ * Streamer api namespace.
14891
+ * @namespace
14801
14892
  */
14802
14893
 
14803
14894
  var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
14804
- var VERSION = exports.VERSION = "2.39.0";
14895
+ var VERSION = exports.VERSION = "2.41.0";
14805
14896
 
14806
- /**
14807
- * Streamer message api namespace.
14808
- * @namespace
14897
+ /**
14898
+ * Streamer message api namespace.
14899
+ * @namespace
14809
14900
  */
14810
14901
  var messages = exports.messages = {};
14811
14902
 
14812
- /**
14813
- * Streamer control message namespace. * @namespace
14903
+ /**
14904
+ * Streamer control message namespace. * @namespace
14814
14905
  */
14815
14906
  messages.control = {};
14816
14907
 
14817
- /**
14818
- * Streamer market data message namespace.
14819
- * @namespace
14908
+ /**
14909
+ * Streamer market data message namespace.
14910
+ * @namespace
14820
14911
  */
14821
14912
  messages.market = {};
14822
14913
 
14823
14914
  /* ****************************************************************************************************************** */
14824
14915
 
14825
- /**
14826
- *
14827
- * @type {string}
14916
+ /**
14917
+ *
14918
+ * @type {string}
14828
14919
  */
14829
14920
  messages.JSON_TYPE_PROPERTY = '@T';
14830
14921
 
14831
- /**
14832
- * Message type identifiers.<br>
14833
- * Ensure identifiers are unique within this name space.
14834
- * @namespace
14922
+ /**
14923
+ * Message type identifiers.<br>
14924
+ * Ensure identifiers are unique within this name space.
14925
+ * @namespace
14835
14926
  */
14836
14927
  messages.MessageTypeNames = {
14837
- /**
14838
- * Name space for control message type identifiers.
14839
- * @namespace
14840
- */
14841
- ctrl: {
14842
- HEARTBEAT: 'C1',
14843
- SUBSCRIBE: 'C2',
14844
- SUBSCRIBE_RESPONSE: 'C3',
14845
- UNSUBSCRIBE_RESPONSE: 'C4',
14846
- CONNECT_RESPONSE: 'C5',
14847
- CONNECTION_CLOSE: 'C6',
14848
- FLOW: 'C7',
14849
- SLOW_CONNECTION: 'C8',
14850
- INITIAL_DATA_SENT: 'C9',
14851
- RESUBSCRIBE_MESSAGE: 'C10',
14852
- STATS: 'C12',
14853
- STATS_RESPONSE: 'C13',
14854
- EXCHANGE_SUBSCRIBE: 'C14',
14855
- EXCHANGE_RESPONSE: 'C15',
14856
- EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
14857
- NEWS_SUBSCRIBE: 'C17',
14858
- NEWS_SUBSCRIBE_RESPONSE: 'C18',
14859
- ALERTS_SUBUNSUB: 'C19',
14860
- ALERTS_SUBUNSUB_RESPONSE: 'C20',
14861
- TRADE_SUBSCRIBE: 'C21',
14862
- TRADE_SUBSCRIBE_RESPONSE: 'C22',
14863
- NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
14864
- NEWS_COMMAND: 'C24',
14865
- NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
14866
- NEWS_CMD_FILTER_RESPONSE: 'C26',
14867
- AUTHENTICATION: 'C27',
14868
- OPEN_FLOW: 'C28',
14869
- RECONNECT_RESPONSE: 'C29',
14870
- TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
14871
- MISSED_DATA_SENT: 'C31'
14872
- },
14873
- /**
14874
- * Name space for data message type identifiers.<br>
14875
- * Prefix with 'D'.
14876
- * @namespace
14877
- */
14878
- data: {
14879
- QUOTE: 'D1',
14880
- PRICEDATA: 'D2',
14881
- TRADE: 'D3',
14882
- BOOKORDER: 'D4',
14883
- BOOKDELETE: 'D5',
14884
- PURGEBOOK: 'D6',
14885
- MMQUOTE: 'D7',
14886
- INTERVAL: 'D8',
14887
- NETHOUSEPOSITION: 'D9',
14888
- SYMBOLINFO: 'D10',
14889
- SYMBOLSTATUS: 'D11',
14890
- DERIVATIVEINFO: 'D12',
14891
- LASTSALE: 'D13',
14892
- LIMITUPLIMITDOWN: 'D14',
14893
- IVGREEKS: 'D15',
14894
- IMBALANCESTATUS: 'D16',
14895
- ALERT: 'D17',
14896
- NEWS: 'D18',
14897
- TRADENOTIFICATION: 'D19',
14898
- NEWSCMDFILTER: 'D20',
14899
- NEWSERROR: 'D21',
14900
- DIVIDEND: 'D22'
14901
- }
14902
- };
14903
-
14904
- /**
14905
- * Super type of all exports.
14906
- * @abstract
14907
- * @constructor
14908
- */
14928
+ /**
14929
+ * Name space for control message type identifiers.
14930
+ * @namespace
14931
+ */
14932
+ ctrl: {
14933
+ HEARTBEAT: 'C1',
14934
+ SUBSCRIBE: 'C2',
14935
+ SUBSCRIBE_RESPONSE: 'C3',
14936
+ UNSUBSCRIBE_RESPONSE: 'C4',
14937
+ CONNECT_RESPONSE: 'C5',
14938
+ CONNECTION_CLOSE: 'C6',
14939
+ FLOW: 'C7',
14940
+ SLOW_CONNECTION: 'C8',
14941
+ INITIAL_DATA_SENT: 'C9',
14942
+ RESUBSCRIBE_MESSAGE: 'C10',
14943
+ STATS: 'C12',
14944
+ STATS_RESPONSE: 'C13',
14945
+ EXCHANGE_SUBSCRIBE: 'C14',
14946
+ EXCHANGE_RESPONSE: 'C15',
14947
+ EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
14948
+ NEWS_SUBSCRIBE: 'C17',
14949
+ NEWS_SUBSCRIBE_RESPONSE: 'C18',
14950
+ ALERTS_SUBUNSUB: 'C19',
14951
+ ALERTS_SUBUNSUB_RESPONSE: 'C20',
14952
+ TRADE_SUBSCRIBE: 'C21',
14953
+ TRADE_SUBSCRIBE_RESPONSE: 'C22',
14954
+ NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
14955
+ NEWS_COMMAND: 'C24',
14956
+ NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
14957
+ NEWS_CMD_FILTER_RESPONSE: 'C26',
14958
+ AUTHENTICATION: 'C27',
14959
+ OPEN_FLOW: 'C28',
14960
+ RECONNECT_RESPONSE: 'C29',
14961
+ TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
14962
+ MISSED_DATA_SENT: 'C31'
14963
+ },
14964
+ /**
14965
+ * Name space for data message type identifiers.<br>
14966
+ * Prefix with 'D'.
14967
+ * @namespace
14968
+ */
14969
+ data: {
14970
+ QUOTE: 'D1',
14971
+ PRICEDATA: 'D2',
14972
+ TRADE: 'D3',
14973
+ BOOKORDER: 'D4',
14974
+ BOOKDELETE: 'D5',
14975
+ PURGEBOOK: 'D6',
14976
+ MMQUOTE: 'D7',
14977
+ INTERVAL: 'D8',
14978
+ NETHOUSEPOSITION: 'D9',
14979
+ SYMBOLINFO: 'D10',
14980
+ SYMBOLSTATUS: 'D11',
14981
+ DERIVATIVEINFO: 'D12',
14982
+ LASTSALE: 'D13',
14983
+ LIMITUPLIMITDOWN: 'D14',
14984
+ IVGREEKS: 'D15',
14985
+ IMBALANCESTATUS: 'D16',
14986
+ ALERT: 'D17',
14987
+ NEWS: 'D18',
14988
+ TRADENOTIFICATION: 'D19',
14989
+ NEWSCMDFILTER: 'D20',
14990
+ NEWSERROR: 'D21',
14991
+ DIVIDEND: 'D22',
14992
+ EARNINGS: 'D23',
14993
+ SPLIT: 'D24'
14994
+ }
14995
+ };
14996
+
14997
+ /**
14998
+ * Super type of all exports.
14999
+ * @abstract
15000
+ * @constructor
15001
+ */
14909
15002
  messages.Message = function () {};
14910
15003
 
14911
15004
  messages.Message.prototype.init = function (typeid) {
14912
- this[messages.JSON_TYPE_PROPERTY] = typeid;
15005
+ this[messages.JSON_TYPE_PROPERTY] = typeid;
14913
15006
  };
14914
15007
 
14915
15008
  /* ****************************************************************************************************************** */
14916
15009
 
14917
- /**
14918
- * Creates a control message base object.
14919
- * @abstract
14920
- * @constructor
15010
+ /**
15011
+ * Creates a control message base object.
15012
+ * @abstract
15013
+ * @constructor
14921
15014
  */
14922
15015
  messages.control.CtrlMessage = function () {};
14923
15016
  messages.control.CtrlMessage.prototype = new messages.Message();
14924
15017
 
14925
- /**
14926
- * Creates a heartbeat message.
14927
- * @constructor
15018
+ /**
15019
+ * Creates a heartbeat message.
15020
+ * @constructor
14928
15021
  */
14929
15022
  messages.control.Heartbeat = function () {
14930
- this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
15023
+ this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
14931
15024
 
14932
- /**
14933
- * Timestamp when heartbeat was generated.
14934
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
14935
- * for connections with QITCH format - {@link JSBI.BigInt}
14936
- */
14937
- this.timestamp = null;
15025
+ /**
15026
+ * Timestamp when heartbeat was generated.
15027
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15028
+ * for connections with QITCH format - {@link JSBI.BigInt}
15029
+ */
15030
+ this.timestamp = null;
14938
15031
  };
14939
15032
  messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
14940
- /**
14941
- * Creates a stats message.
14942
- * @constructor
15033
+ /**
15034
+ * Creates a stats message.
15035
+ * @constructor
14943
15036
  */
14944
15037
  messages.control.StatsMessage = function () {
14945
- this.init(messages.MessageTypeNames.ctrl.STATS);
15038
+ this.init(messages.MessageTypeNames.ctrl.STATS);
14946
15039
  };
14947
15040
  messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
14948
15041
 
14949
- /**
14950
- * Creates a subscribe message.
14951
- * @constructor
15042
+ /**
15043
+ * Creates a subscribe message.
15044
+ * @constructor
14952
15045
  */
14953
15046
  messages.control.SubscribeMessage = function () {
14954
- this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
15047
+ this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
14955
15048
 
14956
- /**
14957
- * The action the server will taken when receiving this message.
14958
- * @type {string}
14959
- * @see exports.messages.control.Action
14960
- */
14961
- this.action = null;
15049
+ /**
15050
+ * The action the server will taken when receiving this message.
15051
+ * @type {string}
15052
+ * @see exports.messages.control.Action
15053
+ */
15054
+ this.action = null;
14962
15055
 
14963
- /**
14964
- * List of ticker symbols to subscribe/un-subscribe for.
14965
- * @type {Array.<string>}
14966
- */
14967
- this.symbols = [];
15056
+ /**
15057
+ * List of ticker symbols to subscribe/un-subscribe for.
15058
+ * @type {Array.<string>}
15059
+ */
15060
+ this.symbols = [];
14968
15061
 
14969
- /**
14970
- * List of streaming message types to subscribe each ticker symbol for.
14971
- * @type {Array.<string>}
14972
- * @see exports.messages.control.MarketdataType
14973
- */
14974
- this.types = [];
15062
+ /**
15063
+ * List of streaming message types to subscribe each ticker symbol for.
15064
+ * @type {Array.<string>}
15065
+ * @see exports.messages.control.MarketdataType
15066
+ */
15067
+ this.types = [];
14975
15068
 
14976
- /**
14977
- * Requested message mime-type format.
14978
- * @type {string}
14979
- * @see exports.messages.MimeTypes
14980
- */
14981
- this.mimetype = null;
15069
+ /**
15070
+ * Requested message mime-type format.
15071
+ * @type {string}
15072
+ * @see exports.messages.MimeTypes
15073
+ */
15074
+ this.mimetype = null;
14982
15075
 
14983
- /**
14984
- * Requested conflation. Null indicates using the default conflation.
14985
- * @type {int}
14986
- */
14987
- this.conflation = null;
15076
+ /**
15077
+ * Requested conflation. Null indicates using the default conflation.
15078
+ * @type {int}
15079
+ */
15080
+ this.conflation = null;
14988
15081
  };
14989
15082
  messages.control.SubscribeMessage.prototype = new messages.control.CtrlMessage();
14990
15083
 
14991
- /**
14992
- * Creates an exchange subscribe message.
14993
- * @constructor
15084
+ /**
15085
+ * Creates an exchange subscribe message.
15086
+ * @constructor
14994
15087
  */
14995
15088
  messages.control.ExchangeSubscribeMessage = function () {
14996
- this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
15089
+ this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
14997
15090
 
14998
- /**
14999
- * The action the server will taken when receiving this message.
15000
- * @type {string}
15001
- * @see exports.messages.control.Action
15002
- */
15003
- this.action = null;
15091
+ /**
15092
+ * The action the server will taken when receiving this message.
15093
+ * @type {string}
15094
+ * @see exports.messages.control.Action
15095
+ */
15096
+ this.action = null;
15004
15097
 
15005
- /**
15006
- * The Exchange to subscribe/un-subscribe for.
15007
- * @type {Array.<string>}
15008
- */
15009
- this.exchange = null;
15098
+ /**
15099
+ * The Exchange to subscribe/un-subscribe for.
15100
+ * @type {Array.<string>}
15101
+ */
15102
+ this.exchange = null;
15010
15103
 
15011
- /**
15012
- * Requested message mime-type format.
15013
- * @type {string}
15014
- * @see exports.messages.MimeTypes
15015
- */
15016
- this.mimetype = null;
15104
+ /**
15105
+ * Requested message mime-type format.
15106
+ * @type {string}
15107
+ * @see exports.messages.MimeTypes
15108
+ */
15109
+ this.mimetype = null;
15017
15110
 
15018
- /**
15019
- * Requested conflation. Null indicates using the default conflation.
15020
- * @type {int}
15021
- */
15022
- this.conflation = null;
15111
+ /**
15112
+ * Requested conflation. Null indicates using the default conflation.
15113
+ * @type {int}
15114
+ */
15115
+ this.conflation = null;
15023
15116
  };
15024
15117
  messages.control.ExchangeSubscribeMessage.prototype = new messages.control.CtrlMessage();
15025
15118
 
15026
- /**
15027
- * Creates an news subscribe message.
15028
- * @constructor
15119
+ /**
15120
+ * Creates an news subscribe message.
15121
+ * @constructor
15029
15122
  */
15030
15123
  messages.control.NewsSubscribeMessage = function () {
15031
- this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
15124
+ this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
15032
15125
 
15033
- /**
15034
- * The action the server will taken when receiving this message.
15035
- * @type {string}
15036
- * @see exports.messages.control.Action
15037
- */
15038
- this.action = null;
15126
+ /**
15127
+ * The action the server will taken when receiving this message.
15128
+ * @type {string}
15129
+ * @see exports.messages.control.Action
15130
+ */
15131
+ this.action = null;
15039
15132
 
15040
- /**
15041
- * The news filters to subscribe for.
15042
- * @type {Array.<string>}
15043
- */
15044
- this.newsFilters = null;
15133
+ /**
15134
+ * The news filters to subscribe for.
15135
+ * @type {Array.<string>}
15136
+ */
15137
+ this.newsFilters = null;
15045
15138
 
15046
- /**
15047
- * Requested message mime-type format.
15048
- * @type {string}
15049
- * @see exports.messages.MimeTypes
15050
- */
15051
- this.mimetype = null;
15139
+ /**
15140
+ * Requested message mime-type format.
15141
+ * @type {string}
15142
+ * @see exports.messages.MimeTypes
15143
+ */
15144
+ this.mimetype = null;
15052
15145
  };
15053
15146
  messages.control.NewsSubscribeMessage.prototype = new messages.control.CtrlMessage();
15054
15147
 
15055
- /**
15056
- * Creates an news reset message.
15057
- * @constructor
15148
+ /**
15149
+ * Creates an news reset message.
15150
+ * @constructor
15058
15151
  */
15059
15152
  messages.control.NewsCommandMessage = function () {
15060
- this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
15153
+ this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
15061
15154
 
15062
- /**
15063
- * The action the server will taken when receiving this message.
15064
- * @type {string}
15065
- * @see exports.messages.control.Action
15066
- */
15067
- this.newsAction = null;
15155
+ /**
15156
+ * The action the server will taken when receiving this message.
15157
+ * @type {string}
15158
+ * @see exports.messages.control.Action
15159
+ */
15160
+ this.newsAction = null;
15068
15161
 
15069
- /**
15070
- * Requested message mime-type format.
15071
- * @type {string}
15072
- * @see exports.messages.MimeTypes
15073
- */
15074
- this.mimetype = null;
15162
+ /**
15163
+ * Requested message mime-type format.
15164
+ * @type {string}
15165
+ * @see exports.messages.MimeTypes
15166
+ */
15167
+ this.mimetype = null;
15075
15168
  };
15076
15169
  messages.control.NewsCommandMessage.prototype = new messages.control.CtrlMessage();
15077
15170
 
15078
- /**
15079
- * Creates an news subscribe message.
15080
- * @constructor
15171
+ /**
15172
+ * Creates an news subscribe message.
15173
+ * @constructor
15081
15174
  */
15082
15175
  messages.control.AlertsSubUnsubMessage = function () {
15083
- this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB);
15176
+ this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB);
15084
15177
 
15085
- /**
15086
- * sub/unsub for alerts.
15087
- * @type {string}
15088
- */
15089
- this.operation = null;
15178
+ /**
15179
+ * sub/unsub for alerts.
15180
+ * @type {string}
15181
+ */
15182
+ this.operation = null;
15090
15183
 
15091
- /**
15092
- * Requested message mime-type format.
15093
- * @type {string}
15094
- * @see exports.messages.MimeTypes
15095
- */
15096
- this.mimetype = null;
15184
+ /**
15185
+ * Requested message mime-type format.
15186
+ * @type {string}
15187
+ * @see exports.messages.MimeTypes
15188
+ */
15189
+ this.mimetype = null;
15097
15190
  };
15098
15191
  messages.control.AlertsSubUnsubMessage.prototype = new messages.control.CtrlMessage();
15099
15192
 
15100
- /**
15101
- * Creates Trade notification subscribe message.
15102
- * @constructor
15193
+ /**
15194
+ * Creates Trade notification subscribe message.
15195
+ * @constructor
15103
15196
  */
15104
15197
 
15105
15198
  messages.control.TradeSubscribeMessage = function () {
15106
- this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
15199
+ this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
15107
15200
 
15108
- /**
15109
- * The action the server will taken when receiving this message.
15110
- * @type {string}
15111
- * @see exports.messages.control.Action
15112
- */
15113
- this.action = null;
15201
+ /**
15202
+ * The action the server will taken when receiving this message.
15203
+ * @type {string}
15204
+ * @see exports.messages.control.Action
15205
+ */
15206
+ this.action = null;
15114
15207
 
15115
- /**
15116
- * The subscribe/un-subscribe for trade notifications.
15117
- * @type {Array.<string>}
15118
- */
15119
- this.notificationType = null;
15208
+ /**
15209
+ * The subscribe/un-subscribe for trade notifications.
15210
+ * @type {Array.<string>}
15211
+ */
15212
+ this.notificationType = null;
15120
15213
 
15121
- /**
15122
- * Requested message mime-type format.
15123
- * @type {string}
15124
- * @see exports.messages.MimeTypes
15125
- */
15126
- this.mimetype = null;
15214
+ /**
15215
+ * Requested message mime-type format.
15216
+ * @type {string}
15217
+ * @see exports.messages.MimeTypes
15218
+ */
15219
+ this.mimetype = null;
15127
15220
  };
15128
15221
  messages.control.TradeSubscribeMessage.prototype = new messages.control.CtrlMessage();
15129
15222
 
15130
- /**
15131
- * Base class for response exports.
15132
- * @abstract
15223
+ /**
15224
+ * Base class for response exports.
15225
+ * @abstract
15133
15226
  */
15134
15227
  messages.control.BaseResponse = function () {
15135
- /**
15136
- * The response code.
15137
- * @type {number}
15138
- * @see {@link messages.control.ResponseCodes}
15139
- */
15140
- this.code = null;
15228
+ /**
15229
+ * The response code.
15230
+ * @type {number}
15231
+ * @see {@link messages.control.ResponseCodes}
15232
+ */
15233
+ this.code = null;
15141
15234
 
15142
- /**
15143
- * The response reason.
15144
- * @type {string}
15145
- * @see {@link messages.control.ResponseCodes}
15146
- */
15147
- this.reason = null;
15235
+ /**
15236
+ * The response reason.
15237
+ * @type {string}
15238
+ * @see {@link messages.control.ResponseCodes}
15239
+ */
15240
+ this.reason = null;
15148
15241
  };
15149
15242
  messages.control.BaseResponse.prototype = new messages.control.CtrlMessage();
15150
15243
 
15151
- /**
15152
- * Creates a subscribe response message.
15153
- * @constructor
15244
+ /**
15245
+ * Creates a subscribe response message.
15246
+ * @constructor
15154
15247
  */
15155
15248
  messages.control.SubscribeResponse = function () {
15156
- this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE);
15249
+ this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE);
15157
15250
 
15158
- /**
15159
- *
15160
- * @type {Array.<messages.control.StreamEntitlement>}
15161
- */
15162
- this.entitlements = null;
15251
+ /**
15252
+ *
15253
+ * @type {Array.<messages.control.StreamEntitlement>}
15254
+ */
15255
+ this.entitlements = null;
15163
15256
 
15164
- /**
15165
- *
15166
- * @type {Array.<string>}
15167
- */
15168
- this.invalidsymbols = null;
15257
+ /**
15258
+ *
15259
+ * @type {Array.<string>}
15260
+ */
15261
+ this.invalidsymbols = null;
15169
15262
 
15170
- /**
15171
- *
15172
- * @type {Array.<string>}
15173
- */
15174
- this.rejectedsymbols = null;
15263
+ /**
15264
+ *
15265
+ * @type {Array.<string>}
15266
+ */
15267
+ this.rejectedsymbols = null;
15268
+
15269
+ /**
15270
+ *
15271
+ * @type {Array.<string>}
15272
+ */
15273
+ this.messagefilters = null;
15175
15274
  };
15176
15275
  messages.control.SubscribeResponse.prototype = new messages.control.BaseResponse();
15177
15276
 
15178
- /**
15179
- * Creates an exchange subscribe response message.
15180
- * @constructor
15277
+ /**
15278
+ * Creates an exchange subscribe response message.
15279
+ * @constructor
15181
15280
  */
15182
15281
  messages.control.ExchangeSubscribeResponse = function () {
15183
- this.init(messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE);
15282
+ this.init(messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE);
15184
15283
  };
15185
15284
 
15186
15285
  messages.control.ExchangeSubscribeResponse.prototype = new messages.control.BaseResponse();
15187
15286
 
15188
- /**
15189
- * Creates an Alert un-subscribe response message.
15190
- * @constructor
15287
+ /**
15288
+ * Creates an Alert un-subscribe response message.
15289
+ * @constructor
15191
15290
  */
15192
15291
  messages.control.AlertSubUnsubResponse = function () {
15193
- this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE);
15292
+ this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE);
15194
15293
  };
15195
15294
  messages.control.AlertSubUnsubResponse.prototype = new messages.control.BaseResponse();
15196
15295
 
15197
- /**
15198
- * Creates Trade notification subscribe response message.
15199
- * @constructor
15296
+ /**
15297
+ * Creates Trade notification subscribe response message.
15298
+ * @constructor
15200
15299
  */
15201
15300
  messages.control.TradeSubscribeResponse = function () {
15202
- this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE);
15301
+ this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE);
15203
15302
  };
15204
15303
 
15205
15304
  messages.control.TradeSubscribeResponse.prototype = new messages.control.BaseResponse();
15206
15305
 
15207
- /**
15208
- * Creates an un-subscribe response message.
15209
- * @constructor
15306
+ /**
15307
+ * Creates an un-subscribe response message.
15308
+ * @constructor
15210
15309
  */
15211
15310
  messages.control.UnsubscribeResponse = function () {
15212
- this.init(messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE);
15311
+ this.init(messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE);
15213
15312
 
15214
- /**
15215
- *
15216
- * @type {Array.<messages.control.StreamEntitlement>}
15217
- */
15218
- this.unsubscribed = null;
15313
+ /**
15314
+ *
15315
+ * @type {Array.<messages.control.StreamEntitlement>}
15316
+ */
15317
+ this.unsubscribed = null;
15219
15318
  };
15220
15319
  messages.control.UnsubscribeResponse.prototype = new messages.control.BaseResponse();
15221
15320
 
15222
- /**
15223
- * Creates an exchange unsubscribe response message.
15224
- * @constructor
15321
+ /**
15322
+ * Creates an exchange unsubscribe response message.
15323
+ * @constructor
15225
15324
  */
15226
15325
  messages.control.ExchangeUnsubscribeResponse = function () {
15227
- this.init(messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE);
15326
+ this.init(messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE);
15228
15327
  };
15229
15328
 
15230
15329
  messages.control.ExchangeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
15231
15330
 
15232
- /**
15233
- * Creates an news un-subscribe response message.
15234
- * @constructor
15331
+ /**
15332
+ * Creates an news un-subscribe response message.
15333
+ * @constructor
15235
15334
  */
15236
15335
  messages.control.NewsUnsubscribeResponse = function () {
15237
- this.init(messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE);
15336
+ this.init(messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE);
15238
15337
 
15239
- /**
15240
- *
15241
- * @type {Array.<messages.control.StreamEntitlement>}
15242
- */
15243
- this.unsubscribed = null;
15338
+ /**
15339
+ *
15340
+ * @type {Array.<messages.control.StreamEntitlement>}
15341
+ */
15342
+ this.unsubscribed = null;
15244
15343
  };
15245
15344
  messages.control.NewsUnsubscribeResponse.prototype = new messages.control.BaseResponse();
15246
15345
 
15247
- /**
15248
- * Creates Trade notification subscribe response message.
15249
- * @constructor
15346
+ /**
15347
+ * Creates Trade notification subscribe response message.
15348
+ * @constructor
15250
15349
  */
15251
15350
  messages.control.TradeUnsubscribeResponse = function () {
15252
- this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
15351
+ this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
15253
15352
  };
15254
15353
 
15255
15354
  messages.control.TradeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
15256
- /**
15257
- * Creates a stream entitlement info.
15258
- * @constructor
15355
+ /**
15356
+ * Creates a stream entitlement info.
15357
+ * @constructor
15259
15358
  */
15260
15359
  messages.control.StreamEntitlement = function () {
15261
- /**
15262
- * The symbol the entitlement is for.
15263
- * @type {string}
15264
- */
15265
- this.symbol = null;
15360
+ /**
15361
+ * The symbol the entitlement is for.
15362
+ * @type {string}
15363
+ */
15364
+ this.symbol = null;
15266
15365
 
15267
- /**
15268
- * The market data type the entitlement is for.
15269
- * @type {string}
15270
- * @see messages.control.MarketdataType
15271
- */
15272
- this.marketdatatype = null;
15366
+ /**
15367
+ * The market data type the entitlement is for.
15368
+ * @type {string}
15369
+ * @see messages.control.MarketdataType
15370
+ */
15371
+ this.marketdatatype = null;
15273
15372
 
15274
- /**
15275
- *
15276
- * @type {string}
15277
- * @see messages.control.StreamEntitlementType
15278
- */
15279
- this.entitlement = null;
15373
+ /**
15374
+ *
15375
+ * @type {string}
15376
+ * @see messages.control.StreamEntitlementType
15377
+ */
15378
+ this.entitlement = null;
15280
15379
  };
15281
15380
 
15282
- /**
15283
- * Creates a new connect response message.
15284
- * @constructor
15381
+ /**
15382
+ * Creates a new connect response message.
15383
+ * @constructor
15285
15384
  */
15286
15385
  messages.control.ConnectResponse = function () {
15287
- this.init(messages.MessageTypeNames.ctrl.CONNECT_RESPONSE);
15386
+ this.init(messages.MessageTypeNames.ctrl.CONNECT_RESPONSE);
15288
15387
 
15289
- /**
15290
- * The server version.
15291
- * @type {string}
15292
- */
15293
- this.version = null;
15388
+ /**
15389
+ * The server version.
15390
+ * @type {string}
15391
+ */
15392
+ this.version = null;
15294
15393
 
15295
- /**
15296
- * The flow control check interval.
15297
- * @type {number}
15298
- */
15299
- this.flowControlCheckInterval = null;
15394
+ /**
15395
+ * The flow control check interval.
15396
+ * @type {number}
15397
+ */
15398
+ this.flowControlCheckInterval = null;
15300
15399
 
15301
- /**
15302
- * The server instance connected to.
15303
- * @type {string}
15304
- */
15305
- this.serverInstance = null;
15400
+ /**
15401
+ * The server instance connected to.
15402
+ * @type {string}
15403
+ */
15404
+ this.serverInstance = null;
15306
15405
 
15307
- /**
15308
- * The conflation rate in milliseconds.
15309
- * @type {number}
15310
- */
15311
- this.conflationMs = null;
15406
+ /**
15407
+ * The conflation rate in milliseconds.
15408
+ * @type {number}
15409
+ */
15410
+ this.conflationMs = null;
15312
15411
  };
15313
15412
  messages.control.ConnectResponse.prototype = new messages.control.BaseResponse();
15314
15413
 
15315
- /**
15316
- * Creates a new reconnect response message
15317
- * @constructor
15414
+ /**
15415
+ * Creates a new reconnect response message
15416
+ * @constructor
15318
15417
  */
15319
15418
  messages.control.ReconnectResponse = function () {
15320
- undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
15419
+ undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
15321
15420
 
15322
- /**
15323
- * The server version.
15324
- * @type {string}
15325
- */
15326
- undefined.version = null;
15421
+ /**
15422
+ * The server version.
15423
+ * @type {string}
15424
+ */
15425
+ undefined.version = null;
15327
15426
 
15328
- /**
15329
- * The flow control check interval.
15330
- * @type {number}
15331
- */
15332
- undefined.flowControlCheckInterval = null;
15427
+ /**
15428
+ * The flow control check interval.
15429
+ * @type {number}
15430
+ */
15431
+ undefined.flowControlCheckInterval = null;
15333
15432
 
15334
- /**
15335
- * The server instance connected to.
15336
- * @type {string}
15337
- */
15338
- undefined.serverInstance = null;
15433
+ /**
15434
+ * The server instance connected to.
15435
+ * @type {string}
15436
+ */
15437
+ undefined.serverInstance = null;
15339
15438
 
15340
- /**
15341
- * The conflation rate in milliseconds.
15342
- * @type {number}
15343
- */
15344
- undefined.conflationMs = null;
15439
+ /**
15440
+ * The conflation rate in milliseconds.
15441
+ * @type {number}
15442
+ */
15443
+ undefined.conflationMs = null;
15345
15444
 
15346
- /**
15347
- * The previous subscriptions
15348
- * @type {Array.<messages.control.StreamEntitlement>}
15349
- */
15350
- undefined.previousSubscriptions = null;
15445
+ /**
15446
+ * The previous subscriptions
15447
+ * @type {Array.<messages.control.StreamEntitlement>}
15448
+ */
15449
+ undefined.previousSubscriptions = null;
15351
15450
  };
15352
15451
 
15353
- /**
15354
- * Creates a connection response message.
15355
- * @constructor
15452
+ /**
15453
+ * Creates a connection response message.
15454
+ * @constructor
15356
15455
  */
15357
15456
  messages.control.ConnectionClose = function () {
15358
- this.init(messages.MessageTypeNames.ctrl.CONNECTION_CLOSE);
15457
+ this.init(messages.MessageTypeNames.ctrl.CONNECTION_CLOSE);
15359
15458
 
15360
- /**
15361
- * The connection close reason code.
15362
- * @type {number}
15363
- * @see {@link messages.control.ResponseCodes}
15364
- */
15365
- this.code = null;
15459
+ /**
15460
+ * The connection close reason code.
15461
+ * @type {number}
15462
+ * @see {@link messages.control.ResponseCodes}
15463
+ */
15464
+ this.code = null;
15366
15465
 
15367
- /**
15368
- * The connection close reason message.
15369
- * @type {string}
15370
- * @see {@link messages.control.ResponseCodes}
15371
- */
15372
- this.reason = null;
15466
+ /**
15467
+ * The connection close reason message.
15468
+ * @type {string}
15469
+ * @see {@link messages.control.ResponseCodes}
15470
+ */
15471
+ this.reason = null;
15373
15472
  };
15374
15473
  messages.control.ConnectionClose.prototype = new messages.control.CtrlMessage();
15375
15474
 
15376
- /**
15377
- * Creates a slow connection response message.
15378
- * @constructor
15475
+ /**
15476
+ * Creates a slow connection response message.
15477
+ * @constructor
15379
15478
  */
15380
15479
  messages.control.SlowConnection = function () {
15381
- this.init(messages.MessageTypeNames.ctrl.SLOW_CONNECTION);
15480
+ this.init(messages.MessageTypeNames.ctrl.SLOW_CONNECTION);
15382
15481
 
15383
- /**
15384
- * The number of times that the connection has exceeded already.
15385
- * @type {number}
15386
- */
15387
- this.timesExceeded = null;
15482
+ /**
15483
+ * The number of times that the connection has exceeded already.
15484
+ * @type {number}
15485
+ */
15486
+ this.timesExceeded = null;
15388
15487
 
15389
- /**
15390
- * The max number allowed. The connection may close after reaching this number.
15391
- * @type {number}
15392
- */
15393
- this.maxExceed = null;
15488
+ /**
15489
+ * The max number allowed. The connection may close after reaching this number.
15490
+ * @type {number}
15491
+ */
15492
+ this.maxExceed = null;
15394
15493
  };
15395
15494
  messages.control.SlowConnection.prototype = new messages.control.CtrlMessage();
15396
15495
 
15397
- /**
15398
- * Creates a flow control message.
15399
- * @constructor
15496
+ /**
15497
+ * Creates a flow control message.
15498
+ * @constructor
15400
15499
  */
15401
15500
  messages.control.FlowMessage = function () {
15402
- this.init(messages.MessageTypeNames.ctrl.FLOW);
15501
+ this.init(messages.MessageTypeNames.ctrl.FLOW);
15403
15502
 
15404
- /**
15405
- * Last received sequence number.
15406
- * @type {number}
15407
- * @see {@link messages.LongSequence}
15408
- */
15409
- this.sequence = null;
15503
+ /**
15504
+ * Last received sequence number.
15505
+ * @type {number}
15506
+ * @see {@link messages.LongSequence}
15507
+ */
15508
+ this.sequence = null;
15410
15509
  };
15411
15510
  messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
15412
15511
 
15413
- /**
15414
- * Creates an Auth message for Stomp connection Auth verification.
15415
- * @constructor
15512
+ /**
15513
+ * Creates an Auth message for Stomp connection Auth verification.
15514
+ * @constructor
15416
15515
  */
15417
15516
  messages.control.AuthenticationMessage = function () {
15418
- this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
15517
+ this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
15419
15518
 
15420
- /**
15421
- * Auth method.
15422
- * @type {String}
15423
- */
15424
- this.authenticationMethod = null;
15519
+ /**
15520
+ * Auth method.
15521
+ * @type {String}
15522
+ */
15523
+ this.authenticationMethod = null;
15425
15524
 
15426
- /**
15427
- * Auth WMID if using enterprise token auth method we need to have both wmid and authorization.
15428
- * @type {String}
15429
- */
15430
- this.wmid = null;
15525
+ /**
15526
+ * Auth WMID if using enterprise token auth method we need to have both wmid and authorization.
15527
+ * @type {String}
15528
+ */
15529
+ this.wmid = null;
15431
15530
 
15432
- /**
15433
- * Auth token.
15434
- * @type {String}
15435
- */
15436
- this.authorization = null;
15531
+ /**
15532
+ * Auth token.
15533
+ * @type {String}
15534
+ */
15535
+ this.authorization = null;
15437
15536
 
15438
- /**
15439
- * Requested conflation. Null indicates using the default conflation.
15440
- * @type {number}
15441
- */
15442
- this.conflation = 150;
15537
+ /**
15538
+ * Requested conflation. Null indicates using the default conflation.
15539
+ * @type {number}
15540
+ */
15541
+ this.conflation = 150;
15443
15542
 
15444
- /**
15445
- *
15446
- * @type {Boolean}
15447
- */
15448
- this.rejectExcessiveConnection = false;
15543
+ /**
15544
+ *
15545
+ * @type {Boolean}
15546
+ */
15547
+ this.rejectExcessiveConnection = false;
15449
15548
  };
15450
15549
  messages.control.AuthenticationMessage.prototype = new messages.control.CtrlMessage();
15451
15550
 
15452
- /**
15453
- * Creates a stats response message.
15454
- * @constructor
15551
+ /**
15552
+ * Creates a stats response message.
15553
+ * @constructor
15455
15554
  */
15456
15555
  messages.control.StatsResponse = function () {
15457
- this.init(messages.MessageTypeNames.ctrl.STATS_RESPONSE);
15556
+ this.init(messages.MessageTypeNames.ctrl.STATS_RESPONSE);
15458
15557
 
15459
- /**
15460
- *
15461
- * @type {number}
15462
- */
15463
- this.numberOfSubscribedSymbolsL1 = null;
15464
- /**
15465
- *
15466
- * @type {number}
15467
- */
15468
- this.numberOfAvailableSymbolsL1 = null;
15469
- /**
15470
- *
15471
- * @type {number}
15472
- */
15473
- this.numberOfSubscribedSymbolsL2 = null;
15474
- /**
15475
- *
15476
- * @type {number}
15477
- */
15478
- this.numberOfAvailableSymbolsL2 = null;
15479
- /**
15480
- *
15481
- * @type {number}
15482
- */
15483
- this.numberOfOpenedConnections = null;
15484
- /**
15485
- *
15486
- * @type {number}
15487
- */
15488
- this.numberOfAvailableConnections = null;
15489
- /**
15490
- *
15491
- * @type {number}
15492
- */
15493
- this.numberOfSubscribedExchanges = null;
15494
- /**
15495
- *
15496
- * @type {number}
15497
- */
15498
- this.numberOfSubscribedTrades = null;
15558
+ /**
15559
+ *
15560
+ * @type {number}
15561
+ */
15562
+ this.numberOfSubscribedSymbolsL1 = null;
15563
+ /**
15564
+ *
15565
+ * @type {number}
15566
+ */
15567
+ this.numberOfAvailableSymbolsL1 = null;
15568
+ /**
15569
+ *
15570
+ * @type {number}
15571
+ */
15572
+ this.numberOfSubscribedSymbolsL2 = null;
15573
+ /**
15574
+ *
15575
+ * @type {number}
15576
+ */
15577
+ this.numberOfAvailableSymbolsL2 = null;
15578
+ /**
15579
+ *
15580
+ * @type {number}
15581
+ */
15582
+ this.numberOfOpenedConnections = null;
15583
+ /**
15584
+ *
15585
+ * @type {number}
15586
+ */
15587
+ this.numberOfAvailableConnections = null;
15588
+ /**
15589
+ *
15590
+ * @type {number}
15591
+ */
15592
+ this.numberOfSubscribedExchanges = null;
15593
+ /**
15594
+ *
15595
+ * @type {number}
15596
+ */
15597
+ this.numberOfSubscribedTrades = null;
15499
15598
  };
15500
15599
  messages.control.StatsResponse.prototype = new messages.control.BaseResponse();
15501
15600
 
15502
- /**
15503
- * Creates a Initial Data Sent response message.
15504
- * @constructor
15601
+ /**
15602
+ * Creates a Initial Data Sent response message.
15603
+ * @constructor
15505
15604
  */
15506
15605
  messages.control.InitialDataSent = function () {
15507
- this.init(messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT);
15606
+ this.init(messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT);
15508
15607
 
15509
- /**
15510
- * The timestamp of message creation.
15511
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15512
- * for connections with QITCH format - {@link JSBI.BigInt}
15513
- */
15514
- this.timestamp = null;
15608
+ /**
15609
+ * The timestamp of message creation.
15610
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15611
+ * for connections with QITCH format - {@link JSBI.BigInt}
15612
+ */
15613
+ this.timestamp = null;
15515
15614
  };
15516
15615
  messages.control.InitialDataSent.prototype = new messages.control.CtrlMessage();
15517
15616
 
15518
- /**
15519
- * Creates a Resubscribe message.
15520
- * @constructor
15617
+ /**
15618
+ * Creates a Resubscribe message.
15619
+ * @constructor
15521
15620
  */
15522
15621
  messages.control.ResubscribeMessage = function () {
15523
- this.init(messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE);
15622
+ this.init(messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE);
15524
15623
 
15525
- /**
15526
- * The timestamp of message creation.
15527
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15528
- * for connections with QITCH format - {@link JSBI.BigInt}
15529
- */
15530
- this.timestamp = null;
15624
+ /**
15625
+ * The timestamp of message creation.
15626
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15627
+ * for connections with QITCH format - {@link JSBI.BigInt}
15628
+ */
15629
+ this.timestamp = null;
15531
15630
  };
15532
15631
  messages.control.ResubscribeMessage.prototype = new messages.control.CtrlMessage();
15533
15632
 
15534
- /**
15535
- * Creates a Missed Data Sent response message.
15536
- * @constructor
15633
+ /**
15634
+ * Creates a Missed Data Sent response message.
15635
+ * @constructor
15537
15636
  */
15538
15637
  messages.control.MissedDataSent = function () {
15539
- this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
15638
+ this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
15540
15639
 
15541
- /**
15542
- * The timestamp of message creation.
15543
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15544
- * for connections with QITCH format - {@link JSBI.BigInt}
15545
- */
15546
- this.timestamp = null;
15640
+ /**
15641
+ * The timestamp of message creation.
15642
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15643
+ * for connections with QITCH format - {@link JSBI.BigInt}
15644
+ */
15645
+ this.timestamp = null;
15547
15646
  };
15548
15647
  messages.control.MissedDataSent.prototype = new messages.control.CtrlMessage();
15549
15648
 
15550
- /**
15551
- * Stream entitlement types.
15552
- * @enum
15553
- * @readonly
15649
+ /**
15650
+ * Stream entitlement types.
15651
+ * @enum
15652
+ * @readonly
15554
15653
  */
15555
15654
  messages.control.StreamEntitlementType = {
15556
- RT: "Realtime",
15557
- RTO: "Realtime CBOE ONE",
15558
- RTN: "Realtime NASDAQ",
15559
- RTB: "Realtime BATS",
15560
- DL: "Delayed",
15561
- DLO: "Delayed CBOE One",
15562
- DLN: "Delayed NASDAQ",
15563
- NA: "Not Entitled"
15655
+ RT: "Realtime",
15656
+ RTO: "Realtime CBOE ONE",
15657
+ RTN: "Realtime NASDAQ",
15658
+ RTB: "Realtime BATS",
15659
+ DL: "Delayed",
15660
+ DLO: "Delayed CBOE One",
15661
+ DLN: "Delayed NASDAQ",
15662
+ NA: "Not Entitled"
15564
15663
  };
15565
15664
 
15566
- /**
15567
- * Enumeration for subscription actions.
15568
- * @enum
15569
- * @readonly
15665
+ /**
15666
+ * Enumeration for subscription actions.
15667
+ * @enum
15668
+ * @readonly
15570
15669
  */
15571
15670
  messages.control.Action = {
15572
- SUBSCRIBE: "SUBSCRIBE",
15573
- UNSUBSCRIBE: "UNSUBSCRIBE"
15671
+ SUBSCRIBE: "SUBSCRIBE",
15672
+ UNSUBSCRIBE: "UNSUBSCRIBE"
15574
15673
  };
15575
15674
 
15576
- /**
15577
- * Enumeration for associations.
15578
- * @enum
15579
- * @readonly
15675
+ /**
15676
+ * Enumeration for associations.
15677
+ * @enum
15678
+ * @readonly
15580
15679
  */
15581
15680
  messages.control.Association = {
15582
- AND: "AND",
15583
- OR: "OR",
15584
- NOT: "NOT"
15681
+ AND: "AND",
15682
+ OR: "OR",
15683
+ NOT: "NOT"
15585
15684
  };
15586
15685
 
15587
- /**
15588
- * Enumeration for streaming message types.
15589
- * @enum
15590
- * @readonly
15591
- * @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
15686
+ /**
15687
+ * Enumeration for streaming message types.
15688
+ * @enum
15689
+ * @readonly
15690
+ * @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
15592
15691
  */
15593
15692
  messages.control.MarketdataType = {
15594
- QUOTE: "QUOTE",
15595
- PRICEDATA: "PRICEDATA",
15596
- TRADE: "TRADE",
15597
- MMQUOTE: "MMQUOTE",
15598
- ORDERBOOK: "ORDERBOOK",
15599
- INTERVAL: "INTERVAL",
15600
- NETHOUSEPOSITION: "NETHOUSEPOSITION",
15601
- LASTSALE: "LASTSALE",
15602
- BOOKORDER: "BOOKORDER",
15603
- BOOKDELETE: "BOOKDELETE",
15604
- PURGEBOOK: "PURGEBOOK",
15605
- LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15606
- IVGREEKS: "IVGREEKS",
15607
- IMBALANCESTATUS: "IMBALANCESTATUS"
15693
+ QUOTE: "QUOTE",
15694
+ PRICEDATA: "PRICEDATA",
15695
+ TRADE: "TRADE",
15696
+ MMQUOTE: "MMQUOTE",
15697
+ ORDERBOOK: "ORDERBOOK",
15698
+ INTERVAL: "INTERVAL",
15699
+ NETHOUSEPOSITION: "NETHOUSEPOSITION",
15700
+ LASTSALE: "LASTSALE",
15701
+ BOOKORDER: "BOOKORDER",
15702
+ BOOKDELETE: "BOOKDELETE",
15703
+ PURGEBOOK: "PURGEBOOK",
15704
+ LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15705
+ IVGREEKS: "IVGREEKS",
15706
+ IMBALANCESTATUS: "IMBALANCESTATUS"
15608
15707
  };
15609
15708
 
15610
- /**
15611
- * Enum for the allowed subscription types
15612
- * @enum
15613
- * @readonly
15709
+ /**
15710
+ * Enum for the allowed subscription types
15711
+ * @enum
15712
+ * @readonly
15614
15713
  */
15615
15714
  messages.market.SubscriptionTypes = {
15616
- QUOTE: "QUOTE",
15617
- PRICEDATA: "PRICEDATA",
15618
- TRADE: "TRADE",
15619
- MMQUOTE: "MMQUOTE",
15620
- ORDERBOOK: "ORDERBOOK",
15621
- INTERVAL: "INTERVAL",
15622
- NETHOUSEPOSITION: "NETHOUSEPOSITION",
15623
- LASTSALE: "LASTSALE",
15624
- LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15625
- IVGREEKS: "IVGREEKS",
15626
- IMBALANCESTATUS: "IMBALANCESTATUS"
15715
+ QUOTE: "QUOTE",
15716
+ PRICEDATA: "PRICEDATA",
15717
+ TRADE: "TRADE",
15718
+ MMQUOTE: "MMQUOTE",
15719
+ ORDERBOOK: "ORDERBOOK",
15720
+ INTERVAL: "INTERVAL",
15721
+ NETHOUSEPOSITION: "NETHOUSEPOSITION",
15722
+ LASTSALE: "LASTSALE",
15723
+ LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15724
+ IVGREEKS: "IVGREEKS",
15725
+ IMBALANCESTATUS: "IMBALANCESTATUS"
15627
15726
 
15628
- /**
15629
- * Enum for streamer responses from server
15630
- * @enum
15631
- * @readonly
15632
- */
15727
+ /**
15728
+ * Enum for streamer responses from server
15729
+ * @enum
15730
+ * @readonly
15731
+ */
15633
15732
  };messages.market.MarketDataResponseTypes = {
15634
- QUOTE: "QUOTE",
15635
- PRICEDATA: "PRICEDATA",
15636
- TRADE: "TRADE",
15637
- INTERVAL: "INTERVAL",
15638
- NETHOUSEPOSITION: "NETHOUSEPOSITION",
15639
- MMQUOTE: "MMQUOTE",
15640
- BOOKORDER: "BOOKORDER",
15641
- PURGEBOOK: "PURGEBOOK",
15642
- BOOKDELETE: "BOOKDELETE",
15643
- SYMBOLINFO: "SYMBOLINFO",
15644
- SYMBOLSTATUS: "SYMBOLSTATUS",
15645
- DERIVATIVEINFO: "DERIVATIVEINFO",
15646
- LASTSALE: "LASTSALE",
15647
- LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15648
- IVGREEKS: "IVGREEKS",
15649
- IMBALANCESTATUS: "IMBALANCESTATUS",
15650
- ALERT: "ALERT",
15651
- NEWS: "NEWS",
15652
- TRADENOTIFICATION: "TRADENOTIFICATION",
15653
- NEWSCMDFILTER: "NEWSCMDFILTER",
15654
- NEWSERROR: "NEWSERROR",
15655
- DIVIDEND: "DIVIDEND"
15733
+ QUOTE: "QUOTE",
15734
+ PRICEDATA: "PRICEDATA",
15735
+ TRADE: "TRADE",
15736
+ INTERVAL: "INTERVAL",
15737
+ NETHOUSEPOSITION: "NETHOUSEPOSITION",
15738
+ MMQUOTE: "MMQUOTE",
15739
+ BOOKORDER: "BOOKORDER",
15740
+ PURGEBOOK: "PURGEBOOK",
15741
+ BOOKDELETE: "BOOKDELETE",
15742
+ SYMBOLINFO: "SYMBOLINFO",
15743
+ SYMBOLSTATUS: "SYMBOLSTATUS",
15744
+ DERIVATIVEINFO: "DERIVATIVEINFO",
15745
+ LASTSALE: "LASTSALE",
15746
+ LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15747
+ IVGREEKS: "IVGREEKS",
15748
+ IMBALANCESTATUS: "IMBALANCESTATUS",
15749
+ ALERT: "ALERT",
15750
+ NEWS: "NEWS",
15751
+ TRADENOTIFICATION: "TRADENOTIFICATION",
15752
+ NEWSCMDFILTER: "NEWSCMDFILTER",
15753
+ NEWSERROR: "NEWSERROR",
15754
+ DIVIDEND: "DIVIDEND"
15656
15755
 
15657
- /**
15658
- * Response codes and reasons.
15659
- * @enum
15660
- * @readonly
15661
- */
15756
+ /**
15757
+ * Response codes and reasons.
15758
+ * @enum
15759
+ * @readonly
15760
+ */
15662
15761
  };messages.control.ResponseCodes = {
15663
- OK_CODE: 200,
15664
- OK_REASON: "OK",
15762
+ OK_CODE: 200,
15763
+ OK_REASON: "OK",
15665
15764
 
15666
- BADREQUEST_CODE: 400,
15667
- BADREQUEST_REASON: "Bad Request",
15765
+ BADREQUEST_CODE: 400,
15766
+ BADREQUEST_REASON: "Bad Request",
15668
15767
 
15669
- UNAUTHORIZED_CODE: 401,
15670
- UNAUTHORIZED_REASON: "Unauthorized",
15768
+ UNAUTHORIZED_CODE: 401,
15769
+ UNAUTHORIZED_REASON: "Unauthorized",
15671
15770
 
15672
- TOOSLOW_CODE: 450,
15673
- TOOSLOW_REASON: "Too slow",
15771
+ TOOSLOW_CODE: 450,
15772
+ TOOSLOW_REASON: "Too slow",
15674
15773
 
15675
- DATA_SOURCE_RESET: 454,
15676
- DATA_SOURCE_RESET_REASON: "Data Source Was Reset",
15774
+ DATA_SOURCE_RESET: 454,
15775
+ DATA_SOURCE_RESET_REASON: "Data Source Was Reset",
15677
15776
 
15678
- CONNECTION_LIMIT_EXCEEDED_CODE: 452,
15679
- CONNECTION_LIMIT_EXCEEDED_REASON: "Connection Limit Exceeded",
15777
+ CONNECTION_LIMIT_EXCEEDED_CODE: 452,
15778
+ CONNECTION_LIMIT_EXCEEDED_REASON: "Connection Limit Exceeded",
15680
15779
 
15681
- INTERNALSERVERERROR_CODE: 500,
15682
- INTERNALSERVERERROR_REASON: "Internal Server Error"
15780
+ INTERNALSERVERERROR_CODE: 500,
15781
+ INTERNALSERVERERROR_REASON: "Internal Server Error"
15683
15782
  };
15684
15783
 
15685
15784
  /* ****************************************************************************************************************** */
15686
15785
 
15687
- /**
15688
- * Base type for all market data exports.
15689
- * @constructor
15690
- * @abstract
15786
+ /**
15787
+ * Base type for all market data exports.
15788
+ * @constructor
15789
+ * @abstract
15691
15790
  */
15692
15791
  messages.market.DataMessage = function () {
15693
- /**
15694
- * The message type.
15695
- * @type {number}
15696
- * @see messages.MessageTypeNames_0.data
15697
- */
15698
- this.messageType = null;
15792
+ /**
15793
+ * The message type.
15794
+ * @type {number}
15795
+ * @see messages.MessageTypeNames_0.data
15796
+ */
15797
+ this.messageType = null;
15699
15798
  };
15700
15799
  messages.market.DataMessage.prototype = new messages.Message();
15701
15800
 
15702
- /**
15703
- *
15704
- * @constructor
15801
+ /**
15802
+ *
15803
+ * @constructor
15705
15804
  */
15706
15805
  messages.market.Quote = function () {
15707
- this.init(messages.MessageTypeNames.data.QUOTE);
15806
+ this.init(messages.MessageTypeNames.data.QUOTE);
15708
15807
 
15709
- // TODO properties
15808
+ // TODO properties
15710
15809
  };
15711
15810
  messages.market.Quote.prototype = new messages.market.DataMessage();
15712
15811
 
15713
- /**
15714
- *
15715
- * @constructor
15812
+ /**
15813
+ *
15814
+ * @constructor
15716
15815
  */
15717
15816
  messages.market.PriceData = function () {
15718
- this.init(messages.MessageTypeNames.data.PRICEDATA);
15817
+ this.init(messages.MessageTypeNames.data.PRICEDATA);
15719
15818
 
15720
- // TODO properties
15819
+ // TODO properties
15721
15820
  };
15722
15821
  messages.market.PriceData.prototype = new messages.market.DataMessage();
15723
15822
 
15724
- /**
15725
- *
15726
- * @constructor
15823
+ /**
15824
+ *
15825
+ * @constructor
15727
15826
  */
15728
15827
  messages.market.Trade = function () {
15729
- this.init(messages.MessageTypeNames.data.TRADE);
15828
+ this.init(messages.MessageTypeNames.data.TRADE);
15730
15829
 
15731
- // TODO properties
15830
+ // TODO properties
15732
15831
  };
15733
15832
  messages.market.Trade.prototype = new messages.market.DataMessage();
15734
15833
 
15735
- /**
15736
- *
15737
- * @constructor
15834
+ /**
15835
+ *
15836
+ * @constructor
15738
15837
  */
15739
15838
  messages.market.MMQuote = function () {
15740
- this.init(messages.MessageTypeNames.data.MMQUOTE);
15839
+ this.init(messages.MessageTypeNames.data.MMQUOTE);
15741
15840
 
15742
- // TODO properties
15841
+ // TODO properties
15743
15842
  };
15744
15843
  messages.market.MMQuote.prototype = new messages.market.DataMessage();
15745
15844
 
15746
- /**
15747
- *
15748
- * @constructor
15845
+ /**
15846
+ *
15847
+ * @constructor
15749
15848
  */
15750
15849
  messages.market.PurgeBook = function () {
15751
- this.init(messages.MessageTypeNames.data.PURGEBOOK);
15850
+ this.init(messages.MessageTypeNames.data.PURGEBOOK);
15752
15851
 
15753
- // TODO properties
15852
+ // TODO properties
15754
15853
  };
15755
15854
  messages.market.PurgeBook.prototype = new messages.market.DataMessage();
15756
15855
 
15757
- /**
15758
- *
15759
- * @constructor
15856
+ /**
15857
+ *
15858
+ * @constructor
15760
15859
  */
15761
15860
  messages.market.BookOrder = function () {
15762
- this.init(messages.MessageTypeNames.data.BOOKORDER);
15861
+ this.init(messages.MessageTypeNames.data.BOOKORDER);
15763
15862
 
15764
- // TODO properties
15863
+ // TODO properties
15765
15864
  };
15766
15865
  messages.market.BookOrder.prototype = new messages.market.DataMessage();
15767
15866
 
15768
- /**
15769
- *
15770
- * @constructor
15867
+ /**
15868
+ *
15869
+ * @constructor
15771
15870
  */
15772
15871
  messages.market.BookDelete = function () {
15773
- this.init(messages.MessageTypeNames.data.BOOKDELETE);
15872
+ this.init(messages.MessageTypeNames.data.BOOKDELETE);
15774
15873
 
15775
- // TODO properties
15874
+ // TODO properties
15776
15875
  };
15777
15876
  messages.market.BookDelete.prototype = new messages.market.DataMessage();
15778
15877
 
15779
- /**
15780
- *
15781
- * @constructor
15878
+ /**
15879
+ *
15880
+ * @constructor
15782
15881
  */
15783
15882
  messages.market.Interval = function () {
15784
- this.init(messages.MessageTypeNames.data.INTERVAL);
15883
+ this.init(messages.MessageTypeNames.data.INTERVAL);
15785
15884
 
15786
- // TODO properties
15885
+ // TODO properties
15787
15886
  };
15788
15887
  messages.market.Interval.prototype = new messages.market.DataMessage();
15789
15888
 
15790
- /**
15791
- *
15792
- * @constructor
15889
+ /**
15890
+ *
15891
+ * @constructor
15793
15892
  */
15794
15893
  messages.market.NethousePosition = function () {
15795
- this.init(messages.MessageTypeNames.data.NETHOUSEPOSITION);
15894
+ this.init(messages.MessageTypeNames.data.NETHOUSEPOSITION);
15796
15895
 
15797
- // TODO properties
15896
+ // TODO properties
15798
15897
  };
15799
15898
  messages.market.NethousePosition.prototype = new messages.market.DataMessage();
15800
15899
 
15801
- /**
15802
- *
15803
- * @constructor
15900
+ /**
15901
+ *
15902
+ * @constructor
15804
15903
  */
15805
15904
  messages.market.SymbolInfo = function () {
15806
- this.init(messages.MessageTypeNames.data.SYMBOLINFO);
15905
+ this.init(messages.MessageTypeNames.data.SYMBOLINFO);
15807
15906
 
15808
- // TODO properties
15907
+ // TODO properties
15809
15908
  };
15810
15909
  messages.market.SymbolInfo.prototype = new messages.market.DataMessage();
15811
15910
 
15812
- /**
15813
- *
15814
- * @constructor
15911
+ /**
15912
+ *
15913
+ * @constructor
15815
15914
  */
15816
15915
  messages.market.SymbolStatus = function () {
15817
- this.init(messages.MessageTypeNames.data.SYMBOLSTATUS);
15916
+ this.init(messages.MessageTypeNames.data.SYMBOLSTATUS);
15818
15917
 
15819
- // TODO properties
15918
+ // TODO properties
15820
15919
  };
15821
15920
  messages.market.SymbolStatus.prototype = new messages.market.DataMessage();
15822
15921
 
15823
- /**
15824
- *
15825
- * @constructor
15922
+ /**
15923
+ *
15924
+ * @constructor
15826
15925
  */
15827
15926
  messages.market.DerivativeInfo = function () {
15828
- this.init(messages.MessageTypeNames.data.DERIVATIVEINFO);
15927
+ this.init(messages.MessageTypeNames.data.DERIVATIVEINFO);
15829
15928
 
15830
- // TODO properties
15929
+ // TODO properties
15831
15930
  };
15832
15931
  messages.market.DerivativeInfo.prototype = new messages.market.DataMessage();
15833
15932
 
15834
- /**
15835
- *
15836
- * @constructor
15933
+ /**
15934
+ *
15935
+ * @constructor
15837
15936
  */
15838
15937
  messages.market.IVGreeks = function () {
15839
- this.init(messages.MessageTypeNames.data.IVGREEKS);
15938
+ this.init(messages.MessageTypeNames.data.IVGREEKS);
15840
15939
 
15841
- // TODO properties
15940
+ // TODO properties
15842
15941
  };
15843
15942
  messages.market.IVGreeks.prototype = new messages.market.DataMessage();
15844
15943
 
15845
- /**
15846
- *
15847
- * @constructor
15944
+ /**
15945
+ *
15946
+ * @constructor
15848
15947
  */
15849
15948
  messages.market.LastSale = function () {
15850
- this.init(messages.MessageTypeNames.data.LASTSALE);
15949
+ this.init(messages.MessageTypeNames.data.LASTSALE);
15851
15950
 
15852
- // TODO properties
15951
+ // TODO properties
15853
15952
  };
15854
15953
  messages.market.LastSale.prototype = new messages.market.DataMessage();
15855
15954
 
15856
- /**
15857
- *
15858
- * @constructor
15955
+ /**
15956
+ *
15957
+ * @constructor
15859
15958
  */
15860
15959
  messages.market.LimitUpLimitDown = function () {
15861
- this.init(messages.MessageTypeNames.data.LIMITUPLIMITDOWN);
15960
+ this.init(messages.MessageTypeNames.data.LIMITUPLIMITDOWN);
15862
15961
 
15863
- // TODO properties
15962
+ // TODO properties
15864
15963
  };
15865
15964
  messages.market.LimitUpLimitDown.prototype = new messages.market.DataMessage();
15866
15965
 
15867
- /**
15868
- *
15869
- * @constructor
15966
+ /**
15967
+ *
15968
+ * @constructor
15870
15969
  */
15871
15970
  messages.market.ImbalanceStatus = function () {
15872
- this.init(messages.MessageTypeNames.data.IMBALANCESTATUS);
15971
+ this.init(messages.MessageTypeNames.data.IMBALANCESTATUS);
15873
15972
 
15874
- // TODO properties
15973
+ // TODO properties
15875
15974
  };
15876
15975
  messages.market.ImbalanceStatus.prototype = new messages.market.DataMessage();
15877
15976
 
15878
15977
  messages.market.Alert = function () {
15879
- this.init(messages.MessageTypeNames.data.ALERT);
15978
+ this.init(messages.MessageTypeNames.data.ALERT);
15880
15979
 
15881
- // TODO properties
15980
+ // TODO properties
15882
15981
  };
15883
15982
  messages.market.Alert.prototype = new messages.market.DataMessage();
15884
15983
 
15885
- /**
15886
- * Enumeration for instrument types.
15887
- * @enum
15888
- * @readonly
15984
+ /**
15985
+ * Enumeration for instrument types.
15986
+ * @enum
15987
+ * @readonly
15889
15988
  */
15890
15989
  messages.market.InstrumentType = {
15891
- 1: "CASH",
15892
- 2: "BOND",
15893
- 3: "COMPOSITE",
15894
- 4: "FUTURE",
15895
- 5: "FUTURE_OPTION",
15896
- 6: "FOREX",
15897
- 7: "INDEX",
15898
- 8: "MUTUAL_FUND",
15899
- 9: "MONEY_MARKET_FUND",
15900
- 10: "MARKET_STAT",
15901
- 11: "EQUITY",
15902
- 12: "EQUITY_OPTION",
15903
- 13: "GOVT_BOND",
15904
- 14: "MUNI_BOND",
15905
- 15: "CORP_BOND",
15906
- 16: "ETF",
15907
- 17: "FUTURE_SPREAD",
15908
- 97: "OPTION_ROOT",
15909
- 98: "UNKNOWN",
15910
- 99: "RATE"
15990
+ 1: "CASH",
15991
+ 2: "BOND",
15992
+ 3: "COMPOSITE",
15993
+ 4: "FUTURE",
15994
+ 5: "FUTURE_OPTION",
15995
+ 6: "FOREX",
15996
+ 7: "INDEX",
15997
+ 8: "MUTUAL_FUND",
15998
+ 9: "MONEY_MARKET_FUND",
15999
+ 10: "MARKET_STAT",
16000
+ 11: "EQUITY",
16001
+ 12: "EQUITY_OPTION",
16002
+ 13: "GOVT_BOND",
16003
+ 14: "MUNI_BOND",
16004
+ 15: "CORP_BOND",
16005
+ 16: "ETF",
16006
+ 17: "FUTURE_SPREAD",
16007
+ 97: "OPTION_ROOT",
16008
+ 98: "UNKNOWN",
16009
+ 99: "RATE"
15911
16010
  };
15912
16011
 
15913
- /**
15914
- * Enumeration vor order side.
15915
- * @enum
15916
- * @readonly
16012
+ /**
16013
+ * Enumeration vor order side.
16014
+ * @enum
16015
+ * @readonly
15917
16016
  */
15918
16017
  messages.market.OrderSide = {
15919
- BUYSIDE: 'B',
15920
- SELLSIDE: 'S'
16018
+ BUYSIDE: 'B',
16019
+ SELLSIDE: 'S'
15921
16020
  };
15922
16021
 
15923
- /**
15924
- * Enumeration for imbalance types.
15925
- * @enum
15926
- * @readonly
16022
+ /**
16023
+ * Enumeration for imbalance types.
16024
+ * @enum
16025
+ * @readonly
15927
16026
  */
15928
16027
  messages.market.ImbalanceType = {
15929
- 0: "NONE",
15930
- 1: "MARKET",
15931
- 2: "MOC",
15932
- 3: "REGULATORY_IMBALANCE",
15933
- 4: "OPENING_IMBALANCE",
15934
- 5: "CLOSING_IMBALANCE",
15935
- 6: "IPO_IMBALANCE",
15936
- 7: "HALT_IMBALANCE",
15937
- 8: "EQUILIBRIUM"
16028
+ 0: "NONE",
16029
+ 1: "MARKET",
16030
+ 2: "MOC",
16031
+ 3: "REGULATORY_IMBALANCE",
16032
+ 4: "OPENING_IMBALANCE",
16033
+ 5: "CLOSING_IMBALANCE",
16034
+ 6: "IPO_IMBALANCE",
16035
+ 7: "HALT_IMBALANCE",
16036
+ 8: "EQUILIBRIUM"
15938
16037
  };
15939
16038
 
15940
- /**
15941
- * Enumeration for book order change types.
15942
- * @enum
15943
- * @readonly
16039
+ /**
16040
+ * Enumeration for book order change types.
16041
+ * @enum
16042
+ * @readonly
15944
16043
  */
15945
16044
  messages.market.OrderChangeType = {
15946
- 'A': "ADD",
15947
- 'M': "MODIFY",
15948
- 'C': "CANCEL",
15949
- 'E': "EXECUTE"
16045
+ 'A': "ADD",
16046
+ 'M': "MODIFY",
16047
+ 'C': "CANCEL",
16048
+ 'E': "EXECUTE"
15950
16049
  };
15951
16050
  }).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/streamer-api.js","/lib")
15952
16051
  },{"_process":131,"buffer":121,"timers":152}],109:[function(require,module,exports){
@@ -16275,8 +16374,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
16275
16374
 
16276
16375
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16277
16376
 
16278
- /*
16279
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
16377
+ /*
16378
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
16280
16379
  */
16281
16380
  var QitchTransmitter = function () {
16282
16381
  function QitchTransmitter(socket, encoder, log) {