@kaiko-data/sdk-node 1.0.2 → 1.0.6
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 +1 -1
- package/sdk/sdk_grpc_pb.d.ts +18 -0
- package/sdk/sdk_grpc_pb.js +41 -0
- package/sdk/sdk_pb.d.ts +2 -0
- package/sdk/sdk_pb.js +4 -0
- package/sdk/stream/derivatives_price_v2/request_grpc_pb.d.ts +1 -0
- package/sdk/stream/derivatives_price_v2/request_grpc_pb.js +1 -0
- package/sdk/stream/derivatives_price_v2/request_pb.d.ts +28 -0
- package/sdk/stream/derivatives_price_v2/request_pb.js +193 -0
- package/sdk/stream/derivatives_price_v2/response_grpc_pb.d.ts +1 -0
- package/sdk/stream/derivatives_price_v2/response_grpc_pb.js +1 -0
- package/sdk/stream/derivatives_price_v2/response_pb.d.ts +56 -0
- package/sdk/stream/derivatives_price_v2/response_pb.js +420 -0
- package/sdk/stream/index_v1/commodity_grpc_pb.d.ts +1 -0
- package/sdk/stream/index_v1/commodity_grpc_pb.js +1 -0
- package/sdk/stream/index_v1/commodity_pb.d.ts +13 -0
- package/sdk/stream/index_v1/commodity_pb.js +28 -0
- package/sdk/stream/index_v1/request_pb.d.ts +6 -3
- package/sdk/stream/index_v1/request_pb.js +43 -13
- package/sdk/stream/index_v1/response_pb.d.ts +4 -48
- package/sdk/stream/index_v1/response_pb.js +47 -403
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
// source: sdk/stream/derivatives_price_v2/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('return this')();
|
|
17
|
+
|
|
18
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
|
+
var sdk_core_wrappers_pb = require('../../../sdk/core/wrappers_pb.js');
|
|
21
|
+
goog.object.extend(proto, sdk_core_wrappers_pb);
|
|
22
|
+
goog.exportSymbol('proto.kaikosdk.StreamDerivativesPriceResponseV2', null, global);
|
|
23
|
+
/**
|
|
24
|
+
* Generated by JsPbCodeGenerator.
|
|
25
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
26
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
27
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
28
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
29
|
+
* valid.
|
|
30
|
+
* @extends {jspb.Message}
|
|
31
|
+
* @constructor
|
|
32
|
+
*/
|
|
33
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2 = function(opt_data) {
|
|
34
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
35
|
+
};
|
|
36
|
+
goog.inherits(proto.kaikosdk.StreamDerivativesPriceResponseV2, jspb.Message);
|
|
37
|
+
if (goog.DEBUG && !COMPILED) {
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
* @override
|
|
41
|
+
*/
|
|
42
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.displayName = 'proto.kaikosdk.StreamDerivativesPriceResponseV2';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
48
|
+
/**
|
|
49
|
+
* Creates an object representation of this proto.
|
|
50
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
51
|
+
* Optional fields that are not set will be set to undefined.
|
|
52
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53
|
+
* For the list of reserved names please see:
|
|
54
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
56
|
+
* JSPB instance for transitional soy proto support:
|
|
57
|
+
* http://goto/soy-param-migration
|
|
58
|
+
* @return {!Object}
|
|
59
|
+
*/
|
|
60
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.toObject = function(opt_includeInstance) {
|
|
61
|
+
return proto.kaikosdk.StreamDerivativesPriceResponseV2.toObject(opt_includeInstance, this);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Static version of the {@see toObject} method.
|
|
67
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68
|
+
* the JSPB instance for transitional soy proto support:
|
|
69
|
+
* http://goto/soy-param-migration
|
|
70
|
+
* @param {!proto.kaikosdk.StreamDerivativesPriceResponseV2} msg The msg instance to transform.
|
|
71
|
+
* @return {!Object}
|
|
72
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
73
|
+
*/
|
|
74
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.toObject = function(includeInstance, msg) {
|
|
75
|
+
var f, obj = {
|
|
76
|
+
pb_class: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
77
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
78
|
+
exchange: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
79
|
+
valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
80
|
+
tsExchange: (f = msg.getTsExchange()) && sdk_core_wrappers_pb.TimestampValue.toObject(includeInstance, f),
|
|
81
|
+
tsCollection: (f = msg.getTsCollection()) && sdk_core_wrappers_pb.TimestampValue.toObject(includeInstance, f),
|
|
82
|
+
tsEvent: (f = msg.getTsEvent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
if (includeInstance) {
|
|
86
|
+
obj.$jspbMessageInstance = msg;
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Deserializes binary data (in protobuf wire format).
|
|
95
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
96
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2}
|
|
97
|
+
*/
|
|
98
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.deserializeBinary = function(bytes) {
|
|
99
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
100
|
+
var msg = new proto.kaikosdk.StreamDerivativesPriceResponseV2;
|
|
101
|
+
return proto.kaikosdk.StreamDerivativesPriceResponseV2.deserializeBinaryFromReader(msg, reader);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
107
|
+
* given reader into the given message object.
|
|
108
|
+
* @param {!proto.kaikosdk.StreamDerivativesPriceResponseV2} msg The message object to deserialize into.
|
|
109
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
110
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2}
|
|
111
|
+
*/
|
|
112
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.deserializeBinaryFromReader = function(msg, reader) {
|
|
113
|
+
while (reader.nextField()) {
|
|
114
|
+
if (reader.isEndGroup()) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
var field = reader.getFieldNumber();
|
|
118
|
+
switch (field) {
|
|
119
|
+
case 1:
|
|
120
|
+
var value = /** @type {string} */ (reader.readString());
|
|
121
|
+
msg.setClass(value);
|
|
122
|
+
break;
|
|
123
|
+
case 2:
|
|
124
|
+
var value = /** @type {string} */ (reader.readString());
|
|
125
|
+
msg.setCode(value);
|
|
126
|
+
break;
|
|
127
|
+
case 3:
|
|
128
|
+
var value = /** @type {string} */ (reader.readString());
|
|
129
|
+
msg.setExchange(value);
|
|
130
|
+
break;
|
|
131
|
+
case 4:
|
|
132
|
+
var value = msg.getValuesMap();
|
|
133
|
+
reader.readMessage(value, function(message, reader) {
|
|
134
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
135
|
+
});
|
|
136
|
+
break;
|
|
137
|
+
case 5:
|
|
138
|
+
var value = new sdk_core_wrappers_pb.TimestampValue;
|
|
139
|
+
reader.readMessage(value,sdk_core_wrappers_pb.TimestampValue.deserializeBinaryFromReader);
|
|
140
|
+
msg.setTsExchange(value);
|
|
141
|
+
break;
|
|
142
|
+
case 6:
|
|
143
|
+
var value = new sdk_core_wrappers_pb.TimestampValue;
|
|
144
|
+
reader.readMessage(value,sdk_core_wrappers_pb.TimestampValue.deserializeBinaryFromReader);
|
|
145
|
+
msg.setTsCollection(value);
|
|
146
|
+
break;
|
|
147
|
+
case 7:
|
|
148
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
149
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
150
|
+
msg.setTsEvent(value);
|
|
151
|
+
break;
|
|
152
|
+
default:
|
|
153
|
+
reader.skipField();
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return msg;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
163
|
+
* @return {!Uint8Array}
|
|
164
|
+
*/
|
|
165
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.serializeBinary = function() {
|
|
166
|
+
var writer = new jspb.BinaryWriter();
|
|
167
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.serializeBinaryToWriter(this, writer);
|
|
168
|
+
return writer.getResultBuffer();
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
174
|
+
* format), writing to the given BinaryWriter.
|
|
175
|
+
* @param {!proto.kaikosdk.StreamDerivativesPriceResponseV2} message
|
|
176
|
+
* @param {!jspb.BinaryWriter} writer
|
|
177
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
178
|
+
*/
|
|
179
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.serializeBinaryToWriter = function(message, writer) {
|
|
180
|
+
var f = undefined;
|
|
181
|
+
f = message.getClass();
|
|
182
|
+
if (f.length > 0) {
|
|
183
|
+
writer.writeString(
|
|
184
|
+
1,
|
|
185
|
+
f
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
f = message.getCode();
|
|
189
|
+
if (f.length > 0) {
|
|
190
|
+
writer.writeString(
|
|
191
|
+
2,
|
|
192
|
+
f
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
f = message.getExchange();
|
|
196
|
+
if (f.length > 0) {
|
|
197
|
+
writer.writeString(
|
|
198
|
+
3,
|
|
199
|
+
f
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
f = message.getValuesMap(true);
|
|
203
|
+
if (f && f.getLength() > 0) {
|
|
204
|
+
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
205
|
+
}
|
|
206
|
+
f = message.getTsExchange();
|
|
207
|
+
if (f != null) {
|
|
208
|
+
writer.writeMessage(
|
|
209
|
+
5,
|
|
210
|
+
f,
|
|
211
|
+
sdk_core_wrappers_pb.TimestampValue.serializeBinaryToWriter
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
f = message.getTsCollection();
|
|
215
|
+
if (f != null) {
|
|
216
|
+
writer.writeMessage(
|
|
217
|
+
6,
|
|
218
|
+
f,
|
|
219
|
+
sdk_core_wrappers_pb.TimestampValue.serializeBinaryToWriter
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
f = message.getTsEvent();
|
|
223
|
+
if (f != null) {
|
|
224
|
+
writer.writeMessage(
|
|
225
|
+
7,
|
|
226
|
+
f,
|
|
227
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* optional string class = 1;
|
|
235
|
+
* @return {string}
|
|
236
|
+
*/
|
|
237
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.getClass = function() {
|
|
238
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @param {string} value
|
|
244
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
245
|
+
*/
|
|
246
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.setClass = function(value) {
|
|
247
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* optional string code = 2;
|
|
253
|
+
* @return {string}
|
|
254
|
+
*/
|
|
255
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.getCode = function() {
|
|
256
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @param {string} value
|
|
262
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
263
|
+
*/
|
|
264
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.setCode = function(value) {
|
|
265
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* optional string exchange = 3;
|
|
271
|
+
* @return {string}
|
|
272
|
+
*/
|
|
273
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.getExchange = function() {
|
|
274
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @param {string} value
|
|
280
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
281
|
+
*/
|
|
282
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.setExchange = function(value) {
|
|
283
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* map<string, string> values = 4;
|
|
289
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
290
|
+
* empty, instead returning `undefined`
|
|
291
|
+
* @return {!jspb.Map<string,string>}
|
|
292
|
+
*/
|
|
293
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.getValuesMap = function(opt_noLazyCreate) {
|
|
294
|
+
return /** @type {!jspb.Map<string,string>} */ (
|
|
295
|
+
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
296
|
+
null));
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Clears values from the map. The map will be non-null.
|
|
302
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
303
|
+
*/
|
|
304
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.clearValuesMap = function() {
|
|
305
|
+
this.getValuesMap().clear();
|
|
306
|
+
return this;};
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* optional TimestampValue ts_exchange = 5;
|
|
311
|
+
* @return {?proto.kaikosdk.TimestampValue}
|
|
312
|
+
*/
|
|
313
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.getTsExchange = function() {
|
|
314
|
+
return /** @type{?proto.kaikosdk.TimestampValue} */ (
|
|
315
|
+
jspb.Message.getWrapperField(this, sdk_core_wrappers_pb.TimestampValue, 5));
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @param {?proto.kaikosdk.TimestampValue|undefined} value
|
|
321
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
322
|
+
*/
|
|
323
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.setTsExchange = function(value) {
|
|
324
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Clears the message field making it undefined.
|
|
330
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
331
|
+
*/
|
|
332
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.clearTsExchange = function() {
|
|
333
|
+
return this.setTsExchange(undefined);
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Returns whether this field is set.
|
|
339
|
+
* @return {boolean}
|
|
340
|
+
*/
|
|
341
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.hasTsExchange = function() {
|
|
342
|
+
return jspb.Message.getField(this, 5) != null;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* optional TimestampValue ts_collection = 6;
|
|
348
|
+
* @return {?proto.kaikosdk.TimestampValue}
|
|
349
|
+
*/
|
|
350
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.getTsCollection = function() {
|
|
351
|
+
return /** @type{?proto.kaikosdk.TimestampValue} */ (
|
|
352
|
+
jspb.Message.getWrapperField(this, sdk_core_wrappers_pb.TimestampValue, 6));
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @param {?proto.kaikosdk.TimestampValue|undefined} value
|
|
358
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
359
|
+
*/
|
|
360
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.setTsCollection = function(value) {
|
|
361
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Clears the message field making it undefined.
|
|
367
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
368
|
+
*/
|
|
369
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.clearTsCollection = function() {
|
|
370
|
+
return this.setTsCollection(undefined);
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Returns whether this field is set.
|
|
376
|
+
* @return {boolean}
|
|
377
|
+
*/
|
|
378
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.hasTsCollection = function() {
|
|
379
|
+
return jspb.Message.getField(this, 6) != null;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* optional google.protobuf.Timestamp ts_event = 7;
|
|
385
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
386
|
+
*/
|
|
387
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.getTsEvent = function() {
|
|
388
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
389
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
395
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
396
|
+
*/
|
|
397
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.setTsEvent = function(value) {
|
|
398
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Clears the message field making it undefined.
|
|
404
|
+
* @return {!proto.kaikosdk.StreamDerivativesPriceResponseV2} returns this
|
|
405
|
+
*/
|
|
406
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.clearTsEvent = function() {
|
|
407
|
+
return this.setTsEvent(undefined);
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Returns whether this field is set.
|
|
413
|
+
* @return {boolean}
|
|
414
|
+
*/
|
|
415
|
+
proto.kaikosdk.StreamDerivativesPriceResponseV2.prototype.hasTsEvent = function() {
|
|
416
|
+
return jspb.Message.getField(this, 7) != null;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
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,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,28 @@
|
|
|
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('return this')();
|
|
17
|
+
|
|
18
|
+
goog.exportSymbol('proto.kaikosdk.StreamIndexCommodity', null, global);
|
|
19
|
+
/**
|
|
20
|
+
* @enum {number}
|
|
21
|
+
*/
|
|
22
|
+
proto.kaikosdk.StreamIndexCommodity = {
|
|
23
|
+
SIC_UNKNOWN: 0,
|
|
24
|
+
SIC_REAL_TIME: 1,
|
|
25
|
+
SIC_DAILY_FIXING: 2
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
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
|
-
|
|
11
|
-
|
|
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
|
-
|
|
29
|
+
commoditiesList: Array<sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]>,
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = Function('return this')();
|
|
17
17
|
|
|
18
|
+
var sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/commodity_pb.js');
|
|
19
|
+
goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
|
|
18
20
|
goog.exportSymbol('proto.kaikosdk.StreamIndexServiceRequestV1', null, global);
|
|
19
21
|
/**
|
|
20
22
|
* Generated by JsPbCodeGenerator.
|
|
@@ -27,7 +29,7 @@ goog.exportSymbol('proto.kaikosdk.StreamIndexServiceRequestV1', null, global);
|
|
|
27
29
|
* @constructor
|
|
28
30
|
*/
|
|
29
31
|
proto.kaikosdk.StreamIndexServiceRequestV1 = function(opt_data) {
|
|
30
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
32
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kaikosdk.StreamIndexServiceRequestV1.repeatedFields_, null);
|
|
31
33
|
};
|
|
32
34
|
goog.inherits(proto.kaikosdk.StreamIndexServiceRequestV1, jspb.Message);
|
|
33
35
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -38,6 +40,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
38
40
|
proto.kaikosdk.StreamIndexServiceRequestV1.displayName = 'proto.kaikosdk.StreamIndexServiceRequestV1';
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
/**
|
|
44
|
+
* List of repeated fields within this message type.
|
|
45
|
+
* @private {!Array<number>}
|
|
46
|
+
* @const
|
|
47
|
+
*/
|
|
48
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.repeatedFields_ = [2];
|
|
49
|
+
|
|
41
50
|
|
|
42
51
|
|
|
43
52
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -70,7 +79,7 @@ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.toObject = function(opt_inc
|
|
|
70
79
|
proto.kaikosdk.StreamIndexServiceRequestV1.toObject = function(includeInstance, msg) {
|
|
71
80
|
var f, obj = {
|
|
72
81
|
indexCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
73
|
-
|
|
82
|
+
commoditiesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
74
83
|
};
|
|
75
84
|
|
|
76
85
|
if (includeInstance) {
|
|
@@ -112,8 +121,10 @@ proto.kaikosdk.StreamIndexServiceRequestV1.deserializeBinaryFromReader = functio
|
|
|
112
121
|
msg.setIndexCode(value);
|
|
113
122
|
break;
|
|
114
123
|
case 2:
|
|
115
|
-
var
|
|
116
|
-
|
|
124
|
+
var values = /** @type {!Array<!proto.kaikosdk.StreamIndexCommodity>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
125
|
+
for (var i = 0; i < values.length; i++) {
|
|
126
|
+
msg.addCommodities(values[i]);
|
|
127
|
+
}
|
|
117
128
|
break;
|
|
118
129
|
default:
|
|
119
130
|
reader.skipField();
|
|
@@ -151,9 +162,9 @@ proto.kaikosdk.StreamIndexServiceRequestV1.serializeBinaryToWriter = function(me
|
|
|
151
162
|
f
|
|
152
163
|
);
|
|
153
164
|
}
|
|
154
|
-
f = message.
|
|
165
|
+
f = message.getCommoditiesList();
|
|
155
166
|
if (f.length > 0) {
|
|
156
|
-
writer.
|
|
167
|
+
writer.writePackedEnum(
|
|
157
168
|
2,
|
|
158
169
|
f
|
|
159
170
|
);
|
|
@@ -180,20 +191,39 @@ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.setIndexCode = function(val
|
|
|
180
191
|
|
|
181
192
|
|
|
182
193
|
/**
|
|
183
|
-
*
|
|
184
|
-
* @return {
|
|
194
|
+
* repeated StreamIndexCommodity commodities = 2;
|
|
195
|
+
* @return {!Array<!proto.kaikosdk.StreamIndexCommodity>}
|
|
185
196
|
*/
|
|
186
|
-
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.
|
|
187
|
-
return /** @type {
|
|
197
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.getCommoditiesList = function() {
|
|
198
|
+
return /** @type {!Array<!proto.kaikosdk.StreamIndexCommodity>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
188
199
|
};
|
|
189
200
|
|
|
190
201
|
|
|
191
202
|
/**
|
|
192
|
-
* @param {
|
|
203
|
+
* @param {!Array<!proto.kaikosdk.StreamIndexCommodity>} value
|
|
204
|
+
* @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
|
|
205
|
+
*/
|
|
206
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.setCommoditiesList = function(value) {
|
|
207
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param {!proto.kaikosdk.StreamIndexCommodity} value
|
|
213
|
+
* @param {number=} opt_index
|
|
214
|
+
* @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
|
|
215
|
+
*/
|
|
216
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.addCommodities = function(value, opt_index) {
|
|
217
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Clears the list making it empty but non-null.
|
|
193
223
|
* @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
|
|
194
224
|
*/
|
|
195
|
-
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.
|
|
196
|
-
return
|
|
225
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.clearCommoditiesList = function() {
|
|
226
|
+
return this.setCommoditiesList([]);
|
|
197
227
|
};
|
|
198
228
|
|
|
199
229
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
6
|
-
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
|
7
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";
|
|
8
8
|
|
|
9
9
|
export class StreamIndexServiceResponsePercentage extends jspb.Message {
|
|
10
10
|
getPercentage(): number;
|
|
@@ -118,38 +118,12 @@ export namespace StreamIndexServiceResponseBaseAsset {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export class StreamIndexServiceResponseRounding extends jspb.Message {
|
|
122
|
-
getMethod(): string;
|
|
123
|
-
setMethod(value: string): void;
|
|
124
|
-
|
|
125
|
-
hasDecimals(): boolean;
|
|
126
|
-
clearDecimals(): void;
|
|
127
|
-
getDecimals(): google_protobuf_wrappers_pb.UInt32Value | undefined;
|
|
128
|
-
setDecimals(value?: google_protobuf_wrappers_pb.UInt32Value): void;
|
|
129
|
-
|
|
130
|
-
serializeBinary(): Uint8Array;
|
|
131
|
-
toObject(includeInstance?: boolean): StreamIndexServiceResponseRounding.AsObject;
|
|
132
|
-
static toObject(includeInstance: boolean, msg: StreamIndexServiceResponseRounding): StreamIndexServiceResponseRounding.AsObject;
|
|
133
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
134
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
135
|
-
static serializeBinaryToWriter(message: StreamIndexServiceResponseRounding, writer: jspb.BinaryWriter): void;
|
|
136
|
-
static deserializeBinary(bytes: Uint8Array): StreamIndexServiceResponseRounding;
|
|
137
|
-
static deserializeBinaryFromReader(message: StreamIndexServiceResponseRounding, reader: jspb.BinaryReader): StreamIndexServiceResponseRounding;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export namespace StreamIndexServiceResponseRounding {
|
|
141
|
-
export type AsObject = {
|
|
142
|
-
method: string,
|
|
143
|
-
decimals?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
121
|
export class StreamIndexServiceResponseV1 extends jspb.Message {
|
|
148
122
|
getIndexCode(): string;
|
|
149
123
|
setIndexCode(value: string): void;
|
|
150
124
|
|
|
151
|
-
|
|
152
|
-
|
|
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;
|
|
153
127
|
|
|
154
128
|
hasInterval(): boolean;
|
|
155
129
|
clearInterval(): void;
|
|
@@ -169,21 +143,6 @@ export class StreamIndexServiceResponseV1 extends jspb.Message {
|
|
|
169
143
|
setExchangesList(value: Array<string>): void;
|
|
170
144
|
addExchanges(value: string, index?: number): string;
|
|
171
145
|
|
|
172
|
-
hasRoundingTrade(): boolean;
|
|
173
|
-
clearRoundingTrade(): void;
|
|
174
|
-
getRoundingTrade(): StreamIndexServiceResponseRounding | undefined;
|
|
175
|
-
setRoundingTrade(value?: StreamIndexServiceResponseRounding): void;
|
|
176
|
-
|
|
177
|
-
hasRoundingAggregation(): boolean;
|
|
178
|
-
clearRoundingAggregation(): void;
|
|
179
|
-
getRoundingAggregation(): StreamIndexServiceResponseRounding | undefined;
|
|
180
|
-
setRoundingAggregation(value?: StreamIndexServiceResponseRounding): void;
|
|
181
|
-
|
|
182
|
-
hasRoundingPrice(): boolean;
|
|
183
|
-
clearRoundingPrice(): void;
|
|
184
|
-
getRoundingPrice(): StreamIndexServiceResponseRounding | undefined;
|
|
185
|
-
setRoundingPrice(value?: StreamIndexServiceResponseRounding): void;
|
|
186
|
-
|
|
187
146
|
clearPercentagesList(): void;
|
|
188
147
|
getPercentagesList(): Array<StreamIndexServiceResponsePercentage>;
|
|
189
148
|
setPercentagesList(value: Array<StreamIndexServiceResponsePercentage>): void;
|
|
@@ -207,14 +166,11 @@ export class StreamIndexServiceResponseV1 extends jspb.Message {
|
|
|
207
166
|
export namespace StreamIndexServiceResponseV1 {
|
|
208
167
|
export type AsObject = {
|
|
209
168
|
indexCode: string,
|
|
210
|
-
|
|
169
|
+
commodity: sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap],
|
|
211
170
|
interval?: sdk_core_data_interval_pb.DataInterval.AsObject,
|
|
212
171
|
quote: string,
|
|
213
172
|
basesList: Array<StreamIndexServiceResponseBaseAsset.AsObject>,
|
|
214
173
|
exchangesList: Array<string>,
|
|
215
|
-
roundingTrade?: StreamIndexServiceResponseRounding.AsObject,
|
|
216
|
-
roundingAggregation?: StreamIndexServiceResponseRounding.AsObject,
|
|
217
|
-
roundingPrice?: StreamIndexServiceResponseRounding.AsObject,
|
|
218
174
|
percentagesList: Array<StreamIndexServiceResponsePercentage.AsObject>,
|
|
219
175
|
tsEvent?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
220
176
|
}
|