@kaiko-data/sdk-node 1.0.4 → 1.2.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 (36) 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_pb.js +7 -1
  12. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.js +7 -1
  13. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.js +7 -1
  14. package/sdk/stream/aggregates_ohlcv_v1/request_pb.js +7 -1
  15. package/sdk/stream/aggregates_ohlcv_v1/response_pb.js +7 -1
  16. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.js +7 -1
  17. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.js +7 -1
  18. package/sdk/stream/aggregates_vwap_v1/request_pb.js +7 -1
  19. package/sdk/stream/aggregates_vwap_v1/response_pb.js +7 -1
  20. package/sdk/stream/derivatives_price_v2/request_pb.js +7 -1
  21. package/sdk/stream/derivatives_price_v2/response_pb.js +7 -1
  22. package/sdk/stream/index_v1/commodity_grpc_pb.d.ts +1 -0
  23. package/sdk/stream/index_v1/commodity_grpc_pb.js +1 -0
  24. package/sdk/stream/index_v1/commodity_pb.d.ts +13 -0
  25. package/sdk/stream/index_v1/commodity_pb.js +34 -0
  26. package/sdk/stream/index_v1/request_pb.d.ts +6 -3
  27. package/sdk/stream/index_v1/request_pb.js +51 -15
  28. package/sdk/stream/index_v1/response_pb.d.ts +4 -3
  29. package/sdk/stream/index_v1/response_pb.js +22 -14
  30. package/sdk/stream/market_update_v1/commodity_pb.js +7 -1
  31. package/sdk/stream/market_update_v1/request_pb.d.ts +12 -0
  32. package/sdk/stream/market_update_v1/request_pb.js +48 -2
  33. package/sdk/stream/market_update_v1/response_pb.d.ts +59 -0
  34. package/sdk/stream/market_update_v1/response_pb.js +478 -3
  35. package/sdk/stream/trades_v1/request_pb.js +7 -1
  36. package/sdk/stream/trades_v1/response_pb.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaiko-data/sdk-node",
3
- "version": "1.0.4",
3
+ "version": "1.2.0",
4
4
  "description": "Kaiko Node SDK",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -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 google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_struct_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.EnvelopeStatus', 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
  goog.exportSymbol('proto.kaikosdk.InstrumentCriteria', 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_core_envelope_pb = require('../../sdk/core/envelope_pb.js');
19
25
  goog.object.extend(proto, sdk_core_envelope_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.SortCriteria', 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
  goog.exportSymbol('proto.kaikosdk.SourceData', 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_core_source_data_pb = require('../../sdk/core/source_data_pb.js');
19
25
  goog.object.extend(proto, sdk_core_source_data_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);
package/sdk/sdk_pb.js CHANGED
@@ -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_aggregates_ohlcv_v1_request_pb = require('../sdk/stream/aggregates_ohlcv_v1/request_pb.js');
19
25
  goog.object.extend(proto, sdk_stream_aggregates_ohlcv_v1_request_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.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);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,13 @@
1
+ // package: kaikosdk
2
+ // file: sdk/stream/index_v1/commodity.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export interface StreamIndexCommodityMap {
7
+ SIC_UNKNOWN: 0;
8
+ SIC_REAL_TIME: 1;
9
+ SIC_DAILY_FIXING: 2;
10
+ }
11
+
12
+ export const StreamIndexCommodity: StreamIndexCommodityMap;
13
+
@@ -0,0 +1,34 @@
1
+ // source: sdk/stream/index_v1/commodity.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
+ goog.exportSymbol('proto.kaikosdk.StreamIndexCommodity', null, global);
25
+ /**
26
+ * @enum {number}
27
+ */
28
+ proto.kaikosdk.StreamIndexCommodity = {
29
+ SIC_UNKNOWN: 0,
30
+ SIC_REAL_TIME: 1,
31
+ SIC_DAILY_FIXING: 2
32
+ };
33
+
34
+ goog.object.extend(exports, proto.kaikosdk);
@@ -2,13 +2,16 @@
2
2
  // file: sdk/stream/index_v1/request.proto
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
+ import * as sdk_stream_index_v1_commodity_pb from "../../../sdk/stream/index_v1/commodity_pb";
5
6
 
6
7
  export class StreamIndexServiceRequestV1 extends jspb.Message {
7
8
  getIndexCode(): string;
8
9
  setIndexCode(value: string): void;
9
10
 
10
- getEventType(): string;
11
- setEventType(value: string): void;
11
+ clearCommoditiesList(): void;
12
+ getCommoditiesList(): Array<sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]>;
13
+ setCommoditiesList(value: Array<sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]>): void;
14
+ addCommodities(value: sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap], index?: number): sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap];
12
15
 
13
16
  serializeBinary(): Uint8Array;
14
17
  toObject(includeInstance?: boolean): StreamIndexServiceRequestV1.AsObject;
@@ -23,7 +26,7 @@ export class StreamIndexServiceRequestV1 extends jspb.Message {
23
26
  export namespace StreamIndexServiceRequestV1 {
24
27
  export type AsObject = {
25
28
  indexCode: string,
26
- eventType: string,
29
+ commoditiesList: Array<sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]>,
27
30
  }
28
31
  }
