@kaiko-data/sdk-node 1.0.6 → 1.3.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.
Files changed (42) hide show
  1. package/package.json +1 -1
  2. package/sdk/core/data_interval_pb.js +7 -1
  3. package/sdk/core/envelope_pb.js +7 -1
  4. package/sdk/core/envelope_status_pb.js +7 -1
  5. package/sdk/core/instrument_criteria_pb.js +7 -1
  6. package/sdk/core/response_pb.js +7 -1
  7. package/sdk/core/sort_criteria_pb.js +7 -1
  8. package/sdk/core/source_data_pb.js +7 -1
  9. package/sdk/core/source_pb.js +7 -1
  10. package/sdk/core/wrappers_pb.js +7 -1
  11. package/sdk/sdk_grpc_pb.d.ts +18 -0
  12. package/sdk/sdk_grpc_pb.js +41 -0
  13. package/sdk/sdk_pb.d.ts +2 -0
  14. package/sdk/sdk_pb.js +11 -1
  15. package/sdk/stream/aggregated_price_v1/request_grpc_pb.d.ts +1 -0
  16. package/sdk/stream/aggregated_price_v1/request_grpc_pb.js +1 -0
  17. package/sdk/stream/aggregated_price_v1/request_pb.d.ts +29 -0
  18. package/sdk/stream/aggregated_price_v1/request_pb.js +206 -0
  19. package/sdk/stream/aggregated_price_v1/response_grpc_pb.d.ts +1 -0
  20. package/sdk/stream/aggregated_price_v1/response_grpc_pb.js +1 -0
  21. package/sdk/stream/aggregated_price_v1/response_pb.d.ts +68 -0
  22. package/sdk/stream/aggregated_price_v1/response_pb.js +449 -0
  23. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.js +7 -1
  24. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.js +7 -1
  25. package/sdk/stream/aggregates_ohlcv_v1/request_pb.js +7 -1
  26. package/sdk/stream/aggregates_ohlcv_v1/response_pb.js +7 -1
  27. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.js +7 -1
  28. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.js +7 -1
  29. package/sdk/stream/aggregates_vwap_v1/request_pb.js +7 -1
  30. package/sdk/stream/aggregates_vwap_v1/response_pb.js +7 -1
  31. package/sdk/stream/derivatives_price_v2/request_pb.js +7 -1
  32. package/sdk/stream/derivatives_price_v2/response_pb.js +7 -1
  33. package/sdk/stream/index_v1/commodity_pb.js +7 -1
  34. package/sdk/stream/index_v1/request_pb.js +7 -1
  35. package/sdk/stream/index_v1/response_pb.js +7 -1
  36. package/sdk/stream/market_update_v1/commodity_pb.js +7 -1
  37. package/sdk/stream/market_update_v1/request_pb.d.ts +12 -0
  38. package/sdk/stream/market_update_v1/request_pb.js +48 -2
  39. package/sdk/stream/market_update_v1/response_pb.d.ts +59 -0
  40. package/sdk/stream/market_update_v1/response_pb.js +478 -3
  41. package/sdk/stream/trades_v1/request_pb.js +7 -1
  42. package/sdk/stream/trades_v1/response_pb.js +7 -1
