@kaiko-data/sdk-node 1.14.1 → 1.15.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 +1 -1
- package/sdk/core/assets_grpc_pb.d.ts +1 -0
- package/sdk/core/assets_grpc_pb.js +1 -0
- package/sdk/core/assets_pb.d.ts +29 -0
- package/sdk/core/assets_pb.js +206 -0
- package/sdk/core/window_grpc_pb.d.ts +1 -0
- package/sdk/core/window_grpc_pb.js +1 -0
- package/sdk/core/window_pb.d.ts +41 -0
- package/sdk/core/window_pb.js +303 -0
- package/sdk/sdk_grpc_pb.d.ts +36 -0
- package/sdk/sdk_grpc_pb.js +82 -0
- package/sdk/sdk_pb.d.ts +4 -0
- package/sdk/sdk_pb.js +8 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/request_grpc_pb.d.ts +1 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/request_grpc_pb.js +1 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.d.ts +47 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.js +357 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/response_grpc_pb.d.ts +1 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/response_grpc_pb.js +1 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.d.ts +50 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.js +365 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/request_grpc_pb.d.ts +1 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/request_grpc_pb.js +1 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.d.ts +47 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.js +357 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/response_grpc_pb.d.ts +1 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/response_grpc_pb.js +1 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.d.ts +50 -0
- package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.js +365 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// package: kaikosdk
|
|
2
|
+
// file: sdk/core/assets.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class Assets extends jspb.Message {
|
|
7
|
+
getBase(): string;
|
|
8
|
+
setBase(value: string): void;
|
|
9
|
+
|
|
10
|
+
getQuote(): string;
|
|
11
|
+
setQuote(value: string): void;
|
|
12
|
+
|
|
13
|
+
serializeBinary(): Uint8Array;
|
|
14
|
+
toObject(includeInstance?: boolean): Assets.AsObject;
|
|
15
|
+
static toObject(includeInstance: boolean, msg: Assets): Assets.AsObject;
|
|
16
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
17
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
18
|
+
static serializeBinaryToWriter(message: Assets, writer: jspb.BinaryWriter): void;
|
|
19
|
+
static deserializeBinary(bytes: Uint8Array): Assets;
|
|
20
|
+
static deserializeBinaryFromReader(message: Assets, reader: jspb.BinaryReader): Assets;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace Assets {
|
|
24
|
+
export type AsObject = {
|
|
25
|
+
base: string,
|
|
26
|
+
quote: string,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// source: sdk/core/assets.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
|
+
goog.exportSymbol('proto.kaikosdk.Assets', null, global);
|
|
25
|
+
/**
|
|
26
|
+
* Generated by JsPbCodeGenerator.
|
|
27
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
28
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
29
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
30
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
31
|
+
* valid.
|
|
32
|
+
* @extends {jspb.Message}
|
|
33
|
+
* @constructor
|
|
34
|
+
*/
|
|
35
|
+
proto.kaikosdk.Assets = function(opt_data) {
|
|
36
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
37
|
+
};
|
|
38
|
+
goog.inherits(proto.kaikosdk.Assets, jspb.Message);
|
|
39
|
+
if (goog.DEBUG && !COMPILED) {
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @override
|
|
43
|
+
*/
|
|
44
|
+
proto.kaikosdk.Assets.displayName = 'proto.kaikosdk.Assets';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50
|
+
/**
|
|
51
|
+
* Creates an object representation of this proto.
|
|
52
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53
|
+
* Optional fields that are not set will be set to undefined.
|
|
54
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55
|
+
* For the list of reserved names please see:
|
|
56
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
57
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
58
|
+
* JSPB instance for transitional soy proto support:
|
|
59
|
+
* http://goto/soy-param-migration
|
|
60
|
+
* @return {!Object}
|
|
61
|
+
*/
|
|
62
|
+
proto.kaikosdk.Assets.prototype.toObject = function(opt_includeInstance) {
|
|
63
|
+
return proto.kaikosdk.Assets.toObject(opt_includeInstance, this);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Static version of the {@see toObject} method.
|
|
69
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
70
|
+
* the JSPB instance for transitional soy proto support:
|
|
71
|
+
* http://goto/soy-param-migration
|
|
72
|
+
* @param {!proto.kaikosdk.Assets} msg The msg instance to transform.
|
|
73
|
+
* @return {!Object}
|
|
74
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75
|
+
*/
|
|
76
|
+
proto.kaikosdk.Assets.toObject = function(includeInstance, msg) {
|
|
77
|
+
var f, obj = {
|
|
78
|
+
base: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
79
|
+
quote: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
if (includeInstance) {
|
|
83
|
+
obj.$jspbMessageInstance = msg;
|
|
84
|
+
}
|
|
85
|
+
return obj;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
93
|
+
* @return {!proto.kaikosdk.Assets}
|
|
94
|
+
*/
|
|
95
|
+
proto.kaikosdk.Assets.deserializeBinary = function(bytes) {
|
|
96
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
97
|
+
var msg = new proto.kaikosdk.Assets;
|
|
98
|
+
return proto.kaikosdk.Assets.deserializeBinaryFromReader(msg, reader);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
104
|
+
* given reader into the given message object.
|
|
105
|
+
* @param {!proto.kaikosdk.Assets} msg The message object to deserialize into.
|
|
106
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
107
|
+
* @return {!proto.kaikosdk.Assets}
|
|
108
|
+
*/
|
|
109
|
+
proto.kaikosdk.Assets.deserializeBinaryFromReader = function(msg, reader) {
|
|
110
|
+
while (reader.nextField()) {
|
|
111
|
+
if (reader.isEndGroup()) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
var field = reader.getFieldNumber();
|
|
115
|
+
switch (field) {
|
|
116
|
+
case 1:
|
|
117
|
+
var value = /** @type {string} */ (reader.readString());
|
|
118
|
+
msg.setBase(value);
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
var value = /** @type {string} */ (reader.readString());
|
|
122
|
+
msg.setQuote(value);
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
reader.skipField();
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return msg;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
135
|
+
* @return {!Uint8Array}
|
|
136
|
+
*/
|
|
137
|
+
proto.kaikosdk.Assets.prototype.serializeBinary = function() {
|
|
138
|
+
var writer = new jspb.BinaryWriter();
|
|
139
|
+
proto.kaikosdk.Assets.serializeBinaryToWriter(this, writer);
|
|
140
|
+
return writer.getResultBuffer();
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
146
|
+
* format), writing to the given BinaryWriter.
|
|
147
|
+
* @param {!proto.kaikosdk.Assets} message
|
|
148
|
+
* @param {!jspb.BinaryWriter} writer
|
|
149
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
150
|
+
*/
|
|
151
|
+
proto.kaikosdk.Assets.serializeBinaryToWriter = function(message, writer) {
|
|
152
|
+
var f = undefined;
|
|
153
|
+
f = message.getBase();
|
|
154
|
+
if (f.length > 0) {
|
|
155
|
+
writer.writeString(
|
|
156
|
+
1,
|
|
157
|
+
f
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
f = message.getQuote();
|
|
161
|
+
if (f.length > 0) {
|
|
162
|
+
writer.writeString(
|
|
163
|
+
2,
|
|
164
|
+
f
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* optional string base = 1;
|
|
172
|
+
* @return {string}
|
|
173
|
+
*/
|
|
174
|
+
proto.kaikosdk.Assets.prototype.getBase = function() {
|
|
175
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {string} value
|
|
181
|
+
* @return {!proto.kaikosdk.Assets} returns this
|
|
182
|
+
*/
|
|
183
|
+
proto.kaikosdk.Assets.prototype.setBase = function(value) {
|
|
184
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* optional string quote = 2;
|
|
190
|
+
* @return {string}
|
|
191
|
+
*/
|
|
192
|
+
proto.kaikosdk.Assets.prototype.getQuote = function() {
|
|
193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @param {string} value
|
|
199
|
+
* @return {!proto.kaikosdk.Assets} returns this
|
|
200
|
+
*/
|
|
201
|
+
proto.kaikosdk.Assets.prototype.setQuote = function(value) {
|
|
202
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
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,41 @@
|
|
|
1
|
+
// package: kaikosdk
|
|
2
|
+
// file: sdk/core/window.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
|
|
6
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
7
|
+
|
|
8
|
+
export class Window extends jspb.Message {
|
|
9
|
+
hasStartTime(): boolean;
|
|
10
|
+
clearStartTime(): void;
|
|
11
|
+
getStartTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
12
|
+
setStartTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
13
|
+
|
|
14
|
+
hasEndTime(): boolean;
|
|
15
|
+
clearEndTime(): void;
|
|
16
|
+
getEndTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
17
|
+
setEndTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
18
|
+
|
|
19
|
+
hasDuration(): boolean;
|
|
20
|
+
clearDuration(): void;
|
|
21
|
+
getDuration(): google_protobuf_duration_pb.Duration | undefined;
|
|
22
|
+
setDuration(value?: google_protobuf_duration_pb.Duration): void;
|
|
23
|
+
|
|
24
|
+
serializeBinary(): Uint8Array;
|
|
25
|
+
toObject(includeInstance?: boolean): Window.AsObject;
|
|
26
|
+
static toObject(includeInstance: boolean, msg: Window): Window.AsObject;
|
|
27
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
28
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
29
|
+
static serializeBinaryToWriter(message: Window, writer: jspb.BinaryWriter): void;
|
|
30
|
+
static deserializeBinary(bytes: Uint8Array): Window;
|
|
31
|
+
static deserializeBinaryFromReader(message: Window, reader: jspb.BinaryReader): Window;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export namespace Window {
|
|
35
|
+
export type AsObject = {
|
|
36
|
+
startTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
37
|
+
endTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
38
|
+
duration?: google_protobuf_duration_pb.Duration.AsObject,
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
// source: sdk/core/window.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 google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_duration_pb);
|
|
26
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
28
|
+
goog.exportSymbol('proto.kaikosdk.Window', 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.Window = function(opt_data) {
|
|
40
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
41
|
+
};
|
|
42
|
+
goog.inherits(proto.kaikosdk.Window, jspb.Message);
|
|
43
|
+
if (goog.DEBUG && !COMPILED) {
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
* @override
|
|
47
|
+
*/
|
|
48
|
+
proto.kaikosdk.Window.displayName = 'proto.kaikosdk.Window';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54
|
+
/**
|
|
55
|
+
* Creates an object representation of this proto.
|
|
56
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
57
|
+
* Optional fields that are not set will be set to undefined.
|
|
58
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
59
|
+
* For the list of reserved names please see:
|
|
60
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
61
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
62
|
+
* JSPB instance for transitional soy proto support:
|
|
63
|
+
* http://goto/soy-param-migration
|
|
64
|
+
* @return {!Object}
|
|
65
|
+
*/
|
|
66
|
+
proto.kaikosdk.Window.prototype.toObject = function(opt_includeInstance) {
|
|
67
|
+
return proto.kaikosdk.Window.toObject(opt_includeInstance, this);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Static version of the {@see toObject} method.
|
|
73
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
74
|
+
* the JSPB instance for transitional soy proto support:
|
|
75
|
+
* http://goto/soy-param-migration
|
|
76
|
+
* @param {!proto.kaikosdk.Window} msg The msg instance to transform.
|
|
77
|
+
* @return {!Object}
|
|
78
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79
|
+
*/
|
|
80
|
+
proto.kaikosdk.Window.toObject = function(includeInstance, msg) {
|
|
81
|
+
var f, obj = {
|
|
82
|
+
startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
83
|
+
endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
84
|
+
duration: (f = msg.getDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
if (includeInstance) {
|
|
88
|
+
obj.$jspbMessageInstance = msg;
|
|
89
|
+
}
|
|
90
|
+
return obj;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Deserializes binary data (in protobuf wire format).
|
|
97
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
98
|
+
* @return {!proto.kaikosdk.Window}
|
|
99
|
+
*/
|
|
100
|
+
proto.kaikosdk.Window.deserializeBinary = function(bytes) {
|
|
101
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
102
|
+
var msg = new proto.kaikosdk.Window;
|
|
103
|
+
return proto.kaikosdk.Window.deserializeBinaryFromReader(msg, reader);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
109
|
+
* given reader into the given message object.
|
|
110
|
+
* @param {!proto.kaikosdk.Window} msg The message object to deserialize into.
|
|
111
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
112
|
+
* @return {!proto.kaikosdk.Window}
|
|
113
|
+
*/
|
|
114
|
+
proto.kaikosdk.Window.deserializeBinaryFromReader = function(msg, reader) {
|
|
115
|
+
while (reader.nextField()) {
|
|
116
|
+
if (reader.isEndGroup()) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
var field = reader.getFieldNumber();
|
|
120
|
+
switch (field) {
|
|
121
|
+
case 1:
|
|
122
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
123
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
124
|
+
msg.setStartTime(value);
|
|
125
|
+
break;
|
|
126
|
+
case 2:
|
|
127
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
128
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
129
|
+
msg.setEndTime(value);
|
|
130
|
+
break;
|
|
131
|
+
case 3:
|
|
132
|
+
var value = new google_protobuf_duration_pb.Duration;
|
|
133
|
+
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
|
|
134
|
+
msg.setDuration(value);
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
reader.skipField();
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return msg;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
147
|
+
* @return {!Uint8Array}
|
|
148
|
+
*/
|
|
149
|
+
proto.kaikosdk.Window.prototype.serializeBinary = function() {
|
|
150
|
+
var writer = new jspb.BinaryWriter();
|
|
151
|
+
proto.kaikosdk.Window.serializeBinaryToWriter(this, writer);
|
|
152
|
+
return writer.getResultBuffer();
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
158
|
+
* format), writing to the given BinaryWriter.
|
|
159
|
+
* @param {!proto.kaikosdk.Window} message
|
|
160
|
+
* @param {!jspb.BinaryWriter} writer
|
|
161
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
162
|
+
*/
|
|
163
|
+
proto.kaikosdk.Window.serializeBinaryToWriter = function(message, writer) {
|
|
164
|
+
var f = undefined;
|
|
165
|
+
f = message.getStartTime();
|
|
166
|
+
if (f != null) {
|
|
167
|
+
writer.writeMessage(
|
|
168
|
+
1,
|
|
169
|
+
f,
|
|
170
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
f = message.getEndTime();
|
|
174
|
+
if (f != null) {
|
|
175
|
+
writer.writeMessage(
|
|
176
|
+
2,
|
|
177
|
+
f,
|
|
178
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
f = message.getDuration();
|
|
182
|
+
if (f != null) {
|
|
183
|
+
writer.writeMessage(
|
|
184
|
+
3,
|
|
185
|
+
f,
|
|
186
|
+
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* optional google.protobuf.Timestamp start_time = 1;
|
|
194
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
195
|
+
*/
|
|
196
|
+
proto.kaikosdk.Window.prototype.getStartTime = function() {
|
|
197
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
198
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
204
|
+
* @return {!proto.kaikosdk.Window} returns this
|
|
205
|
+
*/
|
|
206
|
+
proto.kaikosdk.Window.prototype.setStartTime = function(value) {
|
|
207
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Clears the message field making it undefined.
|
|
213
|
+
* @return {!proto.kaikosdk.Window} returns this
|
|
214
|
+
*/
|
|
215
|
+
proto.kaikosdk.Window.prototype.clearStartTime = function() {
|
|
216
|
+
return this.setStartTime(undefined);
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Returns whether this field is set.
|
|
222
|
+
* @return {boolean}
|
|
223
|
+
*/
|
|
224
|
+
proto.kaikosdk.Window.prototype.hasStartTime = function() {
|
|
225
|
+
return jspb.Message.getField(this, 1) != null;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* optional google.protobuf.Timestamp end_time = 2;
|
|
231
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
232
|
+
*/
|
|
233
|
+
proto.kaikosdk.Window.prototype.getEndTime = function() {
|
|
234
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
235
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
241
|
+
* @return {!proto.kaikosdk.Window} returns this
|
|
242
|
+
*/
|
|
243
|
+
proto.kaikosdk.Window.prototype.setEndTime = function(value) {
|
|
244
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Clears the message field making it undefined.
|
|
250
|
+
* @return {!proto.kaikosdk.Window} returns this
|
|
251
|
+
*/
|
|
252
|
+
proto.kaikosdk.Window.prototype.clearEndTime = function() {
|
|
253
|
+
return this.setEndTime(undefined);
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Returns whether this field is set.
|
|
259
|
+
* @return {boolean}
|
|
260
|
+
*/
|
|
261
|
+
proto.kaikosdk.Window.prototype.hasEndTime = function() {
|
|
262
|
+
return jspb.Message.getField(this, 2) != null;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* optional google.protobuf.Duration duration = 3;
|
|
268
|
+
* @return {?proto.google.protobuf.Duration}
|
|
269
|
+
*/
|
|
270
|
+
proto.kaikosdk.Window.prototype.getDuration = function() {
|
|
271
|
+
return /** @type{?proto.google.protobuf.Duration} */ (
|
|
272
|
+
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @param {?proto.google.protobuf.Duration|undefined} value
|
|
278
|
+
* @return {!proto.kaikosdk.Window} returns this
|
|
279
|
+
*/
|
|
280
|
+
proto.kaikosdk.Window.prototype.setDuration = function(value) {
|
|
281
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Clears the message field making it undefined.
|
|
287
|
+
* @return {!proto.kaikosdk.Window} returns this
|
|
288
|
+
*/
|
|
289
|
+
proto.kaikosdk.Window.prototype.clearDuration = function() {
|
|
290
|
+
return this.setDuration(undefined);
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Returns whether this field is set.
|
|
296
|
+
* @return {boolean}
|
|
297
|
+
*/
|
|
298
|
+
proto.kaikosdk.Window.prototype.hasDuration = function() {
|
|
299
|
+
return jspb.Message.getField(this, 3) != null;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
goog.object.extend(exports, proto.kaikosdk);
|
package/sdk/sdk_grpc_pb.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ import * as sdk_stream_aggregates_ohlcv_v1_request_pb from "../sdk/stream/aggreg
|
|
|
12
12
|
import * as sdk_stream_aggregates_ohlcv_v1_response_pb from "../sdk/stream/aggregates_ohlcv_v1/response_pb";
|
|
13
13
|
import * as sdk_stream_aggregates_vwap_v1_request_pb from "../sdk/stream/aggregates_vwap_v1/request_pb";
|
|
14
14
|
import * as sdk_stream_aggregates_vwap_v1_response_pb from "../sdk/stream/aggregates_vwap_v1/response_pb";
|
|
15
|
+
import * as sdk_stream_aggregates_direct_exchange_rate_v1_request_pb from "../sdk/stream/aggregates_direct_exchange_rate_v1/request_pb";
|
|
16
|
+
import * as sdk_stream_aggregates_direct_exchange_rate_v1_response_pb from "../sdk/stream/aggregates_direct_exchange_rate_v1/response_pb";
|
|
17
|
+
import * as sdk_stream_aggregates_spot_exchange_rate_v1_request_pb from "../sdk/stream/aggregates_spot_exchange_rate_v1/request_pb";
|
|
18
|
+
import * as sdk_stream_aggregates_spot_exchange_rate_v1_response_pb from "../sdk/stream/aggregates_spot_exchange_rate_v1/response_pb";
|
|
15
19
|
import * as sdk_stream_index_v1_request_pb from "../sdk/stream/index_v1/request_pb";
|
|
16
20
|
import * as sdk_stream_index_v1_response_pb from "../sdk/stream/index_v1/response_pb";
|
|
17
21
|
import * as sdk_stream_index_multi_assets_v1_request_pb from "../sdk/stream/index_multi_assets_v1/request_pb";
|
|
@@ -152,6 +156,38 @@ export class StreamMarketUpdateServiceV1Client extends grpc.Client {
|
|
|
152
156
|
subscribe(argument: sdk_stream_market_update_v1_request_pb.StreamMarketUpdateRequestV1, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream<sdk_stream_market_update_v1_response_pb.StreamMarketUpdateResponseV1>;
|
|
153
157
|
}
|
|
154
158
|
|
|
159
|
+
interface IStreamAggregatesSpotExchangeRateV1ServiceV2Service extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
160
|
+
subscribe: grpc.MethodDefinition<sdk_stream_aggregates_spot_exchange_rate_v1_request_pb.StreamAggregatesSpotExchangeRateV1RequestV2, sdk_stream_aggregates_spot_exchange_rate_v1_response_pb.StreamAggregatesSpotExchangeRateV1ResponseV2>;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export const StreamAggregatesSpotExchangeRateV1ServiceV2Service: IStreamAggregatesSpotExchangeRateV1ServiceV2Service;
|
|
164
|
+
|
|
165
|
+
export interface IStreamAggregatesSpotExchangeRateV1ServiceV2Server extends grpc.UntypedServiceImplementation {
|
|
166
|
+
subscribe: grpc.handleServerStreamingCall<sdk_stream_aggregates_spot_exchange_rate_v1_request_pb.StreamAggregatesSpotExchangeRateV1RequestV2, sdk_stream_aggregates_spot_exchange_rate_v1_response_pb.StreamAggregatesSpotExchangeRateV1ResponseV2>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export class StreamAggregatesSpotExchangeRateV1ServiceV2Client extends grpc.Client {
|
|
170
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
171
|
+
subscribe(argument: sdk_stream_aggregates_spot_exchange_rate_v1_request_pb.StreamAggregatesSpotExchangeRateV1RequestV2, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream<sdk_stream_aggregates_spot_exchange_rate_v1_response_pb.StreamAggregatesSpotExchangeRateV1ResponseV2>;
|
|
172
|
+
subscribe(argument: sdk_stream_aggregates_spot_exchange_rate_v1_request_pb.StreamAggregatesSpotExchangeRateV1RequestV2, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream<sdk_stream_aggregates_spot_exchange_rate_v1_response_pb.StreamAggregatesSpotExchangeRateV1ResponseV2>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface IStreamAggregatesSpotDirectExchangeRateV1ServiceV2Service extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
176
|
+
subscribe: grpc.MethodDefinition<sdk_stream_aggregates_direct_exchange_rate_v1_request_pb.StreamAggregatesDirectExchangeRateV1RequestV2, sdk_stream_aggregates_direct_exchange_rate_v1_response_pb.StreamAggregatesDirectExchangeRateV1ResponseV2>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export const StreamAggregatesSpotDirectExchangeRateV1ServiceV2Service: IStreamAggregatesSpotDirectExchangeRateV1ServiceV2Service;
|
|
180
|
+
|
|
181
|
+
export interface IStreamAggregatesSpotDirectExchangeRateV1ServiceV2Server extends grpc.UntypedServiceImplementation {
|
|
182
|
+
subscribe: grpc.handleServerStreamingCall<sdk_stream_aggregates_direct_exchange_rate_v1_request_pb.StreamAggregatesDirectExchangeRateV1RequestV2, sdk_stream_aggregates_direct_exchange_rate_v1_response_pb.StreamAggregatesDirectExchangeRateV1ResponseV2>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export class StreamAggregatesSpotDirectExchangeRateV1ServiceV2Client extends grpc.Client {
|
|
186
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
187
|
+
subscribe(argument: sdk_stream_aggregates_direct_exchange_rate_v1_request_pb.StreamAggregatesDirectExchangeRateV1RequestV2, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream<sdk_stream_aggregates_direct_exchange_rate_v1_response_pb.StreamAggregatesDirectExchangeRateV1ResponseV2>;
|
|
188
|
+
subscribe(argument: sdk_stream_aggregates_direct_exchange_rate_v1_request_pb.StreamAggregatesDirectExchangeRateV1RequestV2, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream<sdk_stream_aggregates_direct_exchange_rate_v1_response_pb.StreamAggregatesDirectExchangeRateV1ResponseV2>;
|
|
189
|
+
}
|
|
190
|
+
|
|
155
191
|
interface IStreamIndexForexRateServiceV1Service extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
156
192
|
subscribe: grpc.MethodDefinition<sdk_stream_index_forex_rate_v1_request_pb.StreamIndexForexRateServiceRequestV1, sdk_stream_index_forex_rate_v1_response_pb.StreamIndexForexRateServiceResponseV1>;
|
|
157
193
|
}
|