@kaiko-data/sdk-node 1.10.0 → 1.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaiko-data/sdk-node",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Kaiko Node SDK",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -297,6 +297,7 @@ subscribe: {
297
297
 
298
298
  exports.StreamAggregatesOHLCVServiceV1Client = grpc.makeGenericClientConstructor(StreamAggregatesOHLCVServiceV1Service);
299
299
  // Service for streaming Spot exchange rate V1
300
+ // Service is deprecated, use REST API instead, or upcoming `StreamAggregatesSpotExchangeRateServiceV2` instead.
300
301
  var StreamAggregatesSpotExchangeRateServiceV1Service = exports.StreamAggregatesSpotExchangeRateServiceV1Service = {
301
302
  // Subscribe
302
303
  subscribe: {
@@ -313,7 +314,8 @@ subscribe: {
313
314
  };
314
315
 
315
316
  exports.StreamAggregatesSpotExchangeRateServiceV1Client = grpc.makeGenericClientConstructor(StreamAggregatesSpotExchangeRateServiceV1Service);
316
- // Service for streaming market update V1
317
+ // Service for streaming Direct exchange rate V1
318
+ // Service is deprecated, use REST API instead, or upcoming `StreamAggregatesDirectExchangeRateServiceV2` instead.
317
319
  var StreamAggregatesDirectExchangeRateServiceV1Service = exports.StreamAggregatesDirectExchangeRateServiceV1Service = {
318
320
  // Subscribe
319
321
  subscribe: {
@@ -30,6 +30,11 @@ export class StreamIndexMultiAssetsServiceResponseComposition extends jspb.Messa
30
30
  getCurrencyConversion(): string;
31
31
  setCurrencyConversion(value: string): void;
32
32
 
33
+ hasTsEvent(): boolean;
34
+ clearTsEvent(): void;
35
+ getTsEvent(): google_protobuf_timestamp_pb.Timestamp | undefined;
36
+ setTsEvent(value?: google_protobuf_timestamp_pb.Timestamp): void;
37
+
33
38
  serializeBinary(): Uint8Array;
34
39
  toObject(includeInstance?: boolean): StreamIndexMultiAssetsServiceResponseComposition.AsObject;
35
40
  static toObject(includeInstance: boolean, msg: StreamIndexMultiAssetsServiceResponseComposition): StreamIndexMultiAssetsServiceResponseComposition.AsObject;
@@ -48,6 +53,7 @@ export namespace StreamIndexMultiAssetsServiceResponseComposition {
48
53
  exchangesList: Array<string>,
49
54
  instrumentInterval?: sdk_core_data_interval_pb.DataInterval.AsObject,
50
55
  currencyConversion: string,
56
+ tsEvent?: google_protobuf_timestamp_pb.Timestamp.AsObject,
51
57
  }
52
58
  }
53
59
 
@@ -161,7 +161,8 @@ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.toObject = funct
161
161
  quote: jspb.Message.getFieldWithDefault(msg, 3, ""),
162
162
  exchangesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
163
163
  instrumentInterval: (f = msg.getInstrumentInterval()) && sdk_core_data_interval_pb.DataInterval.toObject(includeInstance, f),
164
- currencyConversion: jspb.Message.getFieldWithDefault(msg, 6, "")
164
+ currencyConversion: jspb.Message.getFieldWithDefault(msg, 6, ""),
165
+ tsEvent: (f = msg.getTsEvent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
165
166
  };
166
167
 
167
168
  if (includeInstance) {
@@ -223,6 +224,11 @@ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.deserializeBinar
223
224
  var value = /** @type {string} */ (reader.readString());
224
225
  msg.setCurrencyConversion(value);
225
226
  break;
227
+ case 7:
228
+ var value = new google_protobuf_timestamp_pb.Timestamp;
229
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
230
+ msg.setTsEvent(value);
231
+ break;
226
232
  default:
227
233
  reader.skipField();
228
234
  break;
@@ -295,6 +301,14 @@ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.serializeBinaryT
295
301
  f
296
302
  );
297
303
  }
304
+ f = message.getTsEvent();
305
+ if (f != null) {
306
+ writer.writeMessage(
307
+ 7,
308
+ f,
309
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
310
+ );
311
+ }
298
312
  };
299
313
 
300
314
 
@@ -444,6 +458,43 @@ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.prototype.setCur
444
458
  };
445
459
 
446
460
 
461
+ /**
462
+ * optional google.protobuf.Timestamp ts_event = 7;
463
+ * @return {?proto.google.protobuf.Timestamp}
464
+ */
465
+ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.prototype.getTsEvent = function() {
466
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
467
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
468
+ };
469
+
470
+
471
+ /**
472
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
473
+ * @return {!proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition} returns this
474
+ */
475
+ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.prototype.setTsEvent = function(value) {
476
+ return jspb.Message.setWrapperField(this, 7, value);
477
+ };
478
+
479
+
480
+ /**
481
+ * Clears the message field making it undefined.
482
+ * @return {!proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition} returns this
483
+ */
484
+ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.prototype.clearTsEvent = function() {
485
+ return this.setTsEvent(undefined);
486
+ };
487
+
488
+
489
+ /**
490
+ * Returns whether this field is set.
491
+ * @return {boolean}
492
+ */
493
+ proto.kaikosdk.StreamIndexMultiAssetsServiceResponseComposition.prototype.hasTsEvent = function() {
494
+ return jspb.Message.getField(this, 7) != null;
495
+ };
496
+
497
+
447
498
 
448
499
 
449
500