@kaiko-data/sdk-node 1.21.0 → 1.22.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 (25) hide show
  1. package/package.json +1 -1
  2. package/sdk/sdk_grpc_pb.d.ts +44 -8
  3. package/sdk/sdk_grpc_pb.js +90 -8
  4. package/sdk/sdk_pb.d.ts +12 -8
  5. package/sdk/sdk_pb.js +24 -16
  6. package/sdk/stream/derivatives_instrument_metrics_v1/commodity_kind_grpc_pb.d.ts +1 -0
  7. package/sdk/stream/derivatives_instrument_metrics_v1/commodity_kind_grpc_pb.js +1 -0
  8. package/sdk/stream/derivatives_instrument_metrics_v1/commodity_kind_pb.d.ts +13 -0
  9. package/sdk/stream/derivatives_instrument_metrics_v1/commodity_kind_pb.js +34 -0
  10. package/sdk/stream/derivatives_instrument_metrics_v1/request_grpc_pb.d.ts +1 -0
  11. package/sdk/stream/derivatives_instrument_metrics_v1/request_grpc_pb.js +1 -0
  12. package/sdk/stream/derivatives_instrument_metrics_v1/request_pb.d.ts +35 -0
  13. package/sdk/stream/derivatives_instrument_metrics_v1/request_pb.js +259 -0
  14. package/sdk/stream/derivatives_instrument_metrics_v1/response_grpc_pb.d.ts +1 -0
  15. package/sdk/stream/derivatives_instrument_metrics_v1/response_grpc_pb.js +1 -0
  16. package/sdk/stream/derivatives_instrument_metrics_v1/response_pb.d.ts +55 -0
  17. package/sdk/stream/derivatives_instrument_metrics_v1/response_pb.js +402 -0
  18. package/sdk/stream/iv_svi_parameters_v1/request_grpc_pb.d.ts +1 -0
  19. package/sdk/stream/iv_svi_parameters_v1/request_grpc_pb.js +1 -0
  20. package/sdk/stream/iv_svi_parameters_v1/request_pb.d.ts +32 -0
  21. package/sdk/stream/iv_svi_parameters_v1/request_pb.js +229 -0
  22. package/sdk/stream/iv_svi_parameters_v1/response_grpc_pb.d.ts +1 -0
  23. package/sdk/stream/iv_svi_parameters_v1/response_grpc_pb.js +1 -0
  24. package/sdk/stream/iv_svi_parameters_v1/response_pb.d.ts +92 -0
  25. package/sdk/stream/iv_svi_parameters_v1/response_pb.js +708 -0
