@quotemedia.com/streamer 2.41.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +157 -157
- package/examples/enduser-example.html +198 -198
- package/examples/enterprise-token-example.html +177 -177
- package/examples/reconnect-example.html +278 -278
- package/examples/stomp-3rd-party-library-example.html +681 -681
- package/examples/subscription-example.html +252 -252
- package/examples/wmid-example.html +176 -176
- package/package.json +38 -38
- package/{qmci-streamer-2.41.0.js → qmci-streamer-2.43.0.js} +1477 -1456
- package/{qmci-streamer-2.41.0.min.js → qmci-streamer-2.43.0.min.js} +2 -2
- package/examples/user-access-token-example.html +0 -177
|
@@ -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
|
};
|
|
@@ -2197,38 +2197,38 @@ exports["default"] = UShortId;
|
|
|
2197
2197
|
|
|
2198
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; };
|
|
2199
2199
|
|
|
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.
|
|
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.
|
|
2214
2214
|
*/
|
|
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.
|
|
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.
|
|
2222
2222
|
*/
|
|
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/
|
|
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/
|
|
2232
2232
|
*/
|
|
2233
2233
|
(function (root, factory) {
|
|
2234
2234
|
if (typeof define === "function" && define.amd) {
|
|
@@ -2268,41 +2268,41 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2268
2268
|
onClientTimeout: function onClientTimeout(request) {},
|
|
2269
2269
|
onOpenAfterResume: function onOpenAfterResume(request) {},
|
|
2270
2270
|
|
|
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
|
|
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
|
|
2277
2277
|
*/
|
|
2278
2278
|
WebsocketApiAdapter: function WebsocketApiAdapter(request) {
|
|
2279
2279
|
var _socket, _adapter;
|
|
2280
2280
|
|
|
2281
|
-
/**
|
|
2282
|
-
* Overrides the onMessage callback in given request.
|
|
2283
|
-
*
|
|
2284
|
-
* @method onMessage
|
|
2285
|
-
* @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
|
|
2286
2286
|
*/
|
|
2287
2287
|
request.onMessage = function (e) {
|
|
2288
2288
|
_adapter.onmessage({ data: e.responseBody });
|
|
2289
2289
|
};
|
|
2290
2290
|
|
|
2291
|
-
/**
|
|
2292
|
-
* Overrides the onMessagePublished callback in given request.
|
|
2293
|
-
*
|
|
2294
|
-
* @method onMessagePublished
|
|
2295
|
-
* @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
|
|
2296
2296
|
*/
|
|
2297
2297
|
request.onMessagePublished = function (e) {
|
|
2298
2298
|
_adapter.onmessage({ data: e.responseBody });
|
|
2299
2299
|
};
|
|
2300
2300
|
|
|
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
|
|
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
|
|
2306
2306
|
*/
|
|
2307
2307
|
request.onOpen = function (e) {
|
|
2308
2308
|
_adapter.onopen(e);
|
|
@@ -2332,10 +2332,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2332
2332
|
|
|
2333
2333
|
AtmosphereRequest: function AtmosphereRequest(options) {
|
|
2334
2334
|
|
|
2335
|
-
/**
|
|
2336
|
-
* {Object} Request parameters.
|
|
2337
|
-
*
|
|
2338
|
-
* @private
|
|
2335
|
+
/**
|
|
2336
|
+
* {Object} Request parameters.
|
|
2337
|
+
*
|
|
2338
|
+
* @private
|
|
2339
2339
|
*/
|
|
2340
2340
|
var _request = {
|
|
2341
2341
|
timeout: 300000,
|
|
@@ -2400,10 +2400,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2400
2400
|
onOpenAfterResume: function onOpenAfterResume(request) {}
|
|
2401
2401
|
};
|
|
2402
2402
|
|
|
2403
|
-
/**
|
|
2404
|
-
* {Object} Request's last response.
|
|
2405
|
-
*
|
|
2406
|
-
* @private
|
|
2403
|
+
/**
|
|
2404
|
+
* {Object} Request's last response.
|
|
2405
|
+
*
|
|
2406
|
+
* @private
|
|
2407
2407
|
*/
|
|
2408
2408
|
var _response = {
|
|
2409
2409
|
status: 200,
|
|
@@ -2421,101 +2421,101 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2421
2421
|
ffTryingReconnect: false
|
|
2422
2422
|
};
|
|
2423
2423
|
|
|
2424
|
-
/**
|
|
2425
|
-
* {websocket} Opened web socket.
|
|
2426
|
-
*
|
|
2427
|
-
* @private
|
|
2424
|
+
/**
|
|
2425
|
+
* {websocket} Opened web socket.
|
|
2426
|
+
*
|
|
2427
|
+
* @private
|
|
2428
2428
|
*/
|
|
2429
2429
|
var _websocket = null;
|
|
2430
2430
|
|
|
2431
|
-
/**
|
|
2432
|
-
* {SSE} Opened SSE.
|
|
2433
|
-
*
|
|
2434
|
-
* @private
|
|
2431
|
+
/**
|
|
2432
|
+
* {SSE} Opened SSE.
|
|
2433
|
+
*
|
|
2434
|
+
* @private
|
|
2435
2435
|
*/
|
|
2436
2436
|
var _sse = null;
|
|
2437
2437
|
|
|
2438
|
-
/**
|
|
2439
|
-
* {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
|
|
2440
|
-
*
|
|
2441
|
-
* @private
|
|
2438
|
+
/**
|
|
2439
|
+
* {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
|
|
2440
|
+
*
|
|
2441
|
+
* @private
|
|
2442
2442
|
*/
|
|
2443
2443
|
var _activeRequest = null;
|
|
2444
2444
|
|
|
2445
|
-
/**
|
|
2446
|
-
* {Object} Object use for streaming with IE.
|
|
2447
|
-
*
|
|
2448
|
-
* @private
|
|
2445
|
+
/**
|
|
2446
|
+
* {Object} Object use for streaming with IE.
|
|
2447
|
+
*
|
|
2448
|
+
* @private
|
|
2449
2449
|
*/
|
|
2450
2450
|
var _ieStream = null;
|
|
2451
2451
|
|
|
2452
|
-
/**
|
|
2453
|
-
* {Object} Object use for jsonp transport.
|
|
2454
|
-
*
|
|
2455
|
-
* @private
|
|
2452
|
+
/**
|
|
2453
|
+
* {Object} Object use for jsonp transport.
|
|
2454
|
+
*
|
|
2455
|
+
* @private
|
|
2456
2456
|
*/
|
|
2457
2457
|
var _jqxhr = null;
|
|
2458
2458
|
|
|
2459
|
-
/**
|
|
2460
|
-
* {boolean} If request has been subscribed or not.
|
|
2461
|
-
*
|
|
2462
|
-
* @private
|
|
2459
|
+
/**
|
|
2460
|
+
* {boolean} If request has been subscribed or not.
|
|
2461
|
+
*
|
|
2462
|
+
* @private
|
|
2463
2463
|
*/
|
|
2464
2464
|
var _subscribed = true;
|
|
2465
2465
|
|
|
2466
|
-
/**
|
|
2467
|
-
* {number} Number of test reconnection.
|
|
2468
|
-
*
|
|
2469
|
-
* @private
|
|
2466
|
+
/**
|
|
2467
|
+
* {number} Number of test reconnection.
|
|
2468
|
+
*
|
|
2469
|
+
* @private
|
|
2470
2470
|
*/
|
|
2471
2471
|
var _requestCount = 0;
|
|
2472
2472
|
|
|
2473
|
-
/**
|
|
2474
|
-
* The Heartbeat interval send by the server.
|
|
2475
|
-
* @type {int}
|
|
2476
|
-
* @private
|
|
2473
|
+
/**
|
|
2474
|
+
* The Heartbeat interval send by the server.
|
|
2475
|
+
* @type {int}
|
|
2476
|
+
* @private
|
|
2477
2477
|
*/
|
|
2478
2478
|
var _heartbeatInterval = 0;
|
|
2479
2479
|
|
|
2480
|
-
/**
|
|
2481
|
-
* The Heartbeat bytes send by the server.
|
|
2482
|
-
* @type {string}
|
|
2483
|
-
* @private
|
|
2480
|
+
/**
|
|
2481
|
+
* The Heartbeat bytes send by the server.
|
|
2482
|
+
* @type {string}
|
|
2483
|
+
* @private
|
|
2484
2484
|
*/
|
|
2485
2485
|
var _heartbeatPadding = 'X';
|
|
2486
2486
|
|
|
2487
|
-
/**
|
|
2488
|
-
* {boolean} If request is currently aborted.
|
|
2489
|
-
*
|
|
2490
|
-
* @private
|
|
2487
|
+
/**
|
|
2488
|
+
* {boolean} If request is currently aborted.
|
|
2489
|
+
*
|
|
2490
|
+
* @private
|
|
2491
2491
|
*/
|
|
2492
2492
|
var _abortingConnection = false;
|
|
2493
2493
|
|
|
2494
|
-
/**
|
|
2495
|
-
* A local "channel' of communication.
|
|
2496
|
-
*
|
|
2497
|
-
* @private
|
|
2494
|
+
/**
|
|
2495
|
+
* A local "channel' of communication.
|
|
2496
|
+
*
|
|
2497
|
+
* @private
|
|
2498
2498
|
*/
|
|
2499
2499
|
var _localSocketF = null;
|
|
2500
2500
|
|
|
2501
|
-
/**
|
|
2502
|
-
* The storage used.
|
|
2503
|
-
*
|
|
2504
|
-
* @private
|
|
2501
|
+
/**
|
|
2502
|
+
* The storage used.
|
|
2503
|
+
*
|
|
2504
|
+
* @private
|
|
2505
2505
|
*/
|
|
2506
2506
|
var _storageService;
|
|
2507
2507
|
|
|
2508
|
-
/**
|
|
2509
|
-
* Local communication
|
|
2510
|
-
*
|
|
2511
|
-
* @private
|
|
2508
|
+
/**
|
|
2509
|
+
* Local communication
|
|
2510
|
+
*
|
|
2511
|
+
* @private
|
|
2512
2512
|
*/
|
|
2513
2513
|
var _localStorageService = null;
|
|
2514
2514
|
|
|
2515
|
-
/**
|
|
2516
|
-
* A Unique ID
|
|
2517
|
-
*
|
|
2518
|
-
* @private
|
|
2515
|
+
/**
|
|
2516
|
+
* A Unique ID
|
|
2517
|
+
*
|
|
2518
|
+
* @private
|
|
2519
2519
|
*/
|
|
2520
2520
|
var guid = atmosphere.util.now();
|
|
2521
2521
|
|
|
@@ -2525,21 +2525,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2525
2525
|
/** Key for connection sharing */
|
|
2526
2526
|
var _sharingKey;
|
|
2527
2527
|
|
|
2528
|
-
/**
|
|
2529
|
-
* {boolean} If window beforeUnload event has been called.
|
|
2530
|
-
* Flag will be reset after 5000 ms
|
|
2531
|
-
*
|
|
2532
|
-
* @private
|
|
2528
|
+
/**
|
|
2529
|
+
* {boolean} If window beforeUnload event has been called.
|
|
2530
|
+
* Flag will be reset after 5000 ms
|
|
2531
|
+
*
|
|
2532
|
+
* @private
|
|
2533
2533
|
*/
|
|
2534
2534
|
var _beforeUnloadState = false;
|
|
2535
2535
|
|
|
2536
2536
|
// Automatic call to subscribe
|
|
2537
2537
|
_subscribe(options);
|
|
2538
2538
|
|
|
2539
|
-
/**
|
|
2540
|
-
* Initialize atmosphere request object.
|
|
2541
|
-
*
|
|
2542
|
-
* @private
|
|
2539
|
+
/**
|
|
2540
|
+
* Initialize atmosphere request object.
|
|
2541
|
+
*
|
|
2542
|
+
* @private
|
|
2543
2543
|
*/
|
|
2544
2544
|
function _init() {
|
|
2545
2545
|
_subscribed = true;
|
|
@@ -2552,20 +2552,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2552
2552
|
_ieStream = null;
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
|
-
/**
|
|
2556
|
-
* Re-initialize atmosphere object.
|
|
2557
|
-
*
|
|
2558
|
-
* @private
|
|
2555
|
+
/**
|
|
2556
|
+
* Re-initialize atmosphere object.
|
|
2557
|
+
*
|
|
2558
|
+
* @private
|
|
2559
2559
|
*/
|
|
2560
2560
|
function _reinit() {
|
|
2561
2561
|
_clearState();
|
|
2562
2562
|
_init();
|
|
2563
2563
|
}
|
|
2564
2564
|
|
|
2565
|
-
/**
|
|
2566
|
-
* Returns true if the given level is equal or above the configured log level.
|
|
2567
|
-
*
|
|
2568
|
-
* @private
|
|
2565
|
+
/**
|
|
2566
|
+
* Returns true if the given level is equal or above the configured log level.
|
|
2567
|
+
*
|
|
2568
|
+
* @private
|
|
2569
2569
|
*/
|
|
2570
2570
|
function _canLog(level) {
|
|
2571
2571
|
if (level == 'debug') {
|
|
@@ -2587,9 +2587,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
2589
|
|
|
2590
|
-
/**
|
|
2591
|
-
*
|
|
2592
|
-
* @private
|
|
2590
|
+
/**
|
|
2591
|
+
*
|
|
2592
|
+
* @private
|
|
2593
2593
|
*/
|
|
2594
2594
|
function _verifyStreamingLength(ajaxRequest, rq) {
|
|
2595
2595
|
// Wait to be sure we have the full message before closing.
|
|
@@ -2599,10 +2599,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2599
2599
|
return false;
|
|
2600
2600
|
}
|
|
2601
2601
|
|
|
2602
|
-
/**
|
|
2603
|
-
* Disconnect
|
|
2604
|
-
*
|
|
2605
|
-
* @private
|
|
2602
|
+
/**
|
|
2603
|
+
* Disconnect
|
|
2604
|
+
*
|
|
2605
|
+
* @private
|
|
2606
2606
|
*/
|
|
2607
2607
|
function _disconnect() {
|
|
2608
2608
|
if (_request.enableProtocol && !_request.disableDisconnect && !_request.firstMessage) {
|
|
@@ -2639,10 +2639,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
|
-
/**
|
|
2643
|
-
* Close request.
|
|
2644
|
-
*
|
|
2645
|
-
* @private
|
|
2642
|
+
/**
|
|
2643
|
+
* Close request.
|
|
2644
|
+
*
|
|
2645
|
+
* @private
|
|
2646
2646
|
*/
|
|
2647
2647
|
function _close() {
|
|
2648
2648
|
_debug("Closing (AtmosphereRequest._close() called)");
|
|
@@ -2729,12 +2729,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2729
2729
|
}
|
|
2730
2730
|
}
|
|
2731
2731
|
|
|
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
|
|
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
|
|
2738
2738
|
*/
|
|
2739
2739
|
function _subscribe(options) {
|
|
2740
2740
|
_reinit();
|
|
@@ -2747,21 +2747,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2747
2747
|
}
|
|
2748
2748
|
}
|
|
2749
2749
|
|
|
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
|
|
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
|
|
2755
2755
|
*/
|
|
2756
2756
|
function _supportWebsocket() {
|
|
2757
2757
|
return _request.webSocketImpl != null || window.WebSocket || window.MozWebSocket;
|
|
2758
2758
|
}
|
|
2759
2759
|
|
|
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
|
|
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
|
|
2765
2765
|
*/
|
|
2766
2766
|
function _supportSSE() {
|
|
2767
2767
|
// Origin parts
|
|
@@ -2777,11 +2777,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2777
2777
|
return window.EventSource && (!crossOrigin || !atmosphere.util.browser.safari || atmosphere.util.browser.vmajor >= 7);
|
|
2778
2778
|
}
|
|
2779
2779
|
|
|
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
|
|
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
|
|
2785
2785
|
*/
|
|
2786
2786
|
function _execute() {
|
|
2787
2787
|
// Shared across multiple tabs/windows.
|
|
@@ -3195,8 +3195,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3195
3195
|
_storageService = storageService;
|
|
3196
3196
|
}
|
|
3197
3197
|
|
|
3198
|
-
/**
|
|
3199
|
-
* @private
|
|
3198
|
+
/**
|
|
3199
|
+
* @private
|
|
3200
3200
|
*/
|
|
3201
3201
|
function _open(state, transport, request) {
|
|
3202
3202
|
if (_request.shared && transport !== 'local') {
|
|
@@ -3230,11 +3230,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
3232
|
|
|
3233
|
-
/**
|
|
3234
|
-
* Execute request using jsonp transport.
|
|
3235
|
-
*
|
|
3236
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3237
|
-
* @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
|
|
3238
3238
|
*/
|
|
3239
3239
|
function _jsonp(request) {
|
|
3240
3240
|
// When CORS is enabled, make sure we force the proper transport.
|
|
@@ -3364,12 +3364,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3364
3364
|
_jqxhr.open();
|
|
3365
3365
|
}
|
|
3366
3366
|
|
|
3367
|
-
/**
|
|
3368
|
-
* Build websocket object.
|
|
3369
|
-
*
|
|
3370
|
-
* @param location {string} Web socket url.
|
|
3371
|
-
* @returns {websocket} Web socket object.
|
|
3372
|
-
* @private
|
|
3367
|
+
/**
|
|
3368
|
+
* Build websocket object.
|
|
3369
|
+
*
|
|
3370
|
+
* @param location {string} Web socket url.
|
|
3371
|
+
* @returns {websocket} Web socket object.
|
|
3372
|
+
* @private
|
|
3373
3373
|
*/
|
|
3374
3374
|
function _getWebSocket(location) {
|
|
3375
3375
|
if (_request.webSocketImpl != null) {
|
|
@@ -3385,32 +3385,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
|
|
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
|
|
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
|
|
3393
3393
|
*/
|
|
3394
3394
|
function _buildWebSocketUrl() {
|
|
3395
3395
|
return _attachHeaders(_request, atmosphere.util.getAbsoluteURL(_request.webSocketUrl || _request.url)).replace(/^http/, "ws");
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
|
-
/**
|
|
3399
|
-
* Build SSE url from request url.
|
|
3400
|
-
*
|
|
3401
|
-
* @return a url with Atmosphere's headers
|
|
3402
|
-
* @private
|
|
3398
|
+
/**
|
|
3399
|
+
* Build SSE url from request url.
|
|
3400
|
+
*
|
|
3401
|
+
* @return a url with Atmosphere's headers
|
|
3402
|
+
* @private
|
|
3403
3403
|
*/
|
|
3404
3404
|
function _buildSSEUrl() {
|
|
3405
3405
|
var url = _attachHeaders(_request);
|
|
3406
3406
|
return url;
|
|
3407
3407
|
}
|
|
3408
3408
|
|
|
3409
|
-
/**
|
|
3410
|
-
* Open SSE. <br>
|
|
3411
|
-
* Automatically use fallback transport if SSE can't be opened.
|
|
3412
|
-
*
|
|
3413
|
-
* @private
|
|
3409
|
+
/**
|
|
3410
|
+
* Open SSE. <br>
|
|
3411
|
+
* Automatically use fallback transport if SSE can't be opened.
|
|
3412
|
+
*
|
|
3413
|
+
* @private
|
|
3414
3414
|
*/
|
|
3415
3415
|
function _executeSSE(sseOpened) {
|
|
3416
3416
|
|
|
@@ -3491,9 +3491,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3491
3491
|
|
|
3492
3492
|
// https://github.com/remy/polyfills/blob/master/EventSource.js
|
|
3493
3493
|
// Since we polling.
|
|
3494
|
-
/* if (_sse.URL) {
|
|
3495
|
-
_sse.interval = 100;
|
|
3496
|
-
_sse.URL = _buildSSEUrl();
|
|
3494
|
+
/* if (_sse.URL) {
|
|
3495
|
+
_sse.interval = 100;
|
|
3496
|
+
_sse.URL = _buildSSEUrl();
|
|
3497
3497
|
} */
|
|
3498
3498
|
|
|
3499
3499
|
if (!skipCallbackInvocation) {
|
|
@@ -3542,11 +3542,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3542
3542
|
};
|
|
3543
3543
|
}
|
|
3544
3544
|
|
|
3545
|
-
/**
|
|
3546
|
-
* Open web socket. <br>
|
|
3547
|
-
* Automatically use fallback transport if web socket can't be opened.
|
|
3548
|
-
*
|
|
3549
|
-
* @private
|
|
3545
|
+
/**
|
|
3546
|
+
* Open web socket. <br>
|
|
3547
|
+
* Automatically use fallback transport if web socket can't be opened.
|
|
3548
|
+
*
|
|
3549
|
+
* @private
|
|
3550
3550
|
*/
|
|
3551
3551
|
function _executeWebSocket(webSocketOpened) {
|
|
3552
3552
|
|
|
@@ -3886,12 +3886,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3886
3886
|
_invokeCallback();
|
|
3887
3887
|
}
|
|
3888
3888
|
|
|
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
|
|
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
|
|
3895
3895
|
*/
|
|
3896
3896
|
function _trackMessageSize(message, request, response) {
|
|
3897
3897
|
// skip message tracking for binary messages
|
|
@@ -3950,11 +3950,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3950
3950
|
return false;
|
|
3951
3951
|
}
|
|
3952
3952
|
|
|
3953
|
-
/**
|
|
3954
|
-
* Reconnect request with fallback transport. <br>
|
|
3955
|
-
* Used in case websocket can't be opened.
|
|
3956
|
-
*
|
|
3957
|
-
* @private
|
|
3953
|
+
/**
|
|
3954
|
+
* Reconnect request with fallback transport. <br>
|
|
3955
|
+
* Used in case websocket can't be opened.
|
|
3956
|
+
*
|
|
3957
|
+
* @private
|
|
3958
3958
|
*/
|
|
3959
3959
|
function _reconnectWithFallbackTransport(errorMessage) {
|
|
3960
3960
|
atmosphere.util.log(_request.logLevel, [errorMessage]);
|
|
@@ -3983,13 +3983,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3983
3983
|
}
|
|
3984
3984
|
}
|
|
3985
3985
|
|
|
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
|
|
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
|
|
3993
3993
|
*/
|
|
3994
3994
|
function _attachHeaders(request, url) {
|
|
3995
3995
|
var rq = _request;
|
|
@@ -4074,11 +4074,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
4076
|
|
|
4077
|
-
/**
|
|
4078
|
-
* Execute ajax request. <br>
|
|
4079
|
-
*
|
|
4080
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
4081
|
-
* @private
|
|
4077
|
+
/**
|
|
4078
|
+
* Execute ajax request. <br>
|
|
4079
|
+
*
|
|
4080
|
+
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
4081
|
+
* @private
|
|
4082
4082
|
*/
|
|
4083
4083
|
function _executeRequest(request) {
|
|
4084
4084
|
var rq = _request;
|
|
@@ -4371,12 +4371,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4371
4371
|
_reconnect(ajaxRequest, rq, 500);
|
|
4372
4372
|
}
|
|
4373
4373
|
|
|
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.
|
|
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.
|
|
4380
4380
|
*/
|
|
4381
4381
|
function _doRequest(ajaxRequest, request, create) {
|
|
4382
4382
|
// Prevent Android to cache request
|
|
@@ -4753,12 +4753,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4753
4753
|
};
|
|
4754
4754
|
}
|
|
4755
4755
|
|
|
4756
|
-
/**
|
|
4757
|
-
* Send message. <br>
|
|
4758
|
-
* Will be automatically dispatch to other connected.
|
|
4759
|
-
*
|
|
4760
|
-
* @param {Object, string} Message to send.
|
|
4761
|
-
* @private
|
|
4756
|
+
/**
|
|
4757
|
+
* Send message. <br>
|
|
4758
|
+
* Will be automatically dispatch to other connected.
|
|
4759
|
+
*
|
|
4760
|
+
* @param {Object, string} Message to send.
|
|
4761
|
+
* @private
|
|
4762
4762
|
*/
|
|
4763
4763
|
function _push(message) {
|
|
4764
4764
|
|
|
@@ -4814,22 +4814,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
4816
4816
|
|
|
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
|
|
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
|
|
4822
4822
|
*/
|
|
4823
4823
|
function _pushAjaxMessage(message) {
|
|
4824
4824
|
var rq = _getPushRequest(message);
|
|
4825
4825
|
_executeRequest(rq);
|
|
4826
4826
|
}
|
|
4827
4827
|
|
|
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
|
|
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
|
|
4833
4833
|
*/
|
|
4834
4834
|
function _pushIE(message) {
|
|
4835
4835
|
if (_request.enableXDR && atmosphere.util.checkCORSSupport()) {
|
|
@@ -4842,11 +4842,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4842
4842
|
}
|
|
4843
4843
|
}
|
|
4844
4844
|
|
|
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
|
|
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
|
|
4850
4850
|
*/
|
|
4851
4851
|
function _pushJsonp(message) {
|
|
4852
4852
|
_pushAjaxMessage(message);
|
|
@@ -4860,11 +4860,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4860
4860
|
return msg;
|
|
4861
4861
|
}
|
|
4862
4862
|
|
|
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
|
|
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
|
|
4868
4868
|
*/
|
|
4869
4869
|
function _getPushRequest(message) {
|
|
4870
4870
|
var msg = _getStringMessage(message);
|
|
@@ -4906,9 +4906,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4906
4906
|
return rq;
|
|
4907
4907
|
}
|
|
4908
4908
|
|
|
4909
|
-
/**
|
|
4910
|
-
* Send a message using currently opened websocket. <br>
|
|
4911
|
-
*
|
|
4909
|
+
/**
|
|
4910
|
+
* Send a message using currently opened websocket. <br>
|
|
4911
|
+
*
|
|
4912
4912
|
*/
|
|
4913
4913
|
function _pushWebSocket(message) {
|
|
4914
4914
|
var msg = atmosphere.util.isBinary(message) ? message : _getStringMessage(message);
|
|
@@ -5058,10 +5058,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5058
5058
|
}
|
|
5059
5059
|
}
|
|
5060
5060
|
|
|
5061
|
-
/**
|
|
5062
|
-
* Invoke request callbacks.
|
|
5063
|
-
*
|
|
5064
|
-
* @private
|
|
5061
|
+
/**
|
|
5062
|
+
* Invoke request callbacks.
|
|
5063
|
+
*
|
|
5064
|
+
* @private
|
|
5065
5065
|
*/
|
|
5066
5066
|
function _invokeCallback() {
|
|
5067
5067
|
var call = function call(index, func) {
|
|
@@ -5900,21 +5900,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
5900
5900
|
|
|
5901
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; } }
|
|
5902
5902
|
|
|
5903
|
-
/*
|
|
5904
|
-
Note: Usage of formatters can cause a potential performance penalty
|
|
5903
|
+
/*
|
|
5904
|
+
Note: Usage of formatters can cause a potential performance penalty
|
|
5905
5905
|
*/
|
|
5906
5906
|
|
|
5907
5907
|
/* Keep synchronized with com.quotemedia.streamer.client.fmt.FmtMessage */
|
|
5908
5908
|
|
|
5909
5909
|
var fmt = {};
|
|
5910
5910
|
|
|
5911
|
-
/**
|
|
5912
|
-
* Creates a new message formatter.
|
|
5913
|
-
* @constructor
|
|
5911
|
+
/**
|
|
5912
|
+
* Creates a new message formatter.
|
|
5913
|
+
* @constructor
|
|
5914
5914
|
*/
|
|
5915
5915
|
fmt.Formatter = function () {
|
|
5916
|
-
/**
|
|
5917
|
-
* Formatters by message type.
|
|
5916
|
+
/**
|
|
5917
|
+
* Formatters by message type.
|
|
5918
5918
|
*/
|
|
5919
5919
|
this.formatters = {};
|
|
5920
5920
|
this.formatters[fmt.Formatter._UNKOWNTYPE] = this._fmtunknown;
|
|
@@ -5973,6 +5973,7 @@ fmt.Formatter = function () {
|
|
|
5973
5973
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.DIVIDEND] = this._fmtdividend;
|
|
5974
5974
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.EARNINGS] = this._fmtearnings;
|
|
5975
5975
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.SPLIT] = this._fmtsplit;
|
|
5976
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.data.SYMBOLCHANGED] = this._fmtsymbolChanged;
|
|
5976
5977
|
};
|
|
5977
5978
|
|
|
5978
5979
|
fmt.Formatter._UNKOWNTYPE = '__UNKNOWN__';
|
|
@@ -6550,6 +6551,8 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
|
|
|
6550
6551
|
var s = new fmt.StringBuilder();
|
|
6551
6552
|
s.append("TN");
|
|
6552
6553
|
s.sep();
|
|
6554
|
+
s.append(val.traceId);
|
|
6555
|
+
s.sep();
|
|
6553
6556
|
s.append(val.accountId);
|
|
6554
6557
|
s.sep();
|
|
6555
6558
|
s.append(val.enduserId);
|
|
@@ -6694,6 +6697,23 @@ fmt.Formatter.prototype._fmtsplit = function (val) {
|
|
|
6694
6697
|
return s.toString();
|
|
6695
6698
|
};
|
|
6696
6699
|
|
|
6700
|
+
fmt.Formatter.prototype._fmtsymbolChanged = function (val) {
|
|
6701
|
+
var s = new fmt.StringBuilder();
|
|
6702
|
+
s.append("SBCG");
|
|
6703
|
+
s.sep();
|
|
6704
|
+
s.append(val.symbolId);
|
|
6705
|
+
s.sep();
|
|
6706
|
+
s.append(val.symbol);
|
|
6707
|
+
s.sep();
|
|
6708
|
+
s.append(val.oldSymbol);
|
|
6709
|
+
s.sep();
|
|
6710
|
+
s.append(val.newSymbol);
|
|
6711
|
+
s.sep();
|
|
6712
|
+
s.datetime(val.day);
|
|
6713
|
+
|
|
6714
|
+
return s.toString();
|
|
6715
|
+
};
|
|
6716
|
+
|
|
6697
6717
|
fmt.Formatter.prototype._fmtheartbeat = function (val) {
|
|
6698
6718
|
var s = new fmt.StringBuilder();
|
|
6699
6719
|
s.append("HEARBEAT");
|
|
@@ -6981,9 +7001,9 @@ fmt.Formatter.prototype._fmtmisseddatasent = function (val) {
|
|
|
6981
7001
|
return s.toString();
|
|
6982
7002
|
};
|
|
6983
7003
|
|
|
6984
|
-
/**
|
|
6985
|
-
* Create a new sting builder.
|
|
6986
|
-
* @constructor
|
|
7004
|
+
/**
|
|
7005
|
+
* Create a new sting builder.
|
|
7006
|
+
* @constructor
|
|
6987
7007
|
*/
|
|
6988
7008
|
fmt.StringBuilder = function () {
|
|
6989
7009
|
this._str = '';
|
|
@@ -7244,16 +7264,16 @@ function asLogger(logger) {
|
|
|
7244
7264
|
exports.__esModule = true;
|
|
7245
7265
|
/* @see http://usejsdoc.org */
|
|
7246
7266
|
|
|
7247
|
-
/**
|
|
7248
|
-
* Streamer api namespace.
|
|
7249
|
-
* @namespace
|
|
7267
|
+
/**
|
|
7268
|
+
* Streamer api namespace.
|
|
7269
|
+
* @namespace
|
|
7250
7270
|
*/
|
|
7251
7271
|
|
|
7252
7272
|
/* ****************************************************************************************************************** */
|
|
7253
7273
|
|
|
7254
|
-
/**
|
|
7255
|
-
* Supported encodings.
|
|
7256
|
-
* @enum
|
|
7274
|
+
/**
|
|
7275
|
+
* Supported encodings.
|
|
7276
|
+
* @enum
|
|
7257
7277
|
*/
|
|
7258
7278
|
var Encodings = exports.Encodings = {
|
|
7259
7279
|
UNDEFINED: "undefined",
|
|
@@ -7266,9 +7286,9 @@ var Encodings = exports.Encodings = {
|
|
|
7266
7286
|
BASE64_CHAR: "B"
|
|
7267
7287
|
};
|
|
7268
7288
|
|
|
7269
|
-
/**
|
|
7270
|
-
* Supported mime types.
|
|
7271
|
-
* @enum
|
|
7289
|
+
/**
|
|
7290
|
+
* Supported mime types.
|
|
7291
|
+
* @enum
|
|
7272
7292
|
*/
|
|
7273
7293
|
var MimeTypes = exports.MimeTypes = {
|
|
7274
7294
|
UNDEFINED: "undefined",
|
|
@@ -7284,12 +7304,12 @@ var MimeTypes = exports.MimeTypes = {
|
|
|
7284
7304
|
QITCH_CHAR: "I"
|
|
7285
7305
|
};
|
|
7286
7306
|
|
|
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
|
|
7307
|
+
/**
|
|
7308
|
+
* Returns the with '0' left padded string representation of the number.
|
|
7309
|
+
* @param num {number} the number to create string for
|
|
7310
|
+
* @param len {number} the target length of the string
|
|
7311
|
+
* @return {string} the with '0' left padded string
|
|
7312
|
+
* @throws Will throw an error if number doesn't fit within target length
|
|
7293
7313
|
*/
|
|
7294
7314
|
var lpad = exports.lpad = function lpad(num, len) {
|
|
7295
7315
|
var _numstr = num.toString();
|
|
@@ -7615,13 +7635,13 @@ var BIG_INT_FORTY = _jsbi2["default"].BigInt(40);
|
|
|
7615
7635
|
var BIG_INT_FORTY_EIGHT = _jsbi2["default"].BigInt(48);
|
|
7616
7636
|
var BIG_INT_FIFTY_SIX = _jsbi2["default"].BigInt(56);
|
|
7617
7637
|
|
|
7618
|
-
/*
|
|
7619
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7638
|
+
/*
|
|
7639
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7620
7640
|
*/
|
|
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).
|
|
7641
|
+
/**
|
|
7642
|
+
* Translates bytes into numbers and vice versa.
|
|
7643
|
+
* Use multiplication instead of shifts because in javascript shifts are slower than multiplication
|
|
7644
|
+
* (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
|
|
7625
7645
|
*/
|
|
7626
7646
|
|
|
7627
7647
|
var Bytes = function () {
|
|
@@ -7635,11 +7655,11 @@ var Bytes = function () {
|
|
|
7635
7655
|
return dst;
|
|
7636
7656
|
};
|
|
7637
7657
|
|
|
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
|
|
7658
|
+
/**
|
|
7659
|
+
* Gets numeric value that is in range of short (Int16) from byte array
|
|
7660
|
+
* @param src The source array
|
|
7661
|
+
* @param offset The offset
|
|
7662
|
+
* @returns {number} Resulting short value
|
|
7643
7663
|
*/
|
|
7644
7664
|
|
|
7645
7665
|
|
|
@@ -7656,11 +7676,11 @@ var Bytes = function () {
|
|
|
7656
7676
|
return dst;
|
|
7657
7677
|
};
|
|
7658
7678
|
|
|
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
|
|
7679
|
+
/**
|
|
7680
|
+
* Gets numeric value that is in range of integer (Int32) from byte array
|
|
7681
|
+
* @param src The source array
|
|
7682
|
+
* @param offset The offset
|
|
7683
|
+
* @returns {number} Resulting int value
|
|
7664
7684
|
*/
|
|
7665
7685
|
|
|
7666
7686
|
|
|
@@ -7671,11 +7691,11 @@ var Bytes = function () {
|
|
|
7671
7691
|
src[offset + 3] & 0xff;
|
|
7672
7692
|
};
|
|
7673
7693
|
|
|
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.
|
|
7694
|
+
/**
|
|
7695
|
+
* Gets numeric value that is in range of long (Int64) from byte array.
|
|
7696
|
+
* @param src The source array
|
|
7697
|
+
* @param offset The offset
|
|
7698
|
+
* @returns {JSBI} Resulting string representation of long.
|
|
7679
7699
|
*/
|
|
7680
7700
|
|
|
7681
7701
|
|
|
@@ -7717,8 +7737,8 @@ var UShort = function () {
|
|
|
7717
7737
|
return UShort;
|
|
7718
7738
|
}();
|
|
7719
7739
|
|
|
7720
|
-
/**
|
|
7721
|
-
* Length in bytes
|
|
7740
|
+
/**
|
|
7741
|
+
* Length in bytes
|
|
7722
7742
|
*/
|
|
7723
7743
|
|
|
7724
7744
|
|
|
@@ -7748,8 +7768,8 @@ var UByte = function () {
|
|
|
7748
7768
|
return UByte;
|
|
7749
7769
|
}();
|
|
7750
7770
|
|
|
7751
|
-
/**
|
|
7752
|
-
* Length in bytes
|
|
7771
|
+
/**
|
|
7772
|
+
* Length in bytes
|
|
7753
7773
|
*/
|
|
7754
7774
|
|
|
7755
7775
|
|
|
@@ -7779,8 +7799,8 @@ var UInt = function () {
|
|
|
7779
7799
|
return UInt;
|
|
7780
7800
|
}();
|
|
7781
7801
|
|
|
7782
|
-
/**
|
|
7783
|
-
* Length in bytes
|
|
7802
|
+
/**
|
|
7803
|
+
* Length in bytes
|
|
7784
7804
|
*/
|
|
7785
7805
|
|
|
7786
7806
|
|
|
@@ -8026,24 +8046,24 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
8026
8046
|
|
|
8027
8047
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8028
8048
|
|
|
8029
|
-
/*
|
|
8030
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8049
|
+
/*
|
|
8050
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8031
8051
|
*/
|
|
8032
8052
|
var Qitch = function () {
|
|
8033
8053
|
function Qitch() {
|
|
8034
8054
|
_classCallCheck(this, Qitch);
|
|
8035
8055
|
}
|
|
8036
8056
|
|
|
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.
|
|
8057
|
+
/**
|
|
8058
|
+
* Copies an array from the specified source array, beginning at sourceIndex,
|
|
8059
|
+
* to the specified position of the destination array.
|
|
8060
|
+
* The number of components copied is equal to the length argument. The elements are copied
|
|
8061
|
+
* into a destination array starting from destinationIndex.
|
|
8062
|
+
* @param sourceArray The source array
|
|
8063
|
+
* @param sourceIndex The starting position in the source array.
|
|
8064
|
+
* @param destinationArray The destination array
|
|
8065
|
+
* @param destinationIndex The starting position in the destination array.
|
|
8066
|
+
* @param length The number of array elements to be copied.
|
|
8047
8067
|
*/
|
|
8048
8068
|
Qitch.copyArray = function copyArray(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {
|
|
8049
8069
|
if (length === 0) {
|
|
@@ -8070,12 +8090,12 @@ var Qitch = function () {
|
|
|
8070
8090
|
}
|
|
8071
8091
|
};
|
|
8072
8092
|
|
|
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}
|
|
8093
|
+
/**
|
|
8094
|
+
* Gets boolean value from source byte array at specified position.
|
|
8095
|
+
* @param src The source array.
|
|
8096
|
+
* @param offset The offset.
|
|
8097
|
+
* @returns {boolean} Returns obtained value.
|
|
8098
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8079
8099
|
*/
|
|
8080
8100
|
|
|
8081
8101
|
|
|
@@ -8086,13 +8106,13 @@ var Qitch = function () {
|
|
|
8086
8106
|
throw "Invalid source. Expected: Int8Array";
|
|
8087
8107
|
};
|
|
8088
8108
|
|
|
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}
|
|
8109
|
+
/**
|
|
8110
|
+
* Puts boolean value into destination array.
|
|
8111
|
+
* @param dst The destination array
|
|
8112
|
+
* @param offset The offset.
|
|
8113
|
+
* @param val Boolean value.
|
|
8114
|
+
* @returns {Int8Array} destination array.
|
|
8115
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8096
8116
|
*/
|
|
8097
8117
|
|
|
8098
8118
|
|
|
@@ -8104,13 +8124,13 @@ var Qitch = function () {
|
|
|
8104
8124
|
throw "Invalid destination. Expected: Int8Array";
|
|
8105
8125
|
};
|
|
8106
8126
|
|
|
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}
|
|
8127
|
+
/**
|
|
8128
|
+
* Puts byte value into destination array.
|
|
8129
|
+
* @param dst The destination array
|
|
8130
|
+
* @param offset The offset.
|
|
8131
|
+
* @param val Byte value.
|
|
8132
|
+
* @returns {Int8Array} destination array.
|
|
8133
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8114
8134
|
*/
|
|
8115
8135
|
|
|
8116
8136
|
|
|
@@ -8122,12 +8142,12 @@ var Qitch = function () {
|
|
|
8122
8142
|
throw "Invalid destination. Expected: Int8Array";
|
|
8123
8143
|
};
|
|
8124
8144
|
|
|
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}
|
|
8145
|
+
/**
|
|
8146
|
+
* Gets integer (int32) value from source byte array at specified position.
|
|
8147
|
+
* @param src The source array.
|
|
8148
|
+
* @param offset The offset.
|
|
8149
|
+
* @returns {number} Returns obtained value.
|
|
8150
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8131
8151
|
*/
|
|
8132
8152
|
|
|
8133
8153
|
|
|
@@ -8138,13 +8158,13 @@ var Qitch = function () {
|
|
|
8138
8158
|
throw "Invalid source. Expected: Int8Array";
|
|
8139
8159
|
};
|
|
8140
8160
|
|
|
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}
|
|
8161
|
+
/**
|
|
8162
|
+
* Sets integer (int32) value to destination array
|
|
8163
|
+
* @param dst destination array
|
|
8164
|
+
* @param offset offset
|
|
8165
|
+
* @param val integer value
|
|
8166
|
+
* @returns {Int8Array} destination array.
|
|
8167
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8148
8168
|
*/
|
|
8149
8169
|
|
|
8150
8170
|
|
|
@@ -8155,12 +8175,12 @@ var Qitch = function () {
|
|
|
8155
8175
|
throw "Invalid destination. Expected: Int8Array";
|
|
8156
8176
|
};
|
|
8157
8177
|
|
|
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}
|
|
8178
|
+
/**
|
|
8179
|
+
* Gets unsigned integer (uint32) value from source byte array at specified position.
|
|
8180
|
+
* @param src The source array.
|
|
8181
|
+
* @param offset The offset.
|
|
8182
|
+
* @returns {number} Returns obtained value.
|
|
8183
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8164
8184
|
*/
|
|
8165
8185
|
|
|
8166
8186
|
|
|
@@ -8171,13 +8191,13 @@ var Qitch = function () {
|
|
|
8171
8191
|
throw "Invalid source. Expected: Int8Array";
|
|
8172
8192
|
};
|
|
8173
8193
|
|
|
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}
|
|
8194
|
+
/**
|
|
8195
|
+
* Sets unsigned integer (uint32) value to destination array
|
|
8196
|
+
* @param dst destination array
|
|
8197
|
+
* @param offset offset
|
|
8198
|
+
* @param val unsigned integer value
|
|
8199
|
+
* @returns {Int8Array} destination array.
|
|
8200
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8181
8201
|
*/
|
|
8182
8202
|
|
|
8183
8203
|
|
|
@@ -8188,13 +8208,13 @@ var Qitch = function () {
|
|
|
8188
8208
|
throw "Invalid destination. Expected: Int8Array";
|
|
8189
8209
|
};
|
|
8190
8210
|
|
|
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}
|
|
8211
|
+
/**
|
|
8212
|
+
* Gets single character from source byte array at specified position.
|
|
8213
|
+
* @param src The source array.
|
|
8214
|
+
* @param offset The offset.
|
|
8215
|
+
* @returns {null|String} Returns null if offset is out of array index range or
|
|
8216
|
+
* value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
|
|
8217
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8198
8218
|
*/
|
|
8199
8219
|
|
|
8200
8220
|
|
|
@@ -8209,13 +8229,13 @@ var Qitch = function () {
|
|
|
8209
8229
|
throw "Invalid source. Expected: Int8Array";
|
|
8210
8230
|
};
|
|
8211
8231
|
|
|
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}
|
|
8232
|
+
/**
|
|
8233
|
+
* Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
|
|
8234
|
+
* it is returned as {@link JSBI.BigInt}.
|
|
8235
|
+
* @param src The source array.
|
|
8236
|
+
* @param offset The offset.
|
|
8237
|
+
* @returns {JSBI} Returns obtained value.
|
|
8238
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8219
8239
|
*/
|
|
8220
8240
|
|
|
8221
8241
|
|
|
@@ -8226,14 +8246,14 @@ var Qitch = function () {
|
|
|
8226
8246
|
throw "Invalid source. Expected: Int8Array";
|
|
8227
8247
|
};
|
|
8228
8248
|
|
|
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}
|
|
8249
|
+
/**
|
|
8250
|
+
* Gets double value from byte source array at specified position.
|
|
8251
|
+
* In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
|
|
8252
|
+
* doesn't support long values, the result is returned as {@link BigNumber}.
|
|
8253
|
+
* @param src The source array.
|
|
8254
|
+
* @param offset The offset.
|
|
8255
|
+
* @returns {BigNumber} Returns obtained value.
|
|
8256
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8237
8257
|
*/
|
|
8238
8258
|
|
|
8239
8259
|
|
|
@@ -8244,12 +8264,12 @@ var Qitch = function () {
|
|
|
8244
8264
|
throw "Invalid source. Expected: Int8Array";
|
|
8245
8265
|
};
|
|
8246
8266
|
|
|
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}
|
|
8267
|
+
/**
|
|
8268
|
+
* Gets signed byte from source byte array at specified position.
|
|
8269
|
+
* @param src The source array.
|
|
8270
|
+
* @param offset The offset.
|
|
8271
|
+
* @returns {number} Returns obtained value.
|
|
8272
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8253
8273
|
*/
|
|
8254
8274
|
|
|
8255
8275
|
|
|
@@ -8260,14 +8280,14 @@ var Qitch = function () {
|
|
|
8260
8280
|
throw "Invalid source. Expected: Int8Array";
|
|
8261
8281
|
};
|
|
8262
8282
|
|
|
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}
|
|
8283
|
+
/**
|
|
8284
|
+
* Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8285
|
+
* it is returned as {@link JSBI.BigInt}
|
|
8286
|
+
* @param src The source array.
|
|
8287
|
+
* @param offset The offset.
|
|
8288
|
+
* @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
|
|
8289
|
+
* otherwise returns the obtained value.
|
|
8290
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8271
8291
|
*/
|
|
8272
8292
|
|
|
8273
8293
|
|
|
@@ -8279,12 +8299,12 @@ var Qitch = function () {
|
|
|
8279
8299
|
throw "Invalid source. Expected: Int8Array";
|
|
8280
8300
|
};
|
|
8281
8301
|
|
|
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}
|
|
8302
|
+
/**
|
|
8303
|
+
* Gets locate code value from source byte array at specified offset.
|
|
8304
|
+
* @param src The source array.
|
|
8305
|
+
* @param offset The offset.
|
|
8306
|
+
* @returns {number} Returns obtained value.
|
|
8307
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8288
8308
|
*/
|
|
8289
8309
|
|
|
8290
8310
|
|
|
@@ -8295,13 +8315,13 @@ var Qitch = function () {
|
|
|
8295
8315
|
throw "Invalid source. Expected: Int8Array";
|
|
8296
8316
|
};
|
|
8297
8317
|
|
|
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}
|
|
8318
|
+
/**
|
|
8319
|
+
* Gets symbol value from source byte array at specified offset.
|
|
8320
|
+
* @param src The source array.
|
|
8321
|
+
* @param offset The offset.
|
|
8322
|
+
* @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),
|
|
8323
|
+
* otherwise returns obtained value.
|
|
8324
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8305
8325
|
*/
|
|
8306
8326
|
|
|
8307
8327
|
|
|
@@ -8315,13 +8335,13 @@ var Qitch = function () {
|
|
|
8315
8335
|
throw "Invalid source. Expected: Int8Array";
|
|
8316
8336
|
};
|
|
8317
8337
|
|
|
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}
|
|
8338
|
+
/**
|
|
8339
|
+
* Puts symbol value into destination array.
|
|
8340
|
+
* @param dst The destination array.
|
|
8341
|
+
* @param offset The offset.
|
|
8342
|
+
* @param val Symbol value.
|
|
8343
|
+
* @returns {Int8Array} destination array.
|
|
8344
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8325
8345
|
*/
|
|
8326
8346
|
|
|
8327
8347
|
|
|
@@ -8332,14 +8352,14 @@ var Qitch = function () {
|
|
|
8332
8352
|
throw "Invalid destination. Expected: Int8Array";
|
|
8333
8353
|
};
|
|
8334
8354
|
|
|
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}
|
|
8355
|
+
/**
|
|
8356
|
+
* Gets String value from source byte array at specified offset.
|
|
8357
|
+
* @param src The source array.
|
|
8358
|
+
* @param offset The offset.
|
|
8359
|
+
* @param maxLength The max length of returning value.
|
|
8360
|
+
* @returns {null|String} Returns null in case if specified offset is too big (offset + maxLength in bytes is bigger than length of source array),
|
|
8361
|
+
* otherwise returns obtained value.
|
|
8362
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8343
8363
|
*/
|
|
8344
8364
|
|
|
8345
8365
|
|
|
@@ -8350,14 +8370,14 @@ var Qitch = function () {
|
|
|
8350
8370
|
throw "Invalid source. Expected: Int8Array";
|
|
8351
8371
|
};
|
|
8352
8372
|
|
|
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}
|
|
8373
|
+
/**
|
|
8374
|
+
* Puts String value into destination array.
|
|
8375
|
+
* @param dst The destination array.
|
|
8376
|
+
* @param offset The offset.
|
|
8377
|
+
* @param val String value.
|
|
8378
|
+
* @param maxLength The max length of returning value.
|
|
8379
|
+
* @returns {Int8Array} destination array.
|
|
8380
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8361
8381
|
*/
|
|
8362
8382
|
|
|
8363
8383
|
|
|
@@ -8368,13 +8388,13 @@ var Qitch = function () {
|
|
|
8368
8388
|
throw "Invalid destination. Expected: Int8Array";
|
|
8369
8389
|
};
|
|
8370
8390
|
|
|
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}
|
|
8391
|
+
/**
|
|
8392
|
+
* Gets excode value from source byte array at specified offset.
|
|
8393
|
+
* @param src The source array.
|
|
8394
|
+
* @param offset The offset.
|
|
8395
|
+
* @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),
|
|
8396
|
+
* otherwise returns obtained value.
|
|
8397
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8378
8398
|
*/
|
|
8379
8399
|
|
|
8380
8400
|
|
|
@@ -8388,13 +8408,13 @@ var Qitch = function () {
|
|
|
8388
8408
|
throw "Invalid source. Expected: Int8Array";
|
|
8389
8409
|
};
|
|
8390
8410
|
|
|
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}
|
|
8411
|
+
/**
|
|
8412
|
+
* Puts excode value into destination array.
|
|
8413
|
+
* @param dst The destination array.
|
|
8414
|
+
* @param offset The offset.
|
|
8415
|
+
* @param val excode value.
|
|
8416
|
+
* @returns {Int8Array} destination array.
|
|
8417
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8398
8418
|
*/
|
|
8399
8419
|
|
|
8400
8420
|
|
|
@@ -8405,13 +8425,13 @@ var Qitch = function () {
|
|
|
8405
8425
|
throw "Invalid destination. Expected: Int8Array";
|
|
8406
8426
|
};
|
|
8407
8427
|
|
|
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}
|
|
8428
|
+
/**
|
|
8429
|
+
* Gets mmid value from source byte array at specified offset.
|
|
8430
|
+
* @param src The source array.
|
|
8431
|
+
* @param offset The offset.
|
|
8432
|
+
* @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),
|
|
8433
|
+
* otherwise returns obtained value.
|
|
8434
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8415
8435
|
*/
|
|
8416
8436
|
|
|
8417
8437
|
|
|
@@ -8425,13 +8445,13 @@ var Qitch = function () {
|
|
|
8425
8445
|
throw "Invalid source. Expected: Int8Array";
|
|
8426
8446
|
};
|
|
8427
8447
|
|
|
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}
|
|
8448
|
+
/**
|
|
8449
|
+
* Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8450
|
+
* it is returned as {@link JSBI.BigInt}
|
|
8451
|
+
* @param src The source array.
|
|
8452
|
+
* @param offset The offset.
|
|
8453
|
+
* @returns {JSBI} Returns obtained value.
|
|
8454
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8435
8455
|
*/
|
|
8436
8456
|
|
|
8437
8457
|
|
|
@@ -8442,13 +8462,13 @@ var Qitch = function () {
|
|
|
8442
8462
|
throw "Invalid source. Expected: Int8Array";
|
|
8443
8463
|
};
|
|
8444
8464
|
|
|
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}
|
|
8465
|
+
/**
|
|
8466
|
+
* Gets order id as string 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 + order 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}
|
|
8452
8472
|
*/
|
|
8453
8473
|
|
|
8454
8474
|
|
|
@@ -8462,13 +8482,13 @@ var Qitch = function () {
|
|
|
8462
8482
|
throw "Invalid source. Expected: Int8Array";
|
|
8463
8483
|
};
|
|
8464
8484
|
|
|
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}
|
|
8485
|
+
/**
|
|
8486
|
+
* Gets currency id from source byte array at specified offset.
|
|
8487
|
+
* @param src The source array.
|
|
8488
|
+
* @param offset The offset.
|
|
8489
|
+
* @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),
|
|
8490
|
+
* otherwise returns obtained value.
|
|
8491
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8472
8492
|
*/
|
|
8473
8493
|
|
|
8474
8494
|
|
|
@@ -8482,13 +8502,13 @@ var Qitch = function () {
|
|
|
8482
8502
|
throw "Invalid source. Expected: Int8Array";
|
|
8483
8503
|
};
|
|
8484
8504
|
|
|
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}
|
|
8505
|
+
/**
|
|
8506
|
+
* Gets tick from source byte array at specified offset.
|
|
8507
|
+
* @param src The source array.
|
|
8508
|
+
* @param offset The offset.
|
|
8509
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8510
|
+
* otherwise character at specified offset is returned.
|
|
8511
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8492
8512
|
*/
|
|
8493
8513
|
|
|
8494
8514
|
|
|
@@ -8502,13 +8522,13 @@ var Qitch = function () {
|
|
|
8502
8522
|
throw "Invalid source. Expected: Int8Array";
|
|
8503
8523
|
};
|
|
8504
8524
|
|
|
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}
|
|
8525
|
+
/**
|
|
8526
|
+
* Gets order change type from source byte array at specified offset.
|
|
8527
|
+
* @param src The source array.
|
|
8528
|
+
* @param offset The offset.
|
|
8529
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8530
|
+
* otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
|
|
8531
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8512
8532
|
*/
|
|
8513
8533
|
|
|
8514
8534
|
|
|
@@ -8526,13 +8546,13 @@ var Qitch = function () {
|
|
|
8526
8546
|
throw "Invalid source. Expected: Int8Array";
|
|
8527
8547
|
};
|
|
8528
8548
|
|
|
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}
|
|
8549
|
+
/**
|
|
8550
|
+
* Gets order side from source byte array at specified offset.
|
|
8551
|
+
* @param src The source array.
|
|
8552
|
+
* @param offset The offset.
|
|
8553
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8554
|
+
* otherwise character at specified offset is returned.
|
|
8555
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8536
8556
|
*/
|
|
8537
8557
|
|
|
8538
8558
|
|
|
@@ -8550,13 +8570,13 @@ var Qitch = function () {
|
|
|
8550
8570
|
throw "Invalid source. Expected: Int8Array";
|
|
8551
8571
|
};
|
|
8552
8572
|
|
|
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}
|
|
8573
|
+
/**
|
|
8574
|
+
* Gets range indicator from source byte array at specified offset.
|
|
8575
|
+
* @param src The source array.
|
|
8576
|
+
* @param offset The offset.
|
|
8577
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8578
|
+
* otherwise character at specified offset is returned.
|
|
8579
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8560
8580
|
*/
|
|
8561
8581
|
|
|
8562
8582
|
|
|
@@ -8570,13 +8590,13 @@ var Qitch = function () {
|
|
|
8570
8590
|
throw "Invalid source. Expected: Int8Array";
|
|
8571
8591
|
};
|
|
8572
8592
|
|
|
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}
|
|
8593
|
+
/**
|
|
8594
|
+
* Gets instrument 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.InstrumentType} value that corresponds to the byte at specified offset is returned.
|
|
8599
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8580
8600
|
*/
|
|
8581
8601
|
|
|
8582
8602
|
|
|
@@ -8590,13 +8610,13 @@ var Qitch = function () {
|
|
|
8590
8610
|
throw "Invalid source. Expected: Int8Array";
|
|
8591
8611
|
};
|
|
8592
8612
|
|
|
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}
|
|
8613
|
+
/**
|
|
8614
|
+
* Gets imbalance type from source byte array at specified offset.
|
|
8615
|
+
* @param src The source array.
|
|
8616
|
+
* @param offset The offset.
|
|
8617
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8618
|
+
* otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
|
|
8619
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8600
8620
|
*/
|
|
8601
8621
|
|
|
8602
8622
|
|
|
@@ -8610,13 +8630,13 @@ var Qitch = function () {
|
|
|
8610
8630
|
throw "Invalid source. Expected: Int8Array";
|
|
8611
8631
|
};
|
|
8612
8632
|
|
|
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}
|
|
8633
|
+
/**
|
|
8634
|
+
* Gets order refernece 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 + order reference 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}
|
|
8620
8640
|
*/
|
|
8621
8641
|
|
|
8622
8642
|
|
|
@@ -8630,13 +8650,13 @@ var Qitch = function () {
|
|
|
8630
8650
|
throw "Invalid source. Expected: Int8Array";
|
|
8631
8651
|
};
|
|
8632
8652
|
|
|
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}
|
|
8653
|
+
/**
|
|
8654
|
+
* Gets response reason 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 + reason 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}
|
|
8640
8660
|
*/
|
|
8641
8661
|
|
|
8642
8662
|
|
|
@@ -8650,13 +8670,13 @@ var Qitch = function () {
|
|
|
8650
8670
|
throw "Invalid source. Expected: Int8Array";
|
|
8651
8671
|
};
|
|
8652
8672
|
|
|
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}
|
|
8673
|
+
/**
|
|
8674
|
+
* Gets streamer version 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 + version 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}
|
|
8660
8680
|
*/
|
|
8661
8681
|
|
|
8662
8682
|
|
|
@@ -8670,13 +8690,13 @@ var Qitch = function () {
|
|
|
8670
8690
|
throw "Invalid source. Expected: Int8Array";
|
|
8671
8691
|
};
|
|
8672
8692
|
|
|
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}
|
|
8693
|
+
/**
|
|
8694
|
+
* Gets server instance 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 + server instance 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}
|
|
8680
8700
|
*/
|
|
8681
8701
|
|
|
8682
8702
|
|
|
@@ -8690,13 +8710,13 @@ var Qitch = function () {
|
|
|
8690
8710
|
throw "Invalid source. Expected: Int8Array";
|
|
8691
8711
|
};
|
|
8692
8712
|
|
|
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}
|
|
8713
|
+
/**
|
|
8714
|
+
* Gets the note message from source byte array at specified offset.
|
|
8715
|
+
* @param src The source array.
|
|
8716
|
+
* @param offset The offset.
|
|
8717
|
+
* @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),
|
|
8718
|
+
* otherwise returns obtained value.
|
|
8719
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8700
8720
|
*/
|
|
8701
8721
|
|
|
8702
8722
|
|
|
@@ -8710,13 +8730,13 @@ var Qitch = function () {
|
|
|
8710
8730
|
throw "Invalid source. Expected: Int8Array";
|
|
8711
8731
|
};
|
|
8712
8732
|
|
|
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}
|
|
8733
|
+
/**
|
|
8734
|
+
* Puts action value into destination array.
|
|
8735
|
+
* @param dst The destination array.
|
|
8736
|
+
* @param offset The offset.
|
|
8737
|
+
* @param val Action value.
|
|
8738
|
+
* @returns {Int8Array} destination array.
|
|
8739
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8720
8740
|
*/
|
|
8721
8741
|
|
|
8722
8742
|
|
|
@@ -8728,13 +8748,13 @@ var Qitch = function () {
|
|
|
8728
8748
|
throw "Invalid destination. Expected: Int8Array";
|
|
8729
8749
|
};
|
|
8730
8750
|
|
|
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}
|
|
8751
|
+
/**
|
|
8752
|
+
* Puts mimetype value into destination array.
|
|
8753
|
+
* @param dst The destination array.
|
|
8754
|
+
* @param offset The offset.
|
|
8755
|
+
* @param val Mimetype value.
|
|
8756
|
+
* @returns {Int8Array} destination array.
|
|
8757
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8738
8758
|
*/
|
|
8739
8759
|
|
|
8740
8760
|
|
|
@@ -8745,13 +8765,13 @@ var Qitch = function () {
|
|
|
8745
8765
|
throw "Invalid destination. Expected: Int8Array";
|
|
8746
8766
|
};
|
|
8747
8767
|
|
|
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}
|
|
8768
|
+
/**
|
|
8769
|
+
* Puts conflation value into destination array. If conflation is null, -1 will be put instead.
|
|
8770
|
+
* @param dst The destination array.
|
|
8771
|
+
* @param offset The offset.
|
|
8772
|
+
* @param val Conflation value.
|
|
8773
|
+
* @returns {Int8Array} destination array.
|
|
8774
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8755
8775
|
*/
|
|
8756
8776
|
|
|
8757
8777
|
|
|
@@ -8762,13 +8782,13 @@ var Qitch = function () {
|
|
|
8762
8782
|
throw "Invalid destination. Expected: Int8Array";
|
|
8763
8783
|
};
|
|
8764
8784
|
|
|
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}
|
|
8785
|
+
/**
|
|
8786
|
+
* Gets marketdata type from source byte array at specified offset.
|
|
8787
|
+
* @param src The source array.
|
|
8788
|
+
* @param offset The offset.
|
|
8789
|
+
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8790
|
+
* otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
|
|
8791
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8772
8792
|
*/
|
|
8773
8793
|
|
|
8774
8794
|
|
|
@@ -8782,13 +8802,13 @@ var Qitch = function () {
|
|
|
8782
8802
|
throw "Invalid source. Expected: Int8Array";
|
|
8783
8803
|
};
|
|
8784
8804
|
|
|
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}
|
|
8805
|
+
/**
|
|
8806
|
+
* Puts marketdata type value into destination array.
|
|
8807
|
+
* @param dst The destination array.
|
|
8808
|
+
* @param offset The offset.
|
|
8809
|
+
* @param val Marketdatatype value.
|
|
8810
|
+
* @returns {Int8Array} destination array.
|
|
8811
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8792
8812
|
*/
|
|
8793
8813
|
|
|
8794
8814
|
|
|
@@ -8800,13 +8820,13 @@ var Qitch = function () {
|
|
|
8800
8820
|
throw "Invalid destination. Expected: Int8Array";
|
|
8801
8821
|
};
|
|
8802
8822
|
|
|
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}
|
|
8823
|
+
/**
|
|
8824
|
+
* Gets entitlement type from source byte array at specified offset.
|
|
8825
|
+
* @param src The source array.
|
|
8826
|
+
* @param offset The offset.
|
|
8827
|
+
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8828
|
+
* otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
|
|
8829
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8810
8830
|
*/
|
|
8811
8831
|
|
|
8812
8832
|
|
|
@@ -8820,12 +8840,12 @@ var Qitch = function () {
|
|
|
8820
8840
|
throw "Invalid source. Expected: Int8Array";
|
|
8821
8841
|
};
|
|
8822
8842
|
|
|
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}
|
|
8843
|
+
/**
|
|
8844
|
+
* Gets stream entitlement entry from source byte array at specified offset.
|
|
8845
|
+
* @param src The source array.
|
|
8846
|
+
* @param offset The offset.
|
|
8847
|
+
* @returns {messages.control.StreamEntitlement}
|
|
8848
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8829
8849
|
*/
|
|
8830
8850
|
|
|
8831
8851
|
|
|
@@ -8858,8 +8878,8 @@ var _jsbi2 = _interopRequireDefault(_jsbi);
|
|
|
8858
8878
|
|
|
8859
8879
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8860
8880
|
|
|
8861
|
-
/*
|
|
8862
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8881
|
+
/*
|
|
8882
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8863
8883
|
*/
|
|
8864
8884
|
var ASCII_NULL = exports.ASCII_NULL = 0;
|
|
8865
8885
|
var ASCIICHAR_NULL = exports.ASCIICHAR_NULL = '0';
|
|
@@ -9228,9 +9248,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
9228
9248
|
|
|
9229
9249
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9230
9250
|
|
|
9231
|
-
/**
|
|
9232
|
-
* Decodes a stream of message blocks into messages.
|
|
9233
|
-
* This class is stateful and cannot be shared between multiple streams.
|
|
9251
|
+
/**
|
|
9252
|
+
* Decodes a stream of message blocks into messages.
|
|
9253
|
+
* This class is stateful and cannot be shared between multiple streams.
|
|
9234
9254
|
*/
|
|
9235
9255
|
var BlockDecoder = function () {
|
|
9236
9256
|
function BlockDecoder(decoders, capacity) {
|
|
@@ -9252,9 +9272,9 @@ var BlockDecoder = function () {
|
|
|
9252
9272
|
this.doflip = false;
|
|
9253
9273
|
}
|
|
9254
9274
|
|
|
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
|
|
9275
|
+
/**
|
|
9276
|
+
* The number of messages in the current block.
|
|
9277
|
+
* @returns {number} The number of messages or -1 if no block is being decoded
|
|
9258
9278
|
*/
|
|
9259
9279
|
|
|
9260
9280
|
|
|
@@ -9262,9 +9282,9 @@ var BlockDecoder = function () {
|
|
|
9262
9282
|
return this.state.messagecount;
|
|
9263
9283
|
};
|
|
9264
9284
|
|
|
9265
|
-
/**
|
|
9266
|
-
* Returns the sequence number of the current block.
|
|
9267
|
-
* @returns {number} the sequence number of the current block.
|
|
9285
|
+
/**
|
|
9286
|
+
* Returns the sequence number of the current block.
|
|
9287
|
+
* @returns {number} the sequence number of the current block.
|
|
9268
9288
|
*/
|
|
9269
9289
|
|
|
9270
9290
|
|
|
@@ -9272,13 +9292,13 @@ var BlockDecoder = function () {
|
|
|
9272
9292
|
return this.state.blocksequencenumber;
|
|
9273
9293
|
};
|
|
9274
9294
|
|
|
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.
|
|
9295
|
+
/**
|
|
9296
|
+
* Adds bytes to internal buffer.
|
|
9297
|
+
* Call {@link decode} to decode the buffered data.
|
|
9298
|
+
* @param bytes The array from witch bytes are to be added.
|
|
9299
|
+
* @param offset The offset within the array of the fist byte to be added.
|
|
9300
|
+
* @param length The number of bytes to be added from the given array.
|
|
9301
|
+
* @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
|
|
9282
9302
|
*/
|
|
9283
9303
|
|
|
9284
9304
|
|
|
@@ -9307,11 +9327,11 @@ var BlockDecoder = function () {
|
|
|
9307
9327
|
return numOfLeftoverBytes;
|
|
9308
9328
|
};
|
|
9309
9329
|
|
|
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.
|
|
9330
|
+
/**
|
|
9331
|
+
* Incrementally decodes the data in the internal buffer.
|
|
9332
|
+
* Successive calls to this method will return the next decoded message as long enough data is avail
|
|
9333
|
+
* If not enough data is available null will be returned until more data is added.
|
|
9334
|
+
* @returns {*} The next decoded message or null if not enough data is available.
|
|
9315
9335
|
*/
|
|
9316
9336
|
|
|
9317
9337
|
|
|
@@ -9670,8 +9690,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
9670
9690
|
|
|
9671
9691
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9672
9692
|
|
|
9673
|
-
/*
|
|
9674
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
9693
|
+
/*
|
|
9694
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
9675
9695
|
*/
|
|
9676
9696
|
var QitchDecoder = function () {
|
|
9677
9697
|
function QitchDecoder(bufferSize) {
|
|
@@ -11373,8 +11393,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
11373
11393
|
|
|
11374
11394
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11375
11395
|
|
|
11376
|
-
/*
|
|
11377
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
11396
|
+
/*
|
|
11397
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
11378
11398
|
*/
|
|
11379
11399
|
var QitchEncoder = function () {
|
|
11380
11400
|
function QitchEncoder() {
|
|
@@ -11383,12 +11403,12 @@ var QitchEncoder = function () {
|
|
|
11383
11403
|
this.encoder = new MessageEncoder();
|
|
11384
11404
|
}
|
|
11385
11405
|
|
|
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
|
|
11406
|
+
/**
|
|
11407
|
+
* Encodes a message into its binary representation.
|
|
11408
|
+
* @param msg Msg {SMessage} the message to encode
|
|
11409
|
+
* @param offset The offset used to write message into a buffer
|
|
11410
|
+
* @returns {ArrayBuffer} the encoded bytes
|
|
11411
|
+
* @throws Throws an error if message cannot be encoded
|
|
11392
11412
|
*/
|
|
11393
11413
|
|
|
11394
11414
|
|
|
@@ -12610,11 +12630,11 @@ exports["default"] = new function () {
|
|
|
12610
12630
|
|
|
12611
12631
|
// Generated by CoffeeScript 1.7.1
|
|
12612
12632
|
|
|
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)
|
|
12633
|
+
/*
|
|
12634
|
+
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
|
|
12635
|
+
|
|
12636
|
+
Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
|
|
12637
|
+
Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
|
|
12618
12638
|
*/
|
|
12619
12639
|
|
|
12620
12640
|
(function () {
|
|
@@ -14886,1166 +14906,1167 @@ exports["default"] = StompStreamingService;
|
|
|
14886
14906
|
exports.__esModule = true;
|
|
14887
14907
|
/* @see http://usejsdoc.org */
|
|
14888
14908
|
|
|
14889
|
-
/**
|
|
14890
|
-
* Streamer api namespace.
|
|
14891
|
-
* @namespace
|
|
14909
|
+
/**
|
|
14910
|
+
* Streamer api namespace.
|
|
14911
|
+
* @namespace
|
|
14892
14912
|
*/
|
|
14893
14913
|
|
|
14894
14914
|
var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
|
|
14895
|
-
var VERSION = exports.VERSION = "2.
|
|
14915
|
+
var VERSION = exports.VERSION = "2.43.0";
|
|
14896
14916
|
|
|
14897
|
-
/**
|
|
14898
|
-
* Streamer message api namespace.
|
|
14899
|
-
* @namespace
|
|
14917
|
+
/**
|
|
14918
|
+
* Streamer message api namespace.
|
|
14919
|
+
* @namespace
|
|
14900
14920
|
*/
|
|
14901
14921
|
var messages = exports.messages = {};
|
|
14902
14922
|
|
|
14903
|
-
/**
|
|
14904
|
-
* Streamer control message namespace. * @namespace
|
|
14923
|
+
/**
|
|
14924
|
+
* Streamer control message namespace. * @namespace
|
|
14905
14925
|
*/
|
|
14906
14926
|
messages.control = {};
|
|
14907
14927
|
|
|
14908
|
-
/**
|
|
14909
|
-
* Streamer market data message namespace.
|
|
14910
|
-
* @namespace
|
|
14928
|
+
/**
|
|
14929
|
+
* Streamer market data message namespace.
|
|
14930
|
+
* @namespace
|
|
14911
14931
|
*/
|
|
14912
14932
|
messages.market = {};
|
|
14913
14933
|
|
|
14914
14934
|
/* ****************************************************************************************************************** */
|
|
14915
14935
|
|
|
14916
|
-
/**
|
|
14917
|
-
*
|
|
14918
|
-
* @type {string}
|
|
14936
|
+
/**
|
|
14937
|
+
*
|
|
14938
|
+
* @type {string}
|
|
14919
14939
|
*/
|
|
14920
14940
|
messages.JSON_TYPE_PROPERTY = '@T';
|
|
14921
14941
|
|
|
14922
|
-
/**
|
|
14923
|
-
* Message type identifiers.<br>
|
|
14924
|
-
* Ensure identifiers are unique within this name space.
|
|
14925
|
-
* @namespace
|
|
14942
|
+
/**
|
|
14943
|
+
* Message type identifiers.<br>
|
|
14944
|
+
* Ensure identifiers are unique within this name space.
|
|
14945
|
+
* @namespace
|
|
14926
14946
|
*/
|
|
14927
14947
|
messages.MessageTypeNames = {
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
|
|
14958
|
-
|
|
14959
|
-
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14948
|
+
/**
|
|
14949
|
+
* Name space for control message type identifiers.
|
|
14950
|
+
* @namespace
|
|
14951
|
+
*/
|
|
14952
|
+
ctrl: {
|
|
14953
|
+
HEARTBEAT: 'C1',
|
|
14954
|
+
SUBSCRIBE: 'C2',
|
|
14955
|
+
SUBSCRIBE_RESPONSE: 'C3',
|
|
14956
|
+
UNSUBSCRIBE_RESPONSE: 'C4',
|
|
14957
|
+
CONNECT_RESPONSE: 'C5',
|
|
14958
|
+
CONNECTION_CLOSE: 'C6',
|
|
14959
|
+
FLOW: 'C7',
|
|
14960
|
+
SLOW_CONNECTION: 'C8',
|
|
14961
|
+
INITIAL_DATA_SENT: 'C9',
|
|
14962
|
+
RESUBSCRIBE_MESSAGE: 'C10',
|
|
14963
|
+
STATS: 'C12',
|
|
14964
|
+
STATS_RESPONSE: 'C13',
|
|
14965
|
+
EXCHANGE_SUBSCRIBE: 'C14',
|
|
14966
|
+
EXCHANGE_RESPONSE: 'C15',
|
|
14967
|
+
EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
|
|
14968
|
+
NEWS_SUBSCRIBE: 'C17',
|
|
14969
|
+
NEWS_SUBSCRIBE_RESPONSE: 'C18',
|
|
14970
|
+
ALERTS_SUBUNSUB: 'C19',
|
|
14971
|
+
ALERTS_SUBUNSUB_RESPONSE: 'C20',
|
|
14972
|
+
TRADE_SUBSCRIBE: 'C21',
|
|
14973
|
+
TRADE_SUBSCRIBE_RESPONSE: 'C22',
|
|
14974
|
+
NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
|
|
14975
|
+
NEWS_COMMAND: 'C24',
|
|
14976
|
+
NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
|
|
14977
|
+
NEWS_CMD_FILTER_RESPONSE: 'C26',
|
|
14978
|
+
AUTHENTICATION: 'C27',
|
|
14979
|
+
OPEN_FLOW: 'C28',
|
|
14980
|
+
RECONNECT_RESPONSE: 'C29',
|
|
14981
|
+
TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
|
|
14982
|
+
MISSED_DATA_SENT: 'C31'
|
|
14983
|
+
},
|
|
14984
|
+
/**
|
|
14985
|
+
* Name space for data message type identifiers.<br>
|
|
14986
|
+
* Prefix with 'D'.
|
|
14987
|
+
* @namespace
|
|
14988
|
+
*/
|
|
14989
|
+
data: {
|
|
14990
|
+
QUOTE: 'D1',
|
|
14991
|
+
PRICEDATA: 'D2',
|
|
14992
|
+
TRADE: 'D3',
|
|
14993
|
+
BOOKORDER: 'D4',
|
|
14994
|
+
BOOKDELETE: 'D5',
|
|
14995
|
+
PURGEBOOK: 'D6',
|
|
14996
|
+
MMQUOTE: 'D7',
|
|
14997
|
+
INTERVAL: 'D8',
|
|
14998
|
+
NETHOUSEPOSITION: 'D9',
|
|
14999
|
+
SYMBOLINFO: 'D10',
|
|
15000
|
+
SYMBOLSTATUS: 'D11',
|
|
15001
|
+
DERIVATIVEINFO: 'D12',
|
|
15002
|
+
LASTSALE: 'D13',
|
|
15003
|
+
LIMITUPLIMITDOWN: 'D14',
|
|
15004
|
+
IVGREEKS: 'D15',
|
|
15005
|
+
IMBALANCESTATUS: 'D16',
|
|
15006
|
+
ALERT: 'D17',
|
|
15007
|
+
NEWS: 'D18',
|
|
15008
|
+
TRADENOTIFICATION: 'D19',
|
|
15009
|
+
NEWSCMDFILTER: 'D20',
|
|
15010
|
+
NEWSERROR: 'D21',
|
|
15011
|
+
DIVIDEND: 'D22',
|
|
15012
|
+
EARNINGS: 'D23',
|
|
15013
|
+
SPLIT: 'D24',
|
|
15014
|
+
SYMBOLCHANGED: 'D25'
|
|
15015
|
+
}
|
|
14995
15016
|
};
|
|
14996
15017
|
|
|
14997
|
-
/**
|
|
14998
|
-
* Super type of all exports.
|
|
14999
|
-
* @abstract
|
|
15000
|
-
* @constructor
|
|
15018
|
+
/**
|
|
15019
|
+
* Super type of all exports.
|
|
15020
|
+
* @abstract
|
|
15021
|
+
* @constructor
|
|
15001
15022
|
*/
|
|
15002
15023
|
messages.Message = function () {};
|
|
15003
15024
|
|
|
15004
15025
|
messages.Message.prototype.init = function (typeid) {
|
|
15005
|
-
|
|
15026
|
+
this[messages.JSON_TYPE_PROPERTY] = typeid;
|
|
15006
15027
|
};
|
|
15007
15028
|
|
|
15008
15029
|
/* ****************************************************************************************************************** */
|
|
15009
15030
|
|
|
15010
|
-
/**
|
|
15011
|
-
* Creates a control message base object.
|
|
15012
|
-
* @abstract
|
|
15013
|
-
* @constructor
|
|
15031
|
+
/**
|
|
15032
|
+
* Creates a control message base object.
|
|
15033
|
+
* @abstract
|
|
15034
|
+
* @constructor
|
|
15014
15035
|
*/
|
|
15015
15036
|
messages.control.CtrlMessage = function () {};
|
|
15016
15037
|
messages.control.CtrlMessage.prototype = new messages.Message();
|
|
15017
15038
|
|
|
15018
|
-
/**
|
|
15019
|
-
* Creates a heartbeat message.
|
|
15020
|
-
* @constructor
|
|
15039
|
+
/**
|
|
15040
|
+
* Creates a heartbeat message.
|
|
15041
|
+
* @constructor
|
|
15021
15042
|
*/
|
|
15022
15043
|
messages.control.Heartbeat = function () {
|
|
15023
|
-
|
|
15044
|
+
this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
|
|
15024
15045
|
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
|
|
15046
|
+
/**
|
|
15047
|
+
* Timestamp when heartbeat was generated.
|
|
15048
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15049
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15050
|
+
*/
|
|
15051
|
+
this.timestamp = null;
|
|
15031
15052
|
};
|
|
15032
15053
|
messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
|
|
15033
|
-
/**
|
|
15034
|
-
* Creates a stats message.
|
|
15035
|
-
* @constructor
|
|
15054
|
+
/**
|
|
15055
|
+
* Creates a stats message.
|
|
15056
|
+
* @constructor
|
|
15036
15057
|
*/
|
|
15037
15058
|
messages.control.StatsMessage = function () {
|
|
15038
|
-
|
|
15059
|
+
this.init(messages.MessageTypeNames.ctrl.STATS);
|
|
15039
15060
|
};
|
|
15040
15061
|
messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
|
|
15041
15062
|
|
|
15042
|
-
/**
|
|
15043
|
-
* Creates a subscribe message.
|
|
15044
|
-
* @constructor
|
|
15063
|
+
/**
|
|
15064
|
+
* Creates a subscribe message.
|
|
15065
|
+
* @constructor
|
|
15045
15066
|
*/
|
|
15046
15067
|
messages.control.SubscribeMessage = function () {
|
|
15047
|
-
|
|
15068
|
+
this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
|
|
15048
15069
|
|
|
15049
|
-
|
|
15050
|
-
|
|
15051
|
-
|
|
15052
|
-
|
|
15053
|
-
|
|
15054
|
-
|
|
15070
|
+
/**
|
|
15071
|
+
* The action the server will taken when receiving this message.
|
|
15072
|
+
* @type {string}
|
|
15073
|
+
* @see exports.messages.control.Action
|
|
15074
|
+
*/
|
|
15075
|
+
this.action = null;
|
|
15055
15076
|
|
|
15056
|
-
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
|
|
15077
|
+
/**
|
|
15078
|
+
* List of ticker symbols to subscribe/un-subscribe for.
|
|
15079
|
+
* @type {Array.<string>}
|
|
15080
|
+
*/
|
|
15081
|
+
this.symbols = [];
|
|
15061
15082
|
|
|
15062
|
-
|
|
15063
|
-
|
|
15064
|
-
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
|
|
15083
|
+
/**
|
|
15084
|
+
* List of streaming message types to subscribe each ticker symbol for.
|
|
15085
|
+
* @type {Array.<string>}
|
|
15086
|
+
* @see exports.messages.control.MarketdataType
|
|
15087
|
+
*/
|
|
15088
|
+
this.types = [];
|
|
15068
15089
|
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15090
|
+
/**
|
|
15091
|
+
* Requested message mime-type format.
|
|
15092
|
+
* @type {string}
|
|
15093
|
+
* @see exports.messages.MimeTypes
|
|
15094
|
+
*/
|
|
15095
|
+
this.mimetype = null;
|
|
15075
15096
|
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15097
|
+
/**
|
|
15098
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
15099
|
+
* @type {int}
|
|
15100
|
+
*/
|
|
15101
|
+
this.conflation = null;
|
|
15081
15102
|
};
|
|
15082
15103
|
messages.control.SubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15083
15104
|
|
|
15084
|
-
/**
|
|
15085
|
-
* Creates an exchange subscribe message.
|
|
15086
|
-
* @constructor
|
|
15105
|
+
/**
|
|
15106
|
+
* Creates an exchange subscribe message.
|
|
15107
|
+
* @constructor
|
|
15087
15108
|
*/
|
|
15088
15109
|
messages.control.ExchangeSubscribeMessage = function () {
|
|
15089
|
-
|
|
15110
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
|
|
15090
15111
|
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15112
|
+
/**
|
|
15113
|
+
* The action the server will taken when receiving this message.
|
|
15114
|
+
* @type {string}
|
|
15115
|
+
* @see exports.messages.control.Action
|
|
15116
|
+
*/
|
|
15117
|
+
this.action = null;
|
|
15097
15118
|
|
|
15098
|
-
|
|
15099
|
-
|
|
15100
|
-
|
|
15101
|
-
|
|
15102
|
-
|
|
15119
|
+
/**
|
|
15120
|
+
* The Exchange to subscribe/un-subscribe for.
|
|
15121
|
+
* @type {Array.<string>}
|
|
15122
|
+
*/
|
|
15123
|
+
this.exchange = null;
|
|
15103
15124
|
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15125
|
+
/**
|
|
15126
|
+
* Requested message mime-type format.
|
|
15127
|
+
* @type {string}
|
|
15128
|
+
* @see exports.messages.MimeTypes
|
|
15129
|
+
*/
|
|
15130
|
+
this.mimetype = null;
|
|
15110
15131
|
|
|
15111
|
-
|
|
15112
|
-
|
|
15113
|
-
|
|
15114
|
-
|
|
15115
|
-
|
|
15132
|
+
/**
|
|
15133
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
15134
|
+
* @type {int}
|
|
15135
|
+
*/
|
|
15136
|
+
this.conflation = null;
|
|
15116
15137
|
};
|
|
15117
15138
|
messages.control.ExchangeSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15118
15139
|
|
|
15119
|
-
/**
|
|
15120
|
-
* Creates an news subscribe message.
|
|
15121
|
-
* @constructor
|
|
15140
|
+
/**
|
|
15141
|
+
* Creates an news subscribe message.
|
|
15142
|
+
* @constructor
|
|
15122
15143
|
*/
|
|
15123
15144
|
messages.control.NewsSubscribeMessage = function () {
|
|
15124
|
-
|
|
15145
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
|
|
15125
15146
|
|
|
15126
|
-
|
|
15127
|
-
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15131
|
-
|
|
15147
|
+
/**
|
|
15148
|
+
* The action the server will taken when receiving this message.
|
|
15149
|
+
* @type {string}
|
|
15150
|
+
* @see exports.messages.control.Action
|
|
15151
|
+
*/
|
|
15152
|
+
this.action = null;
|
|
15132
15153
|
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
|
|
15154
|
+
/**
|
|
15155
|
+
* The news filters to subscribe for.
|
|
15156
|
+
* @type {Array.<string>}
|
|
15157
|
+
*/
|
|
15158
|
+
this.newsFilters = null;
|
|
15138
15159
|
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
|
|
15160
|
+
/**
|
|
15161
|
+
* Requested message mime-type format.
|
|
15162
|
+
* @type {string}
|
|
15163
|
+
* @see exports.messages.MimeTypes
|
|
15164
|
+
*/
|
|
15165
|
+
this.mimetype = null;
|
|
15145
15166
|
};
|
|
15146
15167
|
messages.control.NewsSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15147
15168
|
|
|
15148
|
-
/**
|
|
15149
|
-
* Creates an news reset message.
|
|
15150
|
-
* @constructor
|
|
15169
|
+
/**
|
|
15170
|
+
* Creates an news reset message.
|
|
15171
|
+
* @constructor
|
|
15151
15172
|
*/
|
|
15152
15173
|
messages.control.NewsCommandMessage = function () {
|
|
15153
|
-
|
|
15174
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
|
|
15154
15175
|
|
|
15155
|
-
|
|
15156
|
-
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15160
|
-
|
|
15176
|
+
/**
|
|
15177
|
+
* The action the server will taken when receiving this message.
|
|
15178
|
+
* @type {string}
|
|
15179
|
+
* @see exports.messages.control.Action
|
|
15180
|
+
*/
|
|
15181
|
+
this.newsAction = null;
|
|
15161
15182
|
|
|
15162
|
-
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15183
|
+
/**
|
|
15184
|
+
* Requested message mime-type format.
|
|
15185
|
+
* @type {string}
|
|
15186
|
+
* @see exports.messages.MimeTypes
|
|
15187
|
+
*/
|
|
15188
|
+
this.mimetype = null;
|
|
15168
15189
|
};
|
|
15169
15190
|
messages.control.NewsCommandMessage.prototype = new messages.control.CtrlMessage();
|
|
15170
15191
|
|
|
15171
|
-
/**
|
|
15172
|
-
* Creates an news subscribe message.
|
|
15173
|
-
* @constructor
|
|
15192
|
+
/**
|
|
15193
|
+
* Creates an news subscribe message.
|
|
15194
|
+
* @constructor
|
|
15174
15195
|
*/
|
|
15175
15196
|
messages.control.AlertsSubUnsubMessage = function () {
|
|
15176
|
-
|
|
15197
|
+
this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB);
|
|
15177
15198
|
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
|
|
15199
|
+
/**
|
|
15200
|
+
* sub/unsub for alerts.
|
|
15201
|
+
* @type {string}
|
|
15202
|
+
*/
|
|
15203
|
+
this.operation = null;
|
|
15183
15204
|
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
|
-
|
|
15188
|
-
|
|
15189
|
-
|
|
15205
|
+
/**
|
|
15206
|
+
* Requested message mime-type format.
|
|
15207
|
+
* @type {string}
|
|
15208
|
+
* @see exports.messages.MimeTypes
|
|
15209
|
+
*/
|
|
15210
|
+
this.mimetype = null;
|
|
15190
15211
|
};
|
|
15191
15212
|
messages.control.AlertsSubUnsubMessage.prototype = new messages.control.CtrlMessage();
|
|
15192
15213
|
|
|
15193
|
-
/**
|
|
15194
|
-
* Creates Trade notification subscribe message.
|
|
15195
|
-
* @constructor
|
|
15214
|
+
/**
|
|
15215
|
+
* Creates Trade notification subscribe message.
|
|
15216
|
+
* @constructor
|
|
15196
15217
|
*/
|
|
15197
15218
|
|
|
15198
15219
|
messages.control.TradeSubscribeMessage = function () {
|
|
15199
|
-
|
|
15220
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
|
|
15200
15221
|
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
|
|
15222
|
+
/**
|
|
15223
|
+
* The action the server will taken when receiving this message.
|
|
15224
|
+
* @type {string}
|
|
15225
|
+
* @see exports.messages.control.Action
|
|
15226
|
+
*/
|
|
15227
|
+
this.action = null;
|
|
15207
15228
|
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15229
|
+
/**
|
|
15230
|
+
* The subscribe/un-subscribe for trade notifications.
|
|
15231
|
+
* @type {Array.<string>}
|
|
15232
|
+
*/
|
|
15233
|
+
this.notificationType = null;
|
|
15213
15234
|
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15235
|
+
/**
|
|
15236
|
+
* Requested message mime-type format.
|
|
15237
|
+
* @type {string}
|
|
15238
|
+
* @see exports.messages.MimeTypes
|
|
15239
|
+
*/
|
|
15240
|
+
this.mimetype = null;
|
|
15220
15241
|
};
|
|
15221
15242
|
messages.control.TradeSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15222
15243
|
|
|
15223
|
-
/**
|
|
15224
|
-
* Base class for response exports.
|
|
15225
|
-
* @abstract
|
|
15244
|
+
/**
|
|
15245
|
+
* Base class for response exports.
|
|
15246
|
+
* @abstract
|
|
15226
15247
|
*/
|
|
15227
15248
|
messages.control.BaseResponse = function () {
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15249
|
+
/**
|
|
15250
|
+
* The response code.
|
|
15251
|
+
* @type {number}
|
|
15252
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15253
|
+
*/
|
|
15254
|
+
this.code = null;
|
|
15234
15255
|
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15238
|
-
|
|
15239
|
-
|
|
15240
|
-
|
|
15256
|
+
/**
|
|
15257
|
+
* The response reason.
|
|
15258
|
+
* @type {string}
|
|
15259
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15260
|
+
*/
|
|
15261
|
+
this.reason = null;
|
|
15241
15262
|
};
|
|
15242
15263
|
messages.control.BaseResponse.prototype = new messages.control.CtrlMessage();
|
|
15243
15264
|
|
|
15244
|
-
/**
|
|
15245
|
-
* Creates a subscribe response message.
|
|
15246
|
-
* @constructor
|
|
15265
|
+
/**
|
|
15266
|
+
* Creates a subscribe response message.
|
|
15267
|
+
* @constructor
|
|
15247
15268
|
*/
|
|
15248
15269
|
messages.control.SubscribeResponse = function () {
|
|
15249
|
-
|
|
15270
|
+
this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE);
|
|
15250
15271
|
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15272
|
+
/**
|
|
15273
|
+
*
|
|
15274
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15275
|
+
*/
|
|
15276
|
+
this.entitlements = null;
|
|
15256
15277
|
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15260
|
-
|
|
15261
|
-
|
|
15278
|
+
/**
|
|
15279
|
+
*
|
|
15280
|
+
* @type {Array.<string>}
|
|
15281
|
+
*/
|
|
15282
|
+
this.invalidsymbols = null;
|
|
15262
15283
|
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
|
|
15284
|
+
/**
|
|
15285
|
+
*
|
|
15286
|
+
* @type {Array.<string>}
|
|
15287
|
+
*/
|
|
15288
|
+
this.rejectedsymbols = null;
|
|
15268
15289
|
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15290
|
+
/**
|
|
15291
|
+
*
|
|
15292
|
+
* @type {Array.<string>}
|
|
15293
|
+
*/
|
|
15294
|
+
this.messagefilters = null;
|
|
15274
15295
|
};
|
|
15275
15296
|
messages.control.SubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15276
15297
|
|
|
15277
|
-
/**
|
|
15278
|
-
* Creates an exchange subscribe response message.
|
|
15279
|
-
* @constructor
|
|
15298
|
+
/**
|
|
15299
|
+
* Creates an exchange subscribe response message.
|
|
15300
|
+
* @constructor
|
|
15280
15301
|
*/
|
|
15281
15302
|
messages.control.ExchangeSubscribeResponse = function () {
|
|
15282
|
-
|
|
15303
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE);
|
|
15283
15304
|
};
|
|
15284
15305
|
|
|
15285
15306
|
messages.control.ExchangeSubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15286
15307
|
|
|
15287
|
-
/**
|
|
15288
|
-
* Creates an Alert un-subscribe response message.
|
|
15289
|
-
* @constructor
|
|
15308
|
+
/**
|
|
15309
|
+
* Creates an Alert un-subscribe response message.
|
|
15310
|
+
* @constructor
|
|
15290
15311
|
*/
|
|
15291
15312
|
messages.control.AlertSubUnsubResponse = function () {
|
|
15292
|
-
|
|
15313
|
+
this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE);
|
|
15293
15314
|
};
|
|
15294
15315
|
messages.control.AlertSubUnsubResponse.prototype = new messages.control.BaseResponse();
|
|
15295
15316
|
|
|
15296
|
-
/**
|
|
15297
|
-
* Creates Trade notification subscribe response message.
|
|
15298
|
-
* @constructor
|
|
15317
|
+
/**
|
|
15318
|
+
* Creates Trade notification subscribe response message.
|
|
15319
|
+
* @constructor
|
|
15299
15320
|
*/
|
|
15300
15321
|
messages.control.TradeSubscribeResponse = function () {
|
|
15301
|
-
|
|
15322
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE);
|
|
15302
15323
|
};
|
|
15303
15324
|
|
|
15304
15325
|
messages.control.TradeSubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15305
15326
|
|
|
15306
|
-
/**
|
|
15307
|
-
* Creates an un-subscribe response message.
|
|
15308
|
-
* @constructor
|
|
15327
|
+
/**
|
|
15328
|
+
* Creates an un-subscribe response message.
|
|
15329
|
+
* @constructor
|
|
15309
15330
|
*/
|
|
15310
15331
|
messages.control.UnsubscribeResponse = function () {
|
|
15311
|
-
|
|
15332
|
+
this.init(messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE);
|
|
15312
15333
|
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15317
|
-
|
|
15334
|
+
/**
|
|
15335
|
+
*
|
|
15336
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15337
|
+
*/
|
|
15338
|
+
this.unsubscribed = null;
|
|
15318
15339
|
};
|
|
15319
15340
|
messages.control.UnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15320
15341
|
|
|
15321
|
-
/**
|
|
15322
|
-
* Creates an exchange unsubscribe response message.
|
|
15323
|
-
* @constructor
|
|
15342
|
+
/**
|
|
15343
|
+
* Creates an exchange unsubscribe response message.
|
|
15344
|
+
* @constructor
|
|
15324
15345
|
*/
|
|
15325
15346
|
messages.control.ExchangeUnsubscribeResponse = function () {
|
|
15326
|
-
|
|
15347
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE);
|
|
15327
15348
|
};
|
|
15328
15349
|
|
|
15329
15350
|
messages.control.ExchangeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15330
15351
|
|
|
15331
|
-
/**
|
|
15332
|
-
* Creates an news un-subscribe response message.
|
|
15333
|
-
* @constructor
|
|
15352
|
+
/**
|
|
15353
|
+
* Creates an news un-subscribe response message.
|
|
15354
|
+
* @constructor
|
|
15334
15355
|
*/
|
|
15335
15356
|
messages.control.NewsUnsubscribeResponse = function () {
|
|
15336
|
-
|
|
15357
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE);
|
|
15337
15358
|
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
15342
|
-
|
|
15359
|
+
/**
|
|
15360
|
+
*
|
|
15361
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15362
|
+
*/
|
|
15363
|
+
this.unsubscribed = null;
|
|
15343
15364
|
};
|
|
15344
15365
|
messages.control.NewsUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15345
15366
|
|
|
15346
|
-
/**
|
|
15347
|
-
* Creates Trade notification subscribe response message.
|
|
15348
|
-
* @constructor
|
|
15367
|
+
/**
|
|
15368
|
+
* Creates Trade notification subscribe response message.
|
|
15369
|
+
* @constructor
|
|
15349
15370
|
*/
|
|
15350
15371
|
messages.control.TradeUnsubscribeResponse = function () {
|
|
15351
|
-
|
|
15372
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
|
|
15352
15373
|
};
|
|
15353
15374
|
|
|
15354
15375
|
messages.control.TradeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15355
|
-
/**
|
|
15356
|
-
* Creates a stream entitlement info.
|
|
15357
|
-
* @constructor
|
|
15376
|
+
/**
|
|
15377
|
+
* Creates a stream entitlement info.
|
|
15378
|
+
* @constructor
|
|
15358
15379
|
*/
|
|
15359
15380
|
messages.control.StreamEntitlement = function () {
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15381
|
+
/**
|
|
15382
|
+
* The symbol the entitlement is for.
|
|
15383
|
+
* @type {string}
|
|
15384
|
+
*/
|
|
15385
|
+
this.symbol = null;
|
|
15365
15386
|
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15387
|
+
/**
|
|
15388
|
+
* The market data type the entitlement is for.
|
|
15389
|
+
* @type {string}
|
|
15390
|
+
* @see messages.control.MarketdataType
|
|
15391
|
+
*/
|
|
15392
|
+
this.marketdatatype = null;
|
|
15372
15393
|
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15394
|
+
/**
|
|
15395
|
+
*
|
|
15396
|
+
* @type {string}
|
|
15397
|
+
* @see messages.control.StreamEntitlementType
|
|
15398
|
+
*/
|
|
15399
|
+
this.entitlement = null;
|
|
15379
15400
|
};
|
|
15380
15401
|
|
|
15381
|
-
/**
|
|
15382
|
-
* Creates a new connect response message.
|
|
15383
|
-
* @constructor
|
|
15402
|
+
/**
|
|
15403
|
+
* Creates a new connect response message.
|
|
15404
|
+
* @constructor
|
|
15384
15405
|
*/
|
|
15385
15406
|
messages.control.ConnectResponse = function () {
|
|
15386
|
-
|
|
15407
|
+
this.init(messages.MessageTypeNames.ctrl.CONNECT_RESPONSE);
|
|
15387
15408
|
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15409
|
+
/**
|
|
15410
|
+
* The server version.
|
|
15411
|
+
* @type {string}
|
|
15412
|
+
*/
|
|
15413
|
+
this.version = null;
|
|
15393
15414
|
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15415
|
+
/**
|
|
15416
|
+
* The flow control check interval.
|
|
15417
|
+
* @type {number}
|
|
15418
|
+
*/
|
|
15419
|
+
this.flowControlCheckInterval = null;
|
|
15399
15420
|
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15421
|
+
/**
|
|
15422
|
+
* The server instance connected to.
|
|
15423
|
+
* @type {string}
|
|
15424
|
+
*/
|
|
15425
|
+
this.serverInstance = null;
|
|
15405
15426
|
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15427
|
+
/**
|
|
15428
|
+
* The conflation rate in milliseconds.
|
|
15429
|
+
* @type {number}
|
|
15430
|
+
*/
|
|
15431
|
+
this.conflationMs = null;
|
|
15411
15432
|
};
|
|
15412
15433
|
messages.control.ConnectResponse.prototype = new messages.control.BaseResponse();
|
|
15413
15434
|
|
|
15414
|
-
/**
|
|
15415
|
-
* Creates a new reconnect response message
|
|
15416
|
-
* @constructor
|
|
15435
|
+
/**
|
|
15436
|
+
* Creates a new reconnect response message
|
|
15437
|
+
* @constructor
|
|
15417
15438
|
*/
|
|
15418
15439
|
messages.control.ReconnectResponse = function () {
|
|
15419
|
-
|
|
15440
|
+
undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
|
|
15420
15441
|
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15442
|
+
/**
|
|
15443
|
+
* The server version.
|
|
15444
|
+
* @type {string}
|
|
15445
|
+
*/
|
|
15446
|
+
undefined.version = null;
|
|
15426
15447
|
|
|
15427
|
-
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
|
|
15431
|
-
|
|
15448
|
+
/**
|
|
15449
|
+
* The flow control check interval.
|
|
15450
|
+
* @type {number}
|
|
15451
|
+
*/
|
|
15452
|
+
undefined.flowControlCheckInterval = null;
|
|
15432
15453
|
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15454
|
+
/**
|
|
15455
|
+
* The server instance connected to.
|
|
15456
|
+
* @type {string}
|
|
15457
|
+
*/
|
|
15458
|
+
undefined.serverInstance = null;
|
|
15438
15459
|
|
|
15439
|
-
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15460
|
+
/**
|
|
15461
|
+
* The conflation rate in milliseconds.
|
|
15462
|
+
* @type {number}
|
|
15463
|
+
*/
|
|
15464
|
+
undefined.conflationMs = null;
|
|
15444
15465
|
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15466
|
+
/**
|
|
15467
|
+
* The previous subscriptions
|
|
15468
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15469
|
+
*/
|
|
15470
|
+
undefined.previousSubscriptions = null;
|
|
15450
15471
|
};
|
|
15451
15472
|
|
|
15452
|
-
/**
|
|
15453
|
-
* Creates a connection response message.
|
|
15454
|
-
* @constructor
|
|
15473
|
+
/**
|
|
15474
|
+
* Creates a connection response message.
|
|
15475
|
+
* @constructor
|
|
15455
15476
|
*/
|
|
15456
15477
|
messages.control.ConnectionClose = function () {
|
|
15457
|
-
|
|
15478
|
+
this.init(messages.MessageTypeNames.ctrl.CONNECTION_CLOSE);
|
|
15458
15479
|
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15480
|
+
/**
|
|
15481
|
+
* The connection close reason code.
|
|
15482
|
+
* @type {number}
|
|
15483
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15484
|
+
*/
|
|
15485
|
+
this.code = null;
|
|
15465
15486
|
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15487
|
+
/**
|
|
15488
|
+
* The connection close reason message.
|
|
15489
|
+
* @type {string}
|
|
15490
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15491
|
+
*/
|
|
15492
|
+
this.reason = null;
|
|
15472
15493
|
};
|
|
15473
15494
|
messages.control.ConnectionClose.prototype = new messages.control.CtrlMessage();
|
|
15474
15495
|
|
|
15475
|
-
/**
|
|
15476
|
-
* Creates a slow connection response message.
|
|
15477
|
-
* @constructor
|
|
15496
|
+
/**
|
|
15497
|
+
* Creates a slow connection response message.
|
|
15498
|
+
* @constructor
|
|
15478
15499
|
*/
|
|
15479
15500
|
messages.control.SlowConnection = function () {
|
|
15480
|
-
|
|
15501
|
+
this.init(messages.MessageTypeNames.ctrl.SLOW_CONNECTION);
|
|
15481
15502
|
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15503
|
+
/**
|
|
15504
|
+
* The number of times that the connection has exceeded already.
|
|
15505
|
+
* @type {number}
|
|
15506
|
+
*/
|
|
15507
|
+
this.timesExceeded = null;
|
|
15487
15508
|
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15509
|
+
/**
|
|
15510
|
+
* The max number allowed. The connection may close after reaching this number.
|
|
15511
|
+
* @type {number}
|
|
15512
|
+
*/
|
|
15513
|
+
this.maxExceed = null;
|
|
15493
15514
|
};
|
|
15494
15515
|
messages.control.SlowConnection.prototype = new messages.control.CtrlMessage();
|
|
15495
15516
|
|
|
15496
|
-
/**
|
|
15497
|
-
* Creates a flow control message.
|
|
15498
|
-
* @constructor
|
|
15517
|
+
/**
|
|
15518
|
+
* Creates a flow control message.
|
|
15519
|
+
* @constructor
|
|
15499
15520
|
*/
|
|
15500
15521
|
messages.control.FlowMessage = function () {
|
|
15501
|
-
|
|
15522
|
+
this.init(messages.MessageTypeNames.ctrl.FLOW);
|
|
15502
15523
|
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15508
|
-
|
|
15524
|
+
/**
|
|
15525
|
+
* Last received sequence number.
|
|
15526
|
+
* @type {number}
|
|
15527
|
+
* @see {@link messages.LongSequence}
|
|
15528
|
+
*/
|
|
15529
|
+
this.sequence = null;
|
|
15509
15530
|
};
|
|
15510
15531
|
messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
|
|
15511
15532
|
|
|
15512
|
-
/**
|
|
15513
|
-
* Creates an Auth message for Stomp connection Auth verification.
|
|
15514
|
-
* @constructor
|
|
15533
|
+
/**
|
|
15534
|
+
* Creates an Auth message for Stomp connection Auth verification.
|
|
15535
|
+
* @constructor
|
|
15515
15536
|
*/
|
|
15516
15537
|
messages.control.AuthenticationMessage = function () {
|
|
15517
|
-
|
|
15538
|
+
this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
|
|
15518
15539
|
|
|
15519
|
-
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15540
|
+
/**
|
|
15541
|
+
* Auth method.
|
|
15542
|
+
* @type {String}
|
|
15543
|
+
*/
|
|
15544
|
+
this.authenticationMethod = null;
|
|
15524
15545
|
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
|
|
15546
|
+
/**
|
|
15547
|
+
* Auth WMID if using enterprise token auth method we need to have both wmid and authorization.
|
|
15548
|
+
* @type {String}
|
|
15549
|
+
*/
|
|
15550
|
+
this.wmid = null;
|
|
15530
15551
|
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15552
|
+
/**
|
|
15553
|
+
* Auth token.
|
|
15554
|
+
* @type {String}
|
|
15555
|
+
*/
|
|
15556
|
+
this.authorization = null;
|
|
15536
15557
|
|
|
15537
|
-
|
|
15538
|
-
|
|
15539
|
-
|
|
15540
|
-
|
|
15541
|
-
|
|
15558
|
+
/**
|
|
15559
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
15560
|
+
* @type {number}
|
|
15561
|
+
*/
|
|
15562
|
+
this.conflation = 150;
|
|
15542
15563
|
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15564
|
+
/**
|
|
15565
|
+
*
|
|
15566
|
+
* @type {Boolean}
|
|
15567
|
+
*/
|
|
15568
|
+
this.rejectExcessiveConnection = false;
|
|
15548
15569
|
};
|
|
15549
15570
|
messages.control.AuthenticationMessage.prototype = new messages.control.CtrlMessage();
|
|
15550
15571
|
|
|
15551
|
-
/**
|
|
15552
|
-
* Creates a stats response message.
|
|
15553
|
-
* @constructor
|
|
15572
|
+
/**
|
|
15573
|
+
* Creates a stats response message.
|
|
15574
|
+
* @constructor
|
|
15554
15575
|
*/
|
|
15555
15576
|
messages.control.StatsResponse = function () {
|
|
15556
|
-
|
|
15577
|
+
this.init(messages.MessageTypeNames.ctrl.STATS_RESPONSE);
|
|
15557
15578
|
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15579
|
+
/**
|
|
15580
|
+
*
|
|
15581
|
+
* @type {number}
|
|
15582
|
+
*/
|
|
15583
|
+
this.numberOfSubscribedSymbolsL1 = null;
|
|
15584
|
+
/**
|
|
15585
|
+
*
|
|
15586
|
+
* @type {number}
|
|
15587
|
+
*/
|
|
15588
|
+
this.numberOfAvailableSymbolsL1 = null;
|
|
15589
|
+
/**
|
|
15590
|
+
*
|
|
15591
|
+
* @type {number}
|
|
15592
|
+
*/
|
|
15593
|
+
this.numberOfSubscribedSymbolsL2 = null;
|
|
15594
|
+
/**
|
|
15595
|
+
*
|
|
15596
|
+
* @type {number}
|
|
15597
|
+
*/
|
|
15598
|
+
this.numberOfAvailableSymbolsL2 = null;
|
|
15599
|
+
/**
|
|
15600
|
+
*
|
|
15601
|
+
* @type {number}
|
|
15602
|
+
*/
|
|
15603
|
+
this.numberOfOpenedConnections = null;
|
|
15604
|
+
/**
|
|
15605
|
+
*
|
|
15606
|
+
* @type {number}
|
|
15607
|
+
*/
|
|
15608
|
+
this.numberOfAvailableConnections = null;
|
|
15609
|
+
/**
|
|
15610
|
+
*
|
|
15611
|
+
* @type {number}
|
|
15612
|
+
*/
|
|
15613
|
+
this.numberOfSubscribedExchanges = null;
|
|
15614
|
+
/**
|
|
15615
|
+
*
|
|
15616
|
+
* @type {number}
|
|
15617
|
+
*/
|
|
15618
|
+
this.numberOfSubscribedTrades = null;
|
|
15598
15619
|
};
|
|
15599
15620
|
messages.control.StatsResponse.prototype = new messages.control.BaseResponse();
|
|
15600
15621
|
|
|
15601
|
-
/**
|
|
15602
|
-
* Creates a Initial Data Sent response message.
|
|
15603
|
-
* @constructor
|
|
15622
|
+
/**
|
|
15623
|
+
* Creates a Initial Data Sent response message.
|
|
15624
|
+
* @constructor
|
|
15604
15625
|
*/
|
|
15605
15626
|
messages.control.InitialDataSent = function () {
|
|
15606
|
-
|
|
15627
|
+
this.init(messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT);
|
|
15607
15628
|
|
|
15608
|
-
|
|
15609
|
-
|
|
15610
|
-
|
|
15611
|
-
|
|
15612
|
-
|
|
15613
|
-
|
|
15629
|
+
/**
|
|
15630
|
+
* The timestamp of message creation.
|
|
15631
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15632
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15633
|
+
*/
|
|
15634
|
+
this.timestamp = null;
|
|
15614
15635
|
};
|
|
15615
15636
|
messages.control.InitialDataSent.prototype = new messages.control.CtrlMessage();
|
|
15616
15637
|
|
|
15617
|
-
/**
|
|
15618
|
-
* Creates a Resubscribe message.
|
|
15619
|
-
* @constructor
|
|
15638
|
+
/**
|
|
15639
|
+
* Creates a Resubscribe message.
|
|
15640
|
+
* @constructor
|
|
15620
15641
|
*/
|
|
15621
15642
|
messages.control.ResubscribeMessage = function () {
|
|
15622
|
-
|
|
15643
|
+
this.init(messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE);
|
|
15623
15644
|
|
|
15624
|
-
|
|
15625
|
-
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
|
|
15629
|
-
|
|
15645
|
+
/**
|
|
15646
|
+
* The timestamp of message creation.
|
|
15647
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15648
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15649
|
+
*/
|
|
15650
|
+
this.timestamp = null;
|
|
15630
15651
|
};
|
|
15631
15652
|
messages.control.ResubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15632
15653
|
|
|
15633
|
-
/**
|
|
15634
|
-
* Creates a Missed Data Sent response message.
|
|
15635
|
-
* @constructor
|
|
15654
|
+
/**
|
|
15655
|
+
* Creates a Missed Data Sent response message.
|
|
15656
|
+
* @constructor
|
|
15636
15657
|
*/
|
|
15637
15658
|
messages.control.MissedDataSent = function () {
|
|
15638
|
-
|
|
15659
|
+
this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
|
|
15639
15660
|
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
15661
|
+
/**
|
|
15662
|
+
* The timestamp of message creation.
|
|
15663
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15664
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15665
|
+
*/
|
|
15666
|
+
this.timestamp = null;
|
|
15646
15667
|
};
|
|
15647
15668
|
messages.control.MissedDataSent.prototype = new messages.control.CtrlMessage();
|
|
15648
15669
|
|
|
15649
|
-
/**
|
|
15650
|
-
* Stream entitlement types.
|
|
15651
|
-
* @enum
|
|
15652
|
-
* @readonly
|
|
15670
|
+
/**
|
|
15671
|
+
* Stream entitlement types.
|
|
15672
|
+
* @enum
|
|
15673
|
+
* @readonly
|
|
15653
15674
|
*/
|
|
15654
15675
|
messages.control.StreamEntitlementType = {
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15662
|
-
|
|
15676
|
+
RT: "Realtime",
|
|
15677
|
+
RTO: "Realtime CBOE ONE",
|
|
15678
|
+
RTN: "Realtime NASDAQ",
|
|
15679
|
+
RTB: "Realtime BATS",
|
|
15680
|
+
DL: "Delayed",
|
|
15681
|
+
DLO: "Delayed CBOE One",
|
|
15682
|
+
DLN: "Delayed NASDAQ",
|
|
15683
|
+
NA: "Not Entitled"
|
|
15663
15684
|
};
|
|
15664
15685
|
|
|
15665
|
-
/**
|
|
15666
|
-
* Enumeration for subscription actions.
|
|
15667
|
-
* @enum
|
|
15668
|
-
* @readonly
|
|
15686
|
+
/**
|
|
15687
|
+
* Enumeration for subscription actions.
|
|
15688
|
+
* @enum
|
|
15689
|
+
* @readonly
|
|
15669
15690
|
*/
|
|
15670
15691
|
messages.control.Action = {
|
|
15671
|
-
|
|
15672
|
-
|
|
15692
|
+
SUBSCRIBE: "SUBSCRIBE",
|
|
15693
|
+
UNSUBSCRIBE: "UNSUBSCRIBE"
|
|
15673
15694
|
};
|
|
15674
15695
|
|
|
15675
|
-
/**
|
|
15676
|
-
* Enumeration for associations.
|
|
15677
|
-
* @enum
|
|
15678
|
-
* @readonly
|
|
15696
|
+
/**
|
|
15697
|
+
* Enumeration for associations.
|
|
15698
|
+
* @enum
|
|
15699
|
+
* @readonly
|
|
15679
15700
|
*/
|
|
15680
15701
|
messages.control.Association = {
|
|
15681
|
-
|
|
15682
|
-
|
|
15683
|
-
|
|
15702
|
+
AND: "AND",
|
|
15703
|
+
OR: "OR",
|
|
15704
|
+
NOT: "NOT"
|
|
15684
15705
|
};
|
|
15685
15706
|
|
|
15686
|
-
/**
|
|
15687
|
-
* Enumeration for streaming message types.
|
|
15688
|
-
* @enum
|
|
15689
|
-
* @readonly
|
|
15690
|
-
* @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
|
|
15707
|
+
/**
|
|
15708
|
+
* Enumeration for streaming message types.
|
|
15709
|
+
* @enum
|
|
15710
|
+
* @readonly
|
|
15711
|
+
* @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
|
|
15691
15712
|
*/
|
|
15692
15713
|
messages.control.MarketdataType = {
|
|
15693
|
-
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15714
|
+
QUOTE: "QUOTE",
|
|
15715
|
+
PRICEDATA: "PRICEDATA",
|
|
15716
|
+
TRADE: "TRADE",
|
|
15717
|
+
MMQUOTE: "MMQUOTE",
|
|
15718
|
+
ORDERBOOK: "ORDERBOOK",
|
|
15719
|
+
INTERVAL: "INTERVAL",
|
|
15720
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15721
|
+
LASTSALE: "LASTSALE",
|
|
15722
|
+
BOOKORDER: "BOOKORDER",
|
|
15723
|
+
BOOKDELETE: "BOOKDELETE",
|
|
15724
|
+
PURGEBOOK: "PURGEBOOK",
|
|
15725
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15726
|
+
IVGREEKS: "IVGREEKS",
|
|
15727
|
+
IMBALANCESTATUS: "IMBALANCESTATUS"
|
|
15707
15728
|
};
|
|
15708
15729
|
|
|
15709
|
-
/**
|
|
15710
|
-
* Enum for the allowed subscription types
|
|
15711
|
-
* @enum
|
|
15712
|
-
* @readonly
|
|
15730
|
+
/**
|
|
15731
|
+
* Enum for the allowed subscription types
|
|
15732
|
+
* @enum
|
|
15733
|
+
* @readonly
|
|
15713
15734
|
*/
|
|
15714
15735
|
messages.market.SubscriptionTypes = {
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15736
|
+
QUOTE: "QUOTE",
|
|
15737
|
+
PRICEDATA: "PRICEDATA",
|
|
15738
|
+
TRADE: "TRADE",
|
|
15739
|
+
MMQUOTE: "MMQUOTE",
|
|
15740
|
+
ORDERBOOK: "ORDERBOOK",
|
|
15741
|
+
INTERVAL: "INTERVAL",
|
|
15742
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15743
|
+
LASTSALE: "LASTSALE",
|
|
15744
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15745
|
+
IVGREEKS: "IVGREEKS",
|
|
15746
|
+
IMBALANCESTATUS: "IMBALANCESTATUS"
|
|
15726
15747
|
|
|
15727
|
-
|
|
15728
|
-
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15748
|
+
/**
|
|
15749
|
+
* Enum for streamer responses from server
|
|
15750
|
+
* @enum
|
|
15751
|
+
* @readonly
|
|
15752
|
+
*/
|
|
15732
15753
|
};messages.market.MarketDataResponseTypes = {
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
|
-
|
|
15742
|
-
|
|
15743
|
-
|
|
15744
|
-
|
|
15745
|
-
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15754
|
+
QUOTE: "QUOTE",
|
|
15755
|
+
PRICEDATA: "PRICEDATA",
|
|
15756
|
+
TRADE: "TRADE",
|
|
15757
|
+
INTERVAL: "INTERVAL",
|
|
15758
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15759
|
+
MMQUOTE: "MMQUOTE",
|
|
15760
|
+
BOOKORDER: "BOOKORDER",
|
|
15761
|
+
PURGEBOOK: "PURGEBOOK",
|
|
15762
|
+
BOOKDELETE: "BOOKDELETE",
|
|
15763
|
+
SYMBOLINFO: "SYMBOLINFO",
|
|
15764
|
+
SYMBOLSTATUS: "SYMBOLSTATUS",
|
|
15765
|
+
DERIVATIVEINFO: "DERIVATIVEINFO",
|
|
15766
|
+
LASTSALE: "LASTSALE",
|
|
15767
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15768
|
+
IVGREEKS: "IVGREEKS",
|
|
15769
|
+
IMBALANCESTATUS: "IMBALANCESTATUS",
|
|
15770
|
+
ALERT: "ALERT",
|
|
15771
|
+
NEWS: "NEWS",
|
|
15772
|
+
TRADENOTIFICATION: "TRADENOTIFICATION",
|
|
15773
|
+
NEWSCMDFILTER: "NEWSCMDFILTER",
|
|
15774
|
+
NEWSERROR: "NEWSERROR",
|
|
15775
|
+
DIVIDEND: "DIVIDEND"
|
|
15755
15776
|
|
|
15756
|
-
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
15760
|
-
|
|
15777
|
+
/**
|
|
15778
|
+
* Response codes and reasons.
|
|
15779
|
+
* @enum
|
|
15780
|
+
* @readonly
|
|
15781
|
+
*/
|
|
15761
15782
|
};messages.control.ResponseCodes = {
|
|
15762
|
-
|
|
15763
|
-
|
|
15783
|
+
OK_CODE: 200,
|
|
15784
|
+
OK_REASON: "OK",
|
|
15764
15785
|
|
|
15765
|
-
|
|
15766
|
-
|
|
15786
|
+
BADREQUEST_CODE: 400,
|
|
15787
|
+
BADREQUEST_REASON: "Bad Request",
|
|
15767
15788
|
|
|
15768
|
-
|
|
15769
|
-
|
|
15789
|
+
UNAUTHORIZED_CODE: 401,
|
|
15790
|
+
UNAUTHORIZED_REASON: "Unauthorized",
|
|
15770
15791
|
|
|
15771
|
-
|
|
15772
|
-
|
|
15792
|
+
TOOSLOW_CODE: 450,
|
|
15793
|
+
TOOSLOW_REASON: "Too slow",
|
|
15773
15794
|
|
|
15774
|
-
|
|
15775
|
-
|
|
15795
|
+
DATA_SOURCE_RESET: 454,
|
|
15796
|
+
DATA_SOURCE_RESET_REASON: "Data Source Was Reset",
|
|
15776
15797
|
|
|
15777
|
-
|
|
15778
|
-
|
|
15798
|
+
CONNECTION_LIMIT_EXCEEDED_CODE: 452,
|
|
15799
|
+
CONNECTION_LIMIT_EXCEEDED_REASON: "Connection Limit Exceeded",
|
|
15779
15800
|
|
|
15780
|
-
|
|
15781
|
-
|
|
15801
|
+
INTERNALSERVERERROR_CODE: 500,
|
|
15802
|
+
INTERNALSERVERERROR_REASON: "Internal Server Error"
|
|
15782
15803
|
};
|
|
15783
15804
|
|
|
15784
15805
|
/* ****************************************************************************************************************** */
|
|
15785
15806
|
|
|
15786
|
-
/**
|
|
15787
|
-
* Base type for all market data exports.
|
|
15788
|
-
* @constructor
|
|
15789
|
-
* @abstract
|
|
15807
|
+
/**
|
|
15808
|
+
* Base type for all market data exports.
|
|
15809
|
+
* @constructor
|
|
15810
|
+
* @abstract
|
|
15790
15811
|
*/
|
|
15791
15812
|
messages.market.DataMessage = function () {
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15813
|
+
/**
|
|
15814
|
+
* The message type.
|
|
15815
|
+
* @type {number}
|
|
15816
|
+
* @see messages.MessageTypeNames_0.data
|
|
15817
|
+
*/
|
|
15818
|
+
this.messageType = null;
|
|
15798
15819
|
};
|
|
15799
15820
|
messages.market.DataMessage.prototype = new messages.Message();
|
|
15800
15821
|
|
|
15801
|
-
/**
|
|
15802
|
-
*
|
|
15803
|
-
* @constructor
|
|
15822
|
+
/**
|
|
15823
|
+
*
|
|
15824
|
+
* @constructor
|
|
15804
15825
|
*/
|
|
15805
15826
|
messages.market.Quote = function () {
|
|
15806
|
-
|
|
15827
|
+
this.init(messages.MessageTypeNames.data.QUOTE);
|
|
15807
15828
|
|
|
15808
|
-
|
|
15829
|
+
// TODO properties
|
|
15809
15830
|
};
|
|
15810
15831
|
messages.market.Quote.prototype = new messages.market.DataMessage();
|
|
15811
15832
|
|
|
15812
|
-
/**
|
|
15813
|
-
*
|
|
15814
|
-
* @constructor
|
|
15833
|
+
/**
|
|
15834
|
+
*
|
|
15835
|
+
* @constructor
|
|
15815
15836
|
*/
|
|
15816
15837
|
messages.market.PriceData = function () {
|
|
15817
|
-
|
|
15838
|
+
this.init(messages.MessageTypeNames.data.PRICEDATA);
|
|
15818
15839
|
|
|
15819
|
-
|
|
15840
|
+
// TODO properties
|
|
15820
15841
|
};
|
|
15821
15842
|
messages.market.PriceData.prototype = new messages.market.DataMessage();
|
|
15822
15843
|
|
|
15823
|
-
/**
|
|
15824
|
-
*
|
|
15825
|
-
* @constructor
|
|
15844
|
+
/**
|
|
15845
|
+
*
|
|
15846
|
+
* @constructor
|
|
15826
15847
|
*/
|
|
15827
15848
|
messages.market.Trade = function () {
|
|
15828
|
-
|
|
15849
|
+
this.init(messages.MessageTypeNames.data.TRADE);
|
|
15829
15850
|
|
|
15830
|
-
|
|
15851
|
+
// TODO properties
|
|
15831
15852
|
};
|
|
15832
15853
|
messages.market.Trade.prototype = new messages.market.DataMessage();
|
|
15833
15854
|
|
|
15834
|
-
/**
|
|
15835
|
-
*
|
|
15836
|
-
* @constructor
|
|
15855
|
+
/**
|
|
15856
|
+
*
|
|
15857
|
+
* @constructor
|
|
15837
15858
|
*/
|
|
15838
15859
|
messages.market.MMQuote = function () {
|
|
15839
|
-
|
|
15860
|
+
this.init(messages.MessageTypeNames.data.MMQUOTE);
|
|
15840
15861
|
|
|
15841
|
-
|
|
15862
|
+
// TODO properties
|
|
15842
15863
|
};
|
|
15843
15864
|
messages.market.MMQuote.prototype = new messages.market.DataMessage();
|
|
15844
15865
|
|
|
15845
|
-
/**
|
|
15846
|
-
*
|
|
15847
|
-
* @constructor
|
|
15866
|
+
/**
|
|
15867
|
+
*
|
|
15868
|
+
* @constructor
|
|
15848
15869
|
*/
|
|
15849
15870
|
messages.market.PurgeBook = function () {
|
|
15850
|
-
|
|
15871
|
+
this.init(messages.MessageTypeNames.data.PURGEBOOK);
|
|
15851
15872
|
|
|
15852
|
-
|
|
15873
|
+
// TODO properties
|
|
15853
15874
|
};
|
|
15854
15875
|
messages.market.PurgeBook.prototype = new messages.market.DataMessage();
|
|
15855
15876
|
|
|
15856
|
-
/**
|
|
15857
|
-
*
|
|
15858
|
-
* @constructor
|
|
15877
|
+
/**
|
|
15878
|
+
*
|
|
15879
|
+
* @constructor
|
|
15859
15880
|
*/
|
|
15860
15881
|
messages.market.BookOrder = function () {
|
|
15861
|
-
|
|
15882
|
+
this.init(messages.MessageTypeNames.data.BOOKORDER);
|
|
15862
15883
|
|
|
15863
|
-
|
|
15884
|
+
// TODO properties
|
|
15864
15885
|
};
|
|
15865
15886
|
messages.market.BookOrder.prototype = new messages.market.DataMessage();
|
|
15866
15887
|
|
|
15867
|
-
/**
|
|
15868
|
-
*
|
|
15869
|
-
* @constructor
|
|
15888
|
+
/**
|
|
15889
|
+
*
|
|
15890
|
+
* @constructor
|
|
15870
15891
|
*/
|
|
15871
15892
|
messages.market.BookDelete = function () {
|
|
15872
|
-
|
|
15893
|
+
this.init(messages.MessageTypeNames.data.BOOKDELETE);
|
|
15873
15894
|
|
|
15874
|
-
|
|
15895
|
+
// TODO properties
|
|
15875
15896
|
};
|
|
15876
15897
|
messages.market.BookDelete.prototype = new messages.market.DataMessage();
|
|
15877
15898
|
|
|
15878
|
-
/**
|
|
15879
|
-
*
|
|
15880
|
-
* @constructor
|
|
15899
|
+
/**
|
|
15900
|
+
*
|
|
15901
|
+
* @constructor
|
|
15881
15902
|
*/
|
|
15882
15903
|
messages.market.Interval = function () {
|
|
15883
|
-
|
|
15904
|
+
this.init(messages.MessageTypeNames.data.INTERVAL);
|
|
15884
15905
|
|
|
15885
|
-
|
|
15906
|
+
// TODO properties
|
|
15886
15907
|
};
|
|
15887
15908
|
messages.market.Interval.prototype = new messages.market.DataMessage();
|
|
15888
15909
|
|
|
15889
|
-
/**
|
|
15890
|
-
*
|
|
15891
|
-
* @constructor
|
|
15910
|
+
/**
|
|
15911
|
+
*
|
|
15912
|
+
* @constructor
|
|
15892
15913
|
*/
|
|
15893
15914
|
messages.market.NethousePosition = function () {
|
|
15894
|
-
|
|
15915
|
+
this.init(messages.MessageTypeNames.data.NETHOUSEPOSITION);
|
|
15895
15916
|
|
|
15896
|
-
|
|
15917
|
+
// TODO properties
|
|
15897
15918
|
};
|
|
15898
15919
|
messages.market.NethousePosition.prototype = new messages.market.DataMessage();
|
|
15899
15920
|
|
|
15900
|
-
/**
|
|
15901
|
-
*
|
|
15902
|
-
* @constructor
|
|
15921
|
+
/**
|
|
15922
|
+
*
|
|
15923
|
+
* @constructor
|
|
15903
15924
|
*/
|
|
15904
15925
|
messages.market.SymbolInfo = function () {
|
|
15905
|
-
|
|
15926
|
+
this.init(messages.MessageTypeNames.data.SYMBOLINFO);
|
|
15906
15927
|
|
|
15907
|
-
|
|
15928
|
+
// TODO properties
|
|
15908
15929
|
};
|
|
15909
15930
|
messages.market.SymbolInfo.prototype = new messages.market.DataMessage();
|
|
15910
15931
|
|
|
15911
|
-
/**
|
|
15912
|
-
*
|
|
15913
|
-
* @constructor
|
|
15932
|
+
/**
|
|
15933
|
+
*
|
|
15934
|
+
* @constructor
|
|
15914
15935
|
*/
|
|
15915
15936
|
messages.market.SymbolStatus = function () {
|
|
15916
|
-
|
|
15937
|
+
this.init(messages.MessageTypeNames.data.SYMBOLSTATUS);
|
|
15917
15938
|
|
|
15918
|
-
|
|
15939
|
+
// TODO properties
|
|
15919
15940
|
};
|
|
15920
15941
|
messages.market.SymbolStatus.prototype = new messages.market.DataMessage();
|
|
15921
15942
|
|
|
15922
|
-
/**
|
|
15923
|
-
*
|
|
15924
|
-
* @constructor
|
|
15943
|
+
/**
|
|
15944
|
+
*
|
|
15945
|
+
* @constructor
|
|
15925
15946
|
*/
|
|
15926
15947
|
messages.market.DerivativeInfo = function () {
|
|
15927
|
-
|
|
15948
|
+
this.init(messages.MessageTypeNames.data.DERIVATIVEINFO);
|
|
15928
15949
|
|
|
15929
|
-
|
|
15950
|
+
// TODO properties
|
|
15930
15951
|
};
|
|
15931
15952
|
messages.market.DerivativeInfo.prototype = new messages.market.DataMessage();
|
|
15932
15953
|
|
|
15933
|
-
/**
|
|
15934
|
-
*
|
|
15935
|
-
* @constructor
|
|
15954
|
+
/**
|
|
15955
|
+
*
|
|
15956
|
+
* @constructor
|
|
15936
15957
|
*/
|
|
15937
15958
|
messages.market.IVGreeks = function () {
|
|
15938
|
-
|
|
15959
|
+
this.init(messages.MessageTypeNames.data.IVGREEKS);
|
|
15939
15960
|
|
|
15940
|
-
|
|
15961
|
+
// TODO properties
|
|
15941
15962
|
};
|
|
15942
15963
|
messages.market.IVGreeks.prototype = new messages.market.DataMessage();
|
|
15943
15964
|
|
|
15944
|
-
/**
|
|
15945
|
-
*
|
|
15946
|
-
* @constructor
|
|
15965
|
+
/**
|
|
15966
|
+
*
|
|
15967
|
+
* @constructor
|
|
15947
15968
|
*/
|
|
15948
15969
|
messages.market.LastSale = function () {
|
|
15949
|
-
|
|
15970
|
+
this.init(messages.MessageTypeNames.data.LASTSALE);
|
|
15950
15971
|
|
|
15951
|
-
|
|
15972
|
+
// TODO properties
|
|
15952
15973
|
};
|
|
15953
15974
|
messages.market.LastSale.prototype = new messages.market.DataMessage();
|
|
15954
15975
|
|
|
15955
|
-
/**
|
|
15956
|
-
*
|
|
15957
|
-
* @constructor
|
|
15976
|
+
/**
|
|
15977
|
+
*
|
|
15978
|
+
* @constructor
|
|
15958
15979
|
*/
|
|
15959
15980
|
messages.market.LimitUpLimitDown = function () {
|
|
15960
|
-
|
|
15981
|
+
this.init(messages.MessageTypeNames.data.LIMITUPLIMITDOWN);
|
|
15961
15982
|
|
|
15962
|
-
|
|
15983
|
+
// TODO properties
|
|
15963
15984
|
};
|
|
15964
15985
|
messages.market.LimitUpLimitDown.prototype = new messages.market.DataMessage();
|
|
15965
15986
|
|
|
15966
|
-
/**
|
|
15967
|
-
*
|
|
15968
|
-
* @constructor
|
|
15987
|
+
/**
|
|
15988
|
+
*
|
|
15989
|
+
* @constructor
|
|
15969
15990
|
*/
|
|
15970
15991
|
messages.market.ImbalanceStatus = function () {
|
|
15971
|
-
|
|
15992
|
+
this.init(messages.MessageTypeNames.data.IMBALANCESTATUS);
|
|
15972
15993
|
|
|
15973
|
-
|
|
15994
|
+
// TODO properties
|
|
15974
15995
|
};
|
|
15975
15996
|
messages.market.ImbalanceStatus.prototype = new messages.market.DataMessage();
|
|
15976
15997
|
|
|
15977
15998
|
messages.market.Alert = function () {
|
|
15978
|
-
|
|
15999
|
+
this.init(messages.MessageTypeNames.data.ALERT);
|
|
15979
16000
|
|
|
15980
|
-
|
|
16001
|
+
// TODO properties
|
|
15981
16002
|
};
|
|
15982
16003
|
messages.market.Alert.prototype = new messages.market.DataMessage();
|
|
15983
16004
|
|
|
15984
|
-
/**
|
|
15985
|
-
* Enumeration for instrument types.
|
|
15986
|
-
* @enum
|
|
15987
|
-
* @readonly
|
|
16005
|
+
/**
|
|
16006
|
+
* Enumeration for instrument types.
|
|
16007
|
+
* @enum
|
|
16008
|
+
* @readonly
|
|
15988
16009
|
*/
|
|
15989
16010
|
messages.market.InstrumentType = {
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16011
|
+
1: "CASH",
|
|
16012
|
+
2: "BOND",
|
|
16013
|
+
3: "COMPOSITE",
|
|
16014
|
+
4: "FUTURE",
|
|
16015
|
+
5: "FUTURE_OPTION",
|
|
16016
|
+
6: "FOREX",
|
|
16017
|
+
7: "INDEX",
|
|
16018
|
+
8: "MUTUAL_FUND",
|
|
16019
|
+
9: "MONEY_MARKET_FUND",
|
|
16020
|
+
10: "MARKET_STAT",
|
|
16021
|
+
11: "EQUITY",
|
|
16022
|
+
12: "EQUITY_OPTION",
|
|
16023
|
+
13: "GOVT_BOND",
|
|
16024
|
+
14: "MUNI_BOND",
|
|
16025
|
+
15: "CORP_BOND",
|
|
16026
|
+
16: "ETF",
|
|
16027
|
+
17: "FUTURE_SPREAD",
|
|
16028
|
+
97: "OPTION_ROOT",
|
|
16029
|
+
98: "UNKNOWN",
|
|
16030
|
+
99: "RATE"
|
|
16010
16031
|
};
|
|
16011
16032
|
|
|
16012
|
-
/**
|
|
16013
|
-
* Enumeration vor order side.
|
|
16014
|
-
* @enum
|
|
16015
|
-
* @readonly
|
|
16033
|
+
/**
|
|
16034
|
+
* Enumeration vor order side.
|
|
16035
|
+
* @enum
|
|
16036
|
+
* @readonly
|
|
16016
16037
|
*/
|
|
16017
16038
|
messages.market.OrderSide = {
|
|
16018
|
-
|
|
16019
|
-
|
|
16039
|
+
BUYSIDE: 'B',
|
|
16040
|
+
SELLSIDE: 'S'
|
|
16020
16041
|
};
|
|
16021
16042
|
|
|
16022
|
-
/**
|
|
16023
|
-
* Enumeration for imbalance types.
|
|
16024
|
-
* @enum
|
|
16025
|
-
* @readonly
|
|
16043
|
+
/**
|
|
16044
|
+
* Enumeration for imbalance types.
|
|
16045
|
+
* @enum
|
|
16046
|
+
* @readonly
|
|
16026
16047
|
*/
|
|
16027
16048
|
messages.market.ImbalanceType = {
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16049
|
+
0: "NONE",
|
|
16050
|
+
1: "MARKET",
|
|
16051
|
+
2: "MOC",
|
|
16052
|
+
3: "REGULATORY_IMBALANCE",
|
|
16053
|
+
4: "OPENING_IMBALANCE",
|
|
16054
|
+
5: "CLOSING_IMBALANCE",
|
|
16055
|
+
6: "IPO_IMBALANCE",
|
|
16056
|
+
7: "HALT_IMBALANCE",
|
|
16057
|
+
8: "EQUILIBRIUM"
|
|
16037
16058
|
};
|
|
16038
16059
|
|
|
16039
|
-
/**
|
|
16040
|
-
* Enumeration for book order change types.
|
|
16041
|
-
* @enum
|
|
16042
|
-
* @readonly
|
|
16060
|
+
/**
|
|
16061
|
+
* Enumeration for book order change types.
|
|
16062
|
+
* @enum
|
|
16063
|
+
* @readonly
|
|
16043
16064
|
*/
|
|
16044
16065
|
messages.market.OrderChangeType = {
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16066
|
+
'A': "ADD",
|
|
16067
|
+
'M': "MODIFY",
|
|
16068
|
+
'C': "CANCEL",
|
|
16069
|
+
'E': "EXECUTE"
|
|
16049
16070
|
};
|
|
16050
16071
|
}).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")
|
|
16051
16072
|
},{"_process":131,"buffer":121,"timers":152}],109:[function(require,module,exports){
|
|
@@ -16374,8 +16395,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
16374
16395
|
|
|
16375
16396
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16376
16397
|
|
|
16377
|
-
/*
|
|
16378
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
16398
|
+
/*
|
|
16399
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
16379
16400
|
*/
|
|
16380
16401
|
var QitchTransmitter = function () {
|
|
16381
16402
|
function QitchTransmitter(socket, encoder, log) {
|