29
32
 
@@ -13,8 +13,16 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
17
-
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 sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/commodity_pb.js');
25
+ goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
18
26
  goog.exportSymbol('proto.kaikosdk.StreamIndexServiceRequestV1', null, global);
19
27
  /**
20
28
  * Generated by JsPbCodeGenerator.
@@ -27,7 +35,7 @@ goog.exportSymbol('proto.kaikosdk.StreamIndexServiceRequestV1', null, global);
27
35
  * @constructor
28
36
  */
29
37
  proto.kaikosdk.StreamIndexServiceRequestV1 = function(opt_data) {
30
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.kaikosdk.StreamIndexServiceRequestV1.repeatedFields_, null);
31
39
  };
32
40
  goog.inherits(proto.kaikosdk.StreamIndexServiceRequestV1, jspb.Message);
33
41
  if (goog.DEBUG && !COMPILED) {
@@ -38,6 +46,13 @@ if (goog.DEBUG && !COMPILED) {
38
46
  proto.kaikosdk.StreamIndexServiceRequestV1.displayName = 'proto.kaikosdk.StreamIndexServiceRequestV1';
39
47
  }
40
48
 
49
+ /**
50
+ * List of repeated fields within this message type.
51
+ * @private {!Array<number>}
52
+ * @const
53
+ */
54
+ proto.kaikosdk.StreamIndexServiceRequestV1.repeatedFields_ = [2];
55
+
41
56
 
42
57
 
43
58
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -70,7 +85,7 @@ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.toObject = function(opt_inc
70
85
  proto.kaikosdk.StreamIndexServiceRequestV1.toObject = function(includeInstance, msg) {
71
86
  var f, obj = {
72
87
  indexCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
73
- eventType: jspb.Message.getFieldWithDefault(msg, 2, "")
88
+ commoditiesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
74
89
  };
75
90
 
76
91
  if (includeInstance) {
@@ -112,8 +127,10 @@ proto.kaikosdk.StreamIndexServiceRequestV1.deserializeBinaryFromReader = functio
112
127
  msg.setIndexCode(value);
113
128
  break;
114
129
  case 2:
115
- var value = /** @type {string} */ (reader.readString());
116
- msg.setEventType(value);
130
+ var values = /** @type {!Array<!proto.kaikosdk.StreamIndexCommodity>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
131
+ for (var i = 0; i < values.length; i++) {
132
+ msg.addCommodities(values[i]);
133
+ }
117
134
  break;
118
135
  default:
119
136
  reader.skipField();
@@ -151,9 +168,9 @@ proto.kaikosdk.StreamIndexServiceRequestV1.serializeBinaryToWriter = function(me
151
168
  f
152
169
  );
153
170
  }
154
- f = message.getEventType();
171
+ f = message.getCommoditiesList();
155
172
  if (f.length > 0) {
156
- writer.writeString(
173
+ writer.writePackedEnum(
157
174
  2,
158
175
  f
159
176
  );
@@ -180,20 +197,39 @@ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.setIndexCode = function(val
180
197
 
181
198
 
182
199
  /**
183
- * optional string event_type = 2;
184
- * @return {string}
200
+ * repeated StreamIndexCommodity commodities = 2;
201
+ * @return {!Array<!proto.kaikosdk.StreamIndexCommodity>}
185
202
  */
186
- proto.kaikosdk.StreamIndexServiceRequestV1.prototype.getEventType = function() {
187
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
203
+ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.getCommoditiesList = function() {
204
+ return /** @type {!Array<!proto.kaikosdk.StreamIndexCommodity>} */ (jspb.Message.getRepeatedField(this, 2));
188
205
  };
189
206
 
190
207
 
191
208
  /**
192
- * @param {string} value
209
+ * @param {!Array<!proto.kaikosdk.StreamIndexCommodity>} value
210
+ * @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
211
+ */
212
+ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.setCommoditiesList = function(value) {
213
+ return jspb.Message.setField(this, 2, value || []);
214
+ };
215
+
216
+
217
+ /**
218
+ * @param {!proto.kaikosdk.StreamIndexCommodity} value
219
+ * @param {number=} opt_index
220
+ * @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
221
+ */
222
+ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.addCommodities = function(value, opt_index) {
223
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
224
+ };
225
+
226
+
227
+ /**
228
+ * Clears the list making it empty but non-null.
193
229
  * @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
194
230
  */
195
- proto.kaikosdk.StreamIndexServiceRequestV1.prototype.setEventType = function(value) {
196
- return jspb.Message.setProto3StringField(this, 2, value);
231
+ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.clearCommoditiesList = function() {
232
+ return this.setCommoditiesList([]);
197
233
  };
198
234
 
199
235
 
@@ -4,6 +4,7 @@
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
6
  import * as sdk_core_data_interval_pb from "../../../sdk/core/data_interval_pb";
7
+ import * as sdk_stream_index_v1_commodity_pb from "../../../sdk/stream/index_v1/commodity_pb";
7
8
 
8
9
  export class StreamIndexServiceResponsePercentage extends jspb.Message {
9
10
  getPercentage(): number;
@@ -121,8 +122,8 @@ export class StreamIndexServiceResponseV1 extends jspb.Message {
121
122
  getIndexCode(): string;
122
123
  setIndexCode(value: string): void;
123
124
 
124
- getEventType(): string;
125
- setEventType(value: string): void;
125
+ getCommodity(): sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap];
126
+ setCommodity(value: sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]): void;
126
127
 
127
128
  hasInterval(): boolean;
128
129
  clearInterval(): void;
@@ -165,7 +166,7 @@ export class StreamIndexServiceResponseV1 extends jspb.Message {
165
166
  export namespace StreamIndexServiceResponseV1 {
166
167
  export type AsObject = {
167
168
  indexCode: string,
168
- eventType: string,
169
+ commodity: sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap],
169
170
  interval?: sdk_core_data_interval_pb.DataInterval.AsObject,
170
171
  quote: string,
171
172
  basesList: Array<StreamIndexServiceResponseBaseAsset.AsObject>,
@@ -13,12 +13,20 @@
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);
20
26
  var sdk_core_data_interval_pb = require('../../../sdk/core/data_interval_pb.js');
21
27
  goog.object.extend(proto, sdk_core_data_interval_pb);
28
+ var sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/commodity_pb.js');
29
+ goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
22
30
  goog.exportSymbol('proto.kaikosdk.StreamIndexServiceResponseBaseAsset', null, global);
23
31
  goog.exportSymbol('proto.kaikosdk.StreamIndexServiceResponseInstruments', null, global);
24
32
  goog.exportSymbol('proto.kaikosdk.StreamIndexServiceResponsePairs', null, global);
@@ -959,7 +967,7 @@ proto.kaikosdk.StreamIndexServiceResponseV1.prototype.toObject = function(opt_in
959
967
  proto.kaikosdk.StreamIndexServiceResponseV1.toObject = function(includeInstance, msg) {
960
968
  var f, obj = {
961
969
  indexCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
962
- eventType: jspb.Message.getFieldWithDefault(msg, 2, ""),
970
+ commodity: jspb.Message.getFieldWithDefault(msg, 2, 0),
963
971
  interval: (f = msg.getInterval()) && sdk_core_data_interval_pb.DataInterval.toObject(includeInstance, f),
964
972
  quote: jspb.Message.getFieldWithDefault(msg, 4, ""),
965
973
  basesList: jspb.Message.toObjectList(msg.getBasesList(),
@@ -1009,8 +1017,8 @@ proto.kaikosdk.StreamIndexServiceResponseV1.deserializeBinaryFromReader = functi
1009
1017
  msg.setIndexCode(value);
1010
1018
  break;
1011
1019
  case 2:
1012
- var value = /** @type {string} */ (reader.readString());
1013
- msg.setEventType(value);
1020
+ var value = /** @type {!proto.kaikosdk.StreamIndexCommodity} */ (reader.readEnum());
1021
+ msg.setCommodity(value);
1014
1022
  break;
1015
1023
  case 3:
1016
1024
  var value = new sdk_core_data_interval_pb.DataInterval;
@@ -1076,9 +1084,9 @@ proto.kaikosdk.StreamIndexServiceResponseV1.serializeBinaryToWriter = function(m
1076
1084
  f
1077
1085
  );
1078
1086
  }
1079
- f = message.getEventType();
1080
- if (f.length > 0) {
1081
- writer.writeString(
1087
+ f = message.getCommodity();
1088
+ if (f !== 0.0) {
1089
+ writer.writeEnum(
1082
1090
  2,
1083
1091
  f
1084
1092
  );
@@ -1151,20 +1159,20 @@ proto.kaikosdk.StreamIndexServiceResponseV1.prototype.setIndexCode = function(va
1151
1159
 
1152
1160
 
1153
1161
  /**
1154
- * optional string event_type = 2;
1155
- * @return {string}
1162
+ * optional StreamIndexCommodity commodity = 2;
1163
+ * @return {!proto.kaikosdk.StreamIndexCommodity}
1156
1164
  */
1157
- proto.kaikosdk.StreamIndexServiceResponseV1.prototype.getEventType = function() {
1158
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1165
+ proto.kaikosdk.StreamIndexServiceResponseV1.prototype.getCommodity = function() {
1166
+ return /** @type {!proto.kaikosdk.StreamIndexCommodity} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1159
1167
  };
1160
1168
 
1161
1169
 
1162
1170
  /**
1163
- * @param {string} value
1171
+ * @param {!proto.kaikosdk.StreamIndexCommodity} value
1164
1172
  * @return {!proto.kaikosdk.StreamIndexServiceResponseV1} returns this
1165
1173
  */
1166
- proto.kaikosdk.StreamIndexServiceResponseV1.prototype.setEventType = function(value) {
1167
- return jspb.Message.setProto3StringField(this, 2, value);
1174
+ proto.kaikosdk.StreamIndexServiceResponseV1.prototype.setCommodity = function(value) {
1175
+ return jspb.Message.setProto3EnumField(this, 2, value);
1168
1176
  };
1169
1177
 
1170
1178