@@ -0,0 +1,259 @@
1
+ // source: sdk/stream/derivatives_instrument_metrics_v1/request.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var sdk_core_instrument_criteria_pb = require('../../../sdk/core/instrument_criteria_pb.js');
25
+ goog.object.extend(proto, sdk_core_instrument_criteria_pb);
26
+ var sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb = require('../../../sdk/stream/derivatives_instrument_metrics_v1/commodity_kind_pb.js');
27
+ goog.object.extend(proto, sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb);
28
+ goog.exportSymbol('proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1 = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.repeatedFields_, null);
41
+ };
42
+ goog.inherits(proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.displayName = 'proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1';
49
+ }
50
+
51
+ /**
52
+ * List of repeated fields within this message type.
53
+ * @private {!Array<number>}
54
+ * @const
55
+ */
56
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.repeatedFields_ = [2];
57
+
58
+
59
+
60
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61
+ /**
62
+ * Creates an object representation of this proto.
63
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64
+ * Optional fields that are not set will be set to undefined.
65
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66
+ * For the list of reserved names please see:
67
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
68
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
69
+ * JSPB instance for transitional soy proto support:
70
+ * http://goto/soy-param-migration
71
+ * @return {!Object}
72
+ */
73
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.toObject = function(opt_includeInstance) {
74
+ return proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.toObject(opt_includeInstance, this);
75
+ };
76
+
77
+
78
+ /**
79
+ * Static version of the {@see toObject} method.
80
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
81
+ * the JSPB instance for transitional soy proto support:
82
+ * http://goto/soy-param-migration
83
+ * @param {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} msg The msg instance to transform.
84
+ * @return {!Object}
85
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86
+ */
87
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.toObject = function(includeInstance, msg) {
88
+ var f, obj = {
89
+ instrumentCriteria: (f = msg.getInstrumentCriteria()) && sdk_core_instrument_criteria_pb.InstrumentCriteria.toObject(includeInstance, f),
90
+ commoditiesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
91
+ };
92
+
93
+ if (includeInstance) {
94
+ obj.$jspbMessageInstance = msg;
95
+ }
96
+ return obj;
97
+ };
98
+ }
99
+
100
+
101
+ /**
102
+ * Deserializes binary data (in protobuf wire format).
103
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
104
+ * @return {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1}
105
+ */
106
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.deserializeBinary = function(bytes) {
107
+ var reader = new jspb.BinaryReader(bytes);
108
+ var msg = new proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1;
109
+ return proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.deserializeBinaryFromReader(msg, reader);
110
+ };
111
+
112
+
113
+ /**
114
+ * Deserializes binary data (in protobuf wire format) from the
115
+ * given reader into the given message object.
116
+ * @param {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} msg The message object to deserialize into.
117
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
118
+ * @return {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1}
119
+ */
120
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.deserializeBinaryFromReader = function(msg, reader) {
121
+ while (reader.nextField()) {
122
+ if (reader.isEndGroup()) {
123
+ break;
124
+ }
125
+ var field = reader.getFieldNumber();
126
+ switch (field) {
127
+ case 1:
128
+ var value = new sdk_core_instrument_criteria_pb.InstrumentCriteria;
129
+ reader.readMessage(value,sdk_core_instrument_criteria_pb.InstrumentCriteria.deserializeBinaryFromReader);
130
+ msg.setInstrumentCriteria(value);
131
+ break;
132
+ case 2:
133
+ var values = /** @type {!Array<!proto.kaikosdk.StreamDerivativesInstrumentCommodityKindV1>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
134
+ for (var i = 0; i < values.length; i++) {
135
+ msg.addCommodities(values[i]);
136
+ }
137
+ break;
138
+ default:
139
+ reader.skipField();
140
+ break;
141
+ }
142
+ }
143
+ return msg;
144
+ };
145
+
146
+
147
+ /**
148
+ * Serializes the message to binary data (in protobuf wire format).
149
+ * @return {!Uint8Array}
150
+ */
151
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.serializeBinary = function() {
152
+ var writer = new jspb.BinaryWriter();
153
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.serializeBinaryToWriter(this, writer);
154
+ return writer.getResultBuffer();
155
+ };
156
+
157
+
158
+ /**
159
+ * Serializes the given message to binary data (in protobuf wire
160
+ * format), writing to the given BinaryWriter.
161
+ * @param {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} message
162
+ * @param {!jspb.BinaryWriter} writer
163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
164
+ */
165
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.serializeBinaryToWriter = function(message, writer) {
166
+ var f = undefined;
167
+ f = message.getInstrumentCriteria();
168
+ if (f != null) {
169
+ writer.writeMessage(
170
+ 1,
171
+ f,
172
+ sdk_core_instrument_criteria_pb.InstrumentCriteria.serializeBinaryToWriter
173
+ );
174
+ }
175
+ f = message.getCommoditiesList();
176
+ if (f.length > 0) {
177
+ writer.writePackedEnum(
178
+ 2,
179
+ f
180
+ );
181
+ }
182
+ };
183
+
184
+
185
+ /**
186
+ * optional InstrumentCriteria instrument_criteria = 1;
187
+ * @return {?proto.kaikosdk.InstrumentCriteria}
188
+ */
189
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.getInstrumentCriteria = function() {
190
+ return /** @type{?proto.kaikosdk.InstrumentCriteria} */ (
191
+ jspb.Message.getWrapperField(this, sdk_core_instrument_criteria_pb.InstrumentCriteria, 1));
192
+ };
193
+
194
+
195
+ /**
196
+ * @param {?proto.kaikosdk.InstrumentCriteria|undefined} value
197
+ * @return {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} returns this
198
+ */
199
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.setInstrumentCriteria = function(value) {
200
+ return jspb.Message.setWrapperField(this, 1, value);
201
+ };
202
+
203
+
204
+ /**
205
+ * Clears the message field making it undefined.
206
+ * @return {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} returns this
207
+ */
208
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.clearInstrumentCriteria = function() {
209
+ return this.setInstrumentCriteria(undefined);
210
+ };
211
+
212
+
213
+ /**
214
+ * Returns whether this field is set.
215
+ * @return {boolean}
216
+ */
217
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.hasInstrumentCriteria = function() {
218
+ return jspb.Message.getField(this, 1) != null;
219
+ };
220
+
221
+
222
+ /**
223
+ * repeated StreamDerivativesInstrumentCommodityKindV1 commodities = 2;
224
+ * @return {!Array<!proto.kaikosdk.StreamDerivativesInstrumentCommodityKindV1>}
225
+ */
226
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.getCommoditiesList = function() {
227
+ return /** @type {!Array<!proto.kaikosdk.StreamDerivativesInstrumentCommodityKindV1>} */ (jspb.Message.getRepeatedField(this, 2));
228
+ };
229
+
230
+
231
+ /**
232
+ * @param {!Array<!proto.kaikosdk.StreamDerivativesInstrumentCommodityKindV1>} value
233
+ * @return {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} returns this
234
+ */
235
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.setCommoditiesList = function(value) {
236
+ return jspb.Message.setField(this, 2, value || []);
237
+ };
238
+
239
+
240
+ /**
241
+ * @param {!proto.kaikosdk.StreamDerivativesInstrumentCommodityKindV1} value
242
+ * @param {number=} opt_index
243
+ * @return {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} returns this
244
+ */
245
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.addCommodities = function(value, opt_index) {
246
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
247
+ };
248
+
249
+
250
+ /**
251
+ * Clears the list making it empty but non-null.
252
+ * @return {!proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1} returns this
253
+ */
254
+ proto.kaikosdk.StreamDerivativesInstrumentMetricsRequestV1.prototype.clearCommoditiesList = function() {
255
+ return this.setCommoditiesList([]);
256
+ };
257
+
258
+
259
+ goog.object.extend(exports, proto.kaikosdk);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,55 @@
1
+ // package: kaikosdk
2
+ // file: sdk/stream/derivatives_instrument_metrics_v1/response.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
+ import * as sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb from "../../../sdk/stream/derivatives_instrument_metrics_v1/commodity_kind_pb";
7
+
8
+ export class StreamDerivativesInstrumentMetricsResponseV1 extends jspb.Message {
9
+ getValue(): string;
10
+ setValue(value: string): void;
11
+
12
+ getLegacySymbol(): string;
13
+ setLegacySymbol(value: string): void;
14
+
15
+ getExchange(): string;
16
+ setExchange(value: string): void;
17
+
18
+ getCommodity(): string;
19
+ setCommodity(value: string): void;
20
+
21
+ getCommodityKind(): sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb.StreamDerivativesInstrumentCommodityKindV1Map[keyof sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb.StreamDerivativesInstrumentCommodityKindV1Map];
22
+ setCommodityKind(value: sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb.StreamDerivativesInstrumentCommodityKindV1Map[keyof sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb.StreamDerivativesInstrumentCommodityKindV1Map]): void;
23
+
24
+ hasTsCollection(): boolean;
25
+ clearTsCollection(): void;
26
+ getTsCollection(): google_protobuf_timestamp_pb.Timestamp | undefined;
27
+ setTsCollection(value?: google_protobuf_timestamp_pb.Timestamp): void;
28
+
29
+ hasTsEvent(): boolean;
30
+ clearTsEvent(): void;
31
+ getTsEvent(): google_protobuf_timestamp_pb.Timestamp | undefined;
32
+ setTsEvent(value?: google_protobuf_timestamp_pb.Timestamp): void;
33
+
34
+ serializeBinary(): Uint8Array;
35
+ toObject(includeInstance?: boolean): StreamDerivativesInstrumentMetricsResponseV1.AsObject;
36
+ static toObject(includeInstance: boolean, msg: StreamDerivativesInstrumentMetricsResponseV1): StreamDerivativesInstrumentMetricsResponseV1.AsObject;
37
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
38
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
39
+ static serializeBinaryToWriter(message: StreamDerivativesInstrumentMetricsResponseV1, writer: jspb.BinaryWriter): void;
40
+ static deserializeBinary(bytes: Uint8Array): StreamDerivativesInstrumentMetricsResponseV1;
41
+ static deserializeBinaryFromReader(message: StreamDerivativesInstrumentMetricsResponseV1, reader: jspb.BinaryReader): StreamDerivativesInstrumentMetricsResponseV1;
42
+ }
43
+
44
+ export namespace StreamDerivativesInstrumentMetricsResponseV1 {
45
+ export type AsObject = {
46
+ value: string,
47
+ legacySymbol: string,
48
+ exchange: string,
49
+ commodity: string,
50
+ commodityKind: sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb.StreamDerivativesInstrumentCommodityKindV1Map[keyof sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_pb.StreamDerivativesInstrumentCommodityKindV1Map],
51
+ tsCollection?: google_protobuf_timestamp_pb.Timestamp.AsObject,
52
+ tsEvent?: google_protobuf_timestamp_pb.Timestamp.AsObject,
53
+ }
54
+ }
55
+