@@ -0,0 +1,449 @@
1
+ // source: sdk/stream/aggregated_price_v1/response.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ goog.exportSymbol('proto.kaikosdk.StreamAggregatedPriceResponseV1', null, global);
27
+ goog.exportSymbol('proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType', null, global);
28
+ /**
29
+ * Generated by JsPbCodeGenerator.
30
+ * @param {Array=} opt_data Optional initial data array, typically from a
31
+ * server response, or constructed directly in Javascript. The array is used
32
+ * in place and becomes part of the constructed object. It is not cloned.
33
+ * If no data is provided, the constructed object will be empty, but still
34
+ * valid.
35
+ * @extends {jspb.Message}
36
+ * @constructor
37
+ */
38
+ proto.kaikosdk.StreamAggregatedPriceResponseV1 = function(opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
40
+ };
41
+ goog.inherits(proto.kaikosdk.StreamAggregatedPriceResponseV1, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.displayName = 'proto.kaikosdk.StreamAggregatedPriceResponseV1';
48
+ }
49
+
50
+
51
+
52
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53
+ /**
54
+ * Creates an object representation of this proto.
55
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56
+ * Optional fields that are not set will be set to undefined.
57
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58
+ * For the list of reserved names please see:
59
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61
+ * JSPB instance for transitional soy proto support:
62
+ * http://goto/soy-param-migration
63
+ * @return {!Object}
64
+ */
65
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.toObject = function(opt_includeInstance) {
66
+ return proto.kaikosdk.StreamAggregatedPriceResponseV1.toObject(opt_includeInstance, this);
67
+ };
68
+
69
+
70
+ /**
71
+ * Static version of the {@see toObject} method.
72
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
73
+ * the JSPB instance for transitional soy proto support:
74
+ * http://goto/soy-param-migration
75
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1} msg The msg instance to transform.
76
+ * @return {!Object}
77
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78
+ */
79
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.toObject = function(includeInstance, msg) {
80
+ var f, obj = {
81
+ aggregate: jspb.Message.getFieldWithDefault(msg, 1, ""),
82
+ instrumentClass: jspb.Message.getFieldWithDefault(msg, 2, ""),
83
+ code: jspb.Message.getFieldWithDefault(msg, 3, ""),
84
+ price: jspb.Message.getFieldWithDefault(msg, 4, ""),
85
+ volume: jspb.Message.getFieldWithDefault(msg, 5, ""),
86
+ eventType: jspb.Message.getFieldWithDefault(msg, 6, 0),
87
+ sequenceId: jspb.Message.getFieldWithDefault(msg, 7, ""),
88
+ tsEvent: (f = msg.getTsEvent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
89
+ uid: jspb.Message.getFieldWithDefault(msg, 9, "")
90
+ };
91
+
92
+ if (includeInstance) {
93
+ obj.$jspbMessageInstance = msg;
94
+ }
95
+ return obj;
96
+ };
97
+ }
98
+
99
+
100
+ /**
101
+ * Deserializes binary data (in protobuf wire format).
102
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
103
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1}
104
+ */
105
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.deserializeBinary = function(bytes) {
106
+ var reader = new jspb.BinaryReader(bytes);
107
+ var msg = new proto.kaikosdk.StreamAggregatedPriceResponseV1;
108
+ return proto.kaikosdk.StreamAggregatedPriceResponseV1.deserializeBinaryFromReader(msg, reader);
109
+ };
110
+
111
+
112
+ /**
113
+ * Deserializes binary data (in protobuf wire format) from the
114
+ * given reader into the given message object.
115
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1} msg The message object to deserialize into.
116
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
117
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1}
118
+ */
119
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.deserializeBinaryFromReader = function(msg, reader) {
120
+ while (reader.nextField()) {
121
+ if (reader.isEndGroup()) {
122
+ break;
123
+ }
124
+ var field = reader.getFieldNumber();
125
+ switch (field) {
126
+ case 1:
127
+ var value = /** @type {string} */ (reader.readString());
128
+ msg.setAggregate(value);
129
+ break;
130
+ case 2:
131
+ var value = /** @type {string} */ (reader.readString());
132
+ msg.setInstrumentClass(value);
133
+ break;
134
+ case 3:
135
+ var value = /** @type {string} */ (reader.readString());
136
+ msg.setCode(value);
137
+ break;
138
+ case 4:
139
+ var value = /** @type {string} */ (reader.readString());
140
+ msg.setPrice(value);
141
+ break;
142
+ case 5:
143
+ var value = /** @type {string} */ (reader.readString());
144
+ msg.setVolume(value);
145
+ break;
146
+ case 6:
147
+ var value = /** @type {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType} */ (reader.readEnum());
148
+ msg.setEventType(value);
149
+ break;
150
+ case 7:
151
+ var value = /** @type {string} */ (reader.readString());
152
+ msg.setSequenceId(value);
153
+ break;
154
+ case 8:
155
+ var value = new google_protobuf_timestamp_pb.Timestamp;
156
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
157
+ msg.setTsEvent(value);
158
+ break;
159
+ case 9:
160
+ var value = /** @type {string} */ (reader.readString());
161
+ msg.setUid(value);
162
+ break;
163
+ default:
164
+ reader.skipField();
165
+ break;
166
+ }
167
+ }
168
+ return msg;
169
+ };
170
+
171
+
172
+ /**
173
+ * Serializes the message to binary data (in protobuf wire format).
174
+ * @return {!Uint8Array}
175
+ */
176
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.serializeBinary = function() {
177
+ var writer = new jspb.BinaryWriter();
178
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.serializeBinaryToWriter(this, writer);
179
+ return writer.getResultBuffer();
180
+ };
181
+
182
+
183
+ /**
184
+ * Serializes the given message to binary data (in protobuf wire
185
+ * format), writing to the given BinaryWriter.
186
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1} message
187
+ * @param {!jspb.BinaryWriter} writer
188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
189
+ */
190
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.serializeBinaryToWriter = function(message, writer) {
191
+ var f = undefined;
192
+ f = message.getAggregate();
193
+ if (f.length > 0) {
194
+ writer.writeString(
195
+ 1,
196
+ f
197
+ );
198
+ }
199
+ f = message.getInstrumentClass();
200
+ if (f.length > 0) {
201
+ writer.writeString(
202
+ 2,
203
+ f
204
+ );
205
+ }
206
+ f = message.getCode();
207
+ if (f.length > 0) {
208
+ writer.writeString(
209
+ 3,
210
+ f
211
+ );
212
+ }
213
+ f = message.getPrice();
214
+ if (f.length > 0) {
215
+ writer.writeString(
216
+ 4,
217
+ f
218
+ );
219
+ }
220
+ f = message.getVolume();
221
+ if (f.length > 0) {
222
+ writer.writeString(
223
+ 5,
224
+ f
225
+ );
226
+ }
227
+ f = message.getEventType();
228
+ if (f !== 0.0) {
229
+ writer.writeEnum(
230
+ 6,
231
+ f
232
+ );
233
+ }
234
+ f = message.getSequenceId();
235
+ if (f.length > 0) {
236
+ writer.writeString(
237
+ 7,
238
+ f
239
+ );
240
+ }
241
+ f = message.getTsEvent();
242
+ if (f != null) {
243
+ writer.writeMessage(
244
+ 8,
245
+ f,
246
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
247
+ );
248
+ }
249
+ f = message.getUid();
250
+ if (f.length > 0) {
251
+ writer.writeString(
252
+ 9,
253
+ f
254
+ );
255
+ }
256
+ };
257
+
258
+
259
+ /**
260
+ * @enum {number}
261
+ */
262
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType = {
263
+ UNKNOWN: 0,
264
+ BEST_ASK: 1,
265
+ BEST_BID: 2
266
+ };
267
+
268
+ /**
269
+ * optional string aggregate = 1;
270
+ * @return {string}
271
+ */
272
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getAggregate = function() {
273
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
274
+ };
275
+
276
+
277
+ /**
278
+ * @param {string} value
279
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
280
+ */
281
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setAggregate = function(value) {
282
+ return jspb.Message.setProto3StringField(this, 1, value);
283
+ };
284
+
285
+
286
+ /**
287
+ * optional string instrument_class = 2;
288
+ * @return {string}
289
+ */
290
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getInstrumentClass = function() {
291
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
292
+ };
293
+
294
+
295
+ /**
296
+ * @param {string} value
297
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
298
+ */
299
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setInstrumentClass = function(value) {
300
+ return jspb.Message.setProto3StringField(this, 2, value);
301
+ };
302
+
303
+
304
+ /**
305
+ * optional string code = 3;
306
+ * @return {string}
307
+ */
308
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getCode = function() {
309
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
310
+ };
311
+
312
+
313
+ /**
314
+ * @param {string} value
315
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
316
+ */
317
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setCode = function(value) {
318
+ return jspb.Message.setProto3StringField(this, 3, value);
319
+ };
320
+
321
+
322
+ /**
323
+ * optional string price = 4;
324
+ * @return {string}
325
+ */
326
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getPrice = function() {
327
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
328
+ };
329
+
330
+
331
+ /**
332
+ * @param {string} value
333
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
334
+ */
335
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setPrice = function(value) {
336
+ return jspb.Message.setProto3StringField(this, 4, value);
337
+ };
338
+
339
+
340
+ /**
341
+ * optional string volume = 5;
342
+ * @return {string}
343
+ */
344
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getVolume = function() {
345
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
346
+ };
347
+
348
+
349
+ /**
350
+ * @param {string} value
351
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
352
+ */
353
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setVolume = function(value) {
354
+ return jspb.Message.setProto3StringField(this, 5, value);
355
+ };
356
+
357
+
358
+ /**
359
+ * optional EventType event_type = 6;
360
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType}
361
+ */
362
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getEventType = function() {
363
+ return /** @type {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
364
+ };
365
+
366
+
367
+ /**
368
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType} value
369
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
370
+ */
371
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setEventType = function(value) {
372
+ return jspb.Message.setProto3EnumField(this, 6, value);
373
+ };
374
+
375
+
376
+ /**
377
+ * optional string sequence_id = 7;
378
+ * @return {string}
379
+ */
380
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getSequenceId = function() {
381
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
382
+ };
383
+
384
+
385
+ /**
386
+ * @param {string} value
387
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
388
+ */
389
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setSequenceId = function(value) {
390
+ return jspb.Message.setProto3StringField(this, 7, value);
391
+ };
392
+
393
+
394
+ /**
395
+ * optional google.protobuf.Timestamp ts_event = 8;
396
+ * @return {?proto.google.protobuf.Timestamp}
397
+ */
398
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getTsEvent = function() {
399
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
400
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
401
+ };
402
+
403
+
404
+ /**
405
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
406
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
407
+ */
408
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setTsEvent = function(value) {
409
+ return jspb.Message.setWrapperField(this, 8, value);
410
+ };
411
+
412
+
413
+ /**
414
+ * Clears the message field making it undefined.
415
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
416
+ */
417
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.clearTsEvent = function() {
418
+ return this.setTsEvent(undefined);
419
+ };
420
+
421
+
422
+ /**
423
+ * Returns whether this field is set.
424
+ * @return {boolean}
425
+ */
426
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.hasTsEvent = function() {
427
+ return jspb.Message.getField(this, 8) != null;
428
+ };
429
+
430
+
431
+ /**
432
+ * optional string uid = 9;
433
+ * @return {string}
434
+ */
435
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getUid = function() {
436
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
437
+ };
438
+
439
+
440
+ /**
441
+ * @param {string} value
442
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
443
+ */
444
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setUid = function(value) {
445
+ return jspb.Message.setProto3StringField(this, 9, value);
446
+ };
447
+
448
+
449
+ goog.object.extend(exports, proto.kaikosdk);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.kaikosdk.StreamAggregatesDirectExchangeRateRequestV1', null, global);
19
25
  /**
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var sdk_core_instrument_criteria_pb = require('../../../sdk/core/instrument_criteria_pb.js');
19
25
  goog.object.extend(proto, sdk_core_instrument_criteria_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.kaikosdk.StreamAggregatesSpotExchangeRateRequestV1', null, global);
19
25
  /**
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var sdk_core_instrument_criteria_pb = require('../../../sdk/core/instrument_criteria_pb.js');
19
25
  goog.object.extend(proto, sdk_core_instrument_criteria_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var sdk_core_instrument_criteria_pb = require('../../../sdk/core/instrument_criteria_pb.js');
19
25
  goog.object.extend(proto, sdk_core_instrument_criteria_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.kaikosdk.StreamIndexCommodity', null, global);
19
25
  /**
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/commodity_pb.js');
19
25
  goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.kaikosdk.StreamMarketUpdateCommodity', null, global);
19
25
  /**