@kaiko-data/sdk-node 1.1.0 → 1.3.1
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/data_interval_pb.js +7 -1
- package/sdk/core/envelope_pb.js +7 -1
- package/sdk/core/envelope_status_pb.js +7 -1
- package/sdk/core/instrument_criteria_pb.js +7 -1
- package/sdk/core/response_pb.js +7 -1
- package/sdk/core/sort_criteria_pb.js +7 -1
- package/sdk/core/source_data_pb.js +7 -1
- package/sdk/core/source_pb.js +7 -1
- package/sdk/core/wrappers_pb.js +7 -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 +11 -1
- package/sdk/stream/aggregated_price_v1/request_grpc_pb.d.ts +1 -0
- package/sdk/stream/aggregated_price_v1/request_grpc_pb.js +1 -0
- package/sdk/stream/aggregated_price_v1/request_pb.d.ts +29 -0
- package/sdk/stream/aggregated_price_v1/request_pb.js +206 -0
- package/sdk/stream/aggregated_price_v1/response_grpc_pb.d.ts +1 -0
- package/sdk/stream/aggregated_price_v1/response_grpc_pb.js +1 -0
- package/sdk/stream/aggregated_price_v1/response_pb.d.ts +82 -0
- package/sdk/stream/aggregated_price_v1/response_pb.js +562 -0
- package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.js +7 -1
- package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.js +7 -1
- package/sdk/stream/aggregates_ohlcv_v1/request_pb.js +7 -1
- package/sdk/stream/aggregates_ohlcv_v1/response_pb.js +7 -1
- package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.js +7 -1
- package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.js +7 -1
- package/sdk/stream/aggregates_vwap_v1/request_pb.js +7 -1
- package/sdk/stream/aggregates_vwap_v1/response_pb.js +7 -1
- package/sdk/stream/derivatives_price_v2/request_pb.js +7 -1
- package/sdk/stream/derivatives_price_v2/response_pb.js +7 -1
- package/sdk/stream/index_v1/commodity_pb.js +7 -1
- package/sdk/stream/index_v1/request_pb.js +7 -1
- package/sdk/stream/index_v1/response_pb.js +7 -1
- package/sdk/stream/market_update_v1/commodity_pb.js +7 -1
- package/sdk/stream/market_update_v1/request_pb.js +7 -1
- package/sdk/stream/market_update_v1/response_pb.js +7 -1
- package/sdk/stream/trades_v1/request_pb.js +7 -1
- package/sdk/stream/trades_v1/response_pb.js +7 -1
package/package.json
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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/core/envelope_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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 =
|
|
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 =
|
|
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
|
/**
|
package/sdk/core/response_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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 =
|
|
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 =
|
|
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
|
/**
|
package/sdk/core/source_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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);
|
package/sdk/core/wrappers_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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_grpc_pb.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
// file: sdk/sdk.proto
|
|
5
5
|
|
|
6
6
|
import * as sdk_sdk_pb from "../sdk/sdk_pb";
|
|
7
|
+
import * as sdk_stream_aggregated_price_v1_request_pb from "../sdk/stream/aggregated_price_v1/request_pb";
|
|
8
|
+
import * as sdk_stream_aggregated_price_v1_response_pb from "../sdk/stream/aggregated_price_v1/response_pb";
|
|
7
9
|
import * as sdk_stream_aggregates_ohlcv_v1_request_pb from "../sdk/stream/aggregates_ohlcv_v1/request_pb";
|
|
8
10
|
import * as sdk_stream_aggregates_ohlcv_v1_response_pb from "../sdk/stream/aggregates_ohlcv_v1/response_pb";
|
|
9
11
|
import * as sdk_stream_aggregates_vwap_v1_request_pb from "../sdk/stream/aggregates_vwap_v1/request_pb";
|
|
@@ -22,6 +24,22 @@ import * as sdk_stream_trades_v1_request_pb from "../sdk/stream/trades_v1/reques
|
|
|
22
24
|
import * as sdk_stream_trades_v1_response_pb from "../sdk/stream/trades_v1/response_pb";
|
|
23
25
|
import * as grpc from "@grpc/grpc-js";
|
|
24
26
|
|
|
27
|
+
interface IStreamAggregatedPriceServiceV1Service extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
28
|
+
subscribe: grpc.MethodDefinition<sdk_stream_aggregated_price_v1_request_pb.StreamAggregatedPriceRequestV1, sdk_stream_aggregated_price_v1_response_pb.StreamAggregatedPriceResponseV1>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const StreamAggregatedPriceServiceV1Service: IStreamAggregatedPriceServiceV1Service;
|
|
32
|
+
|
|
33
|
+
export interface IStreamAggregatedPriceServiceV1Server extends grpc.UntypedServiceImplementation {
|
|
34
|
+
subscribe: grpc.handleServerStreamingCall<sdk_stream_aggregated_price_v1_request_pb.StreamAggregatedPriceRequestV1, sdk_stream_aggregated_price_v1_response_pb.StreamAggregatedPriceResponseV1>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class StreamAggregatedPriceServiceV1Client extends grpc.Client {
|
|
38
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
39
|
+
subscribe(argument: sdk_stream_aggregated_price_v1_request_pb.StreamAggregatedPriceRequestV1, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream<sdk_stream_aggregated_price_v1_response_pb.StreamAggregatedPriceResponseV1>;
|
|
40
|
+
subscribe(argument: sdk_stream_aggregated_price_v1_request_pb.StreamAggregatedPriceRequestV1, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream<sdk_stream_aggregated_price_v1_response_pb.StreamAggregatedPriceResponseV1>;
|
|
41
|
+
}
|
|
42
|
+
|
|
25
43
|
interface IStreamAggregatesOHLCVServiceV1Service extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
26
44
|
subscribe: grpc.MethodDefinition<sdk_stream_aggregates_ohlcv_v1_request_pb.StreamAggregatesOHLCVRequestV1, sdk_stream_aggregates_ohlcv_v1_response_pb.StreamAggregatesOHLCVResponseV1>;
|
|
27
45
|
}
|
package/sdk/sdk_grpc_pb.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var sdk_stream_aggregated_price_v1_request_pb = require('../sdk/stream/aggregated_price_v1/request_pb.js');
|
|
6
|
+
var sdk_stream_aggregated_price_v1_response_pb = require('../sdk/stream/aggregated_price_v1/response_pb.js');
|
|
5
7
|
var sdk_stream_aggregates_ohlcv_v1_request_pb = require('../sdk/stream/aggregates_ohlcv_v1/request_pb.js');
|
|
6
8
|
var sdk_stream_aggregates_ohlcv_v1_response_pb = require('../sdk/stream/aggregates_ohlcv_v1/response_pb.js');
|
|
7
9
|
var sdk_stream_aggregates_vwap_v1_request_pb = require('../sdk/stream/aggregates_vwap_v1/request_pb.js');
|
|
@@ -19,6 +21,28 @@ var sdk_stream_market_update_v1_response_pb = require('../sdk/stream/market_upda
|
|
|
19
21
|
var sdk_stream_trades_v1_request_pb = require('../sdk/stream/trades_v1/request_pb.js');
|
|
20
22
|
var sdk_stream_trades_v1_response_pb = require('../sdk/stream/trades_v1/response_pb.js');
|
|
21
23
|
|
|
24
|
+
function serialize_kaikosdk_StreamAggregatedPriceRequestV1(arg) {
|
|
25
|
+
if (!(arg instanceof sdk_stream_aggregated_price_v1_request_pb.StreamAggregatedPriceRequestV1)) {
|
|
26
|
+
throw new Error('Expected argument of type kaikosdk.StreamAggregatedPriceRequestV1');
|
|
27
|
+
}
|
|
28
|
+
return Buffer.from(arg.serializeBinary());
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function deserialize_kaikosdk_StreamAggregatedPriceRequestV1(buffer_arg) {
|
|
32
|
+
return sdk_stream_aggregated_price_v1_request_pb.StreamAggregatedPriceRequestV1.deserializeBinary(new Uint8Array(buffer_arg));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function serialize_kaikosdk_StreamAggregatedPriceResponseV1(arg) {
|
|
36
|
+
if (!(arg instanceof sdk_stream_aggregated_price_v1_response_pb.StreamAggregatedPriceResponseV1)) {
|
|
37
|
+
throw new Error('Expected argument of type kaikosdk.StreamAggregatedPriceResponseV1');
|
|
38
|
+
}
|
|
39
|
+
return Buffer.from(arg.serializeBinary());
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function deserialize_kaikosdk_StreamAggregatedPriceResponseV1(buffer_arg) {
|
|
43
|
+
return sdk_stream_aggregated_price_v1_response_pb.StreamAggregatedPriceResponseV1.deserializeBinary(new Uint8Array(buffer_arg));
|
|
44
|
+
}
|
|
45
|
+
|
|
22
46
|
function serialize_kaikosdk_StreamAggregatesDirectExchangeRateRequestV1(arg) {
|
|
23
47
|
if (!(arg instanceof sdk_stream_aggregates_direct_exchange_rate_v1_request_pb.StreamAggregatesDirectExchangeRateRequestV1)) {
|
|
24
48
|
throw new Error('Expected argument of type kaikosdk.StreamAggregatesDirectExchangeRateRequestV1');
|
|
@@ -196,6 +220,23 @@ function deserialize_kaikosdk_StreamTradesResponseV1(buffer_arg) {
|
|
|
196
220
|
}
|
|
197
221
|
|
|
198
222
|
|
|
223
|
+
// Service for streaming Aggregated Price V1
|
|
224
|
+
var StreamAggregatedPriceServiceV1Service = exports.StreamAggregatedPriceServiceV1Service = {
|
|
225
|
+
// Subscribe
|
|
226
|
+
subscribe: {
|
|
227
|
+
path: '/kaikosdk.StreamAggregatedPriceServiceV1/Subscribe',
|
|
228
|
+
requestStream: false,
|
|
229
|
+
responseStream: true,
|
|
230
|
+
requestType: sdk_stream_aggregated_price_v1_request_pb.StreamAggregatedPriceRequestV1,
|
|
231
|
+
responseType: sdk_stream_aggregated_price_v1_response_pb.StreamAggregatedPriceResponseV1,
|
|
232
|
+
requestSerialize: serialize_kaikosdk_StreamAggregatedPriceRequestV1,
|
|
233
|
+
requestDeserialize: deserialize_kaikosdk_StreamAggregatedPriceRequestV1,
|
|
234
|
+
responseSerialize: serialize_kaikosdk_StreamAggregatedPriceResponseV1,
|
|
235
|
+
responseDeserialize: deserialize_kaikosdk_StreamAggregatedPriceResponseV1,
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
exports.StreamAggregatedPriceServiceV1Client = grpc.makeGenericClientConstructor(StreamAggregatedPriceServiceV1Service);
|
|
199
240
|
// Service for streaming OHLCV V1
|
|
200
241
|
var StreamAggregatesOHLCVServiceV1Service = exports.StreamAggregatesOHLCVServiceV1Service = {
|
|
201
242
|
// Subscribe
|
package/sdk/sdk_pb.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// file: sdk/sdk.proto
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as sdk_stream_aggregated_price_v1_request_pb from "../sdk/stream/aggregated_price_v1/request_pb";
|
|
6
|
+
import * as sdk_stream_aggregated_price_v1_response_pb from "../sdk/stream/aggregated_price_v1/response_pb";
|
|
5
7
|
import * as sdk_stream_aggregates_ohlcv_v1_request_pb from "../sdk/stream/aggregates_ohlcv_v1/request_pb";
|
|
6
8
|
import * as sdk_stream_aggregates_ohlcv_v1_response_pb from "../sdk/stream/aggregates_ohlcv_v1/response_pb";
|
|
7
9
|
import * as sdk_stream_aggregates_vwap_v1_request_pb from "../sdk/stream/aggregates_vwap_v1/request_pb";
|
package/sdk/sdk_pb.js
CHANGED
|
@@ -13,8 +13,18 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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
|
|
|
24
|
+
var sdk_stream_aggregated_price_v1_request_pb = require('../sdk/stream/aggregated_price_v1/request_pb.js');
|
|
25
|
+
goog.object.extend(proto, sdk_stream_aggregated_price_v1_request_pb);
|
|
26
|
+
var sdk_stream_aggregated_price_v1_response_pb = require('../sdk/stream/aggregated_price_v1/response_pb.js');
|
|
27
|
+
goog.object.extend(proto, sdk_stream_aggregated_price_v1_response_pb);
|
|
18
28
|
var sdk_stream_aggregates_ohlcv_v1_request_pb = require('../sdk/stream/aggregates_ohlcv_v1/request_pb.js');
|
|
19
29
|
goog.object.extend(proto, sdk_stream_aggregates_ohlcv_v1_request_pb);
|
|
20
30
|
var sdk_stream_aggregates_ohlcv_v1_response_pb = require('../sdk/stream/aggregates_ohlcv_v1/response_pb.js');
|
|
@@ -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/stream/aggregated_price_v1/request.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class StreamAggregatedPriceRequestV1 extends jspb.Message {
|
|
7
|
+
getInstrumentClass(): string;
|
|
8
|
+
setInstrumentClass(value: string): void;
|
|
9
|
+
|
|
10
|
+
getCode(): string;
|
|
11
|
+
setCode(value: string): void;
|
|
12
|
+
|
|
13
|
+
serializeBinary(): Uint8Array;
|
|
14
|
+
toObject(includeInstance?: boolean): StreamAggregatedPriceRequestV1.AsObject;
|
|
15
|
+
static toObject(includeInstance: boolean, msg: StreamAggregatedPriceRequestV1): StreamAggregatedPriceRequestV1.AsObject;
|
|
16
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
17
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
18
|
+
static serializeBinaryToWriter(message: StreamAggregatedPriceRequestV1, writer: jspb.BinaryWriter): void;
|
|
19
|
+
static deserializeBinary(bytes: Uint8Array): StreamAggregatedPriceRequestV1;
|
|
20
|
+
static deserializeBinaryFromReader(message: StreamAggregatedPriceRequestV1, reader: jspb.BinaryReader): StreamAggregatedPriceRequestV1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace StreamAggregatedPriceRequestV1 {
|
|
24
|
+
export type AsObject = {
|
|
25
|
+
instrumentClass: string,
|
|
26
|
+
code: string,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// source: sdk/stream/aggregated_price_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 = (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.StreamAggregatedPriceRequestV1', 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.StreamAggregatedPriceRequestV1 = function(opt_data) {
|
|
36
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
37
|
+
};
|
|
38
|
+
goog.inherits(proto.kaikosdk.StreamAggregatedPriceRequestV1, jspb.Message);
|
|
39
|
+
if (goog.DEBUG && !COMPILED) {
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @override
|
|
43
|
+
*/
|
|
44
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.displayName = 'proto.kaikosdk.StreamAggregatedPriceRequestV1';
|
|
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.StreamAggregatedPriceRequestV1.prototype.toObject = function(opt_includeInstance) {
|
|
63
|
+
return proto.kaikosdk.StreamAggregatedPriceRequestV1.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.StreamAggregatedPriceRequestV1} msg The msg instance to transform.
|
|
73
|
+
* @return {!Object}
|
|
74
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75
|
+
*/
|
|
76
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.toObject = function(includeInstance, msg) {
|
|
77
|
+
var f, obj = {
|
|
78
|
+
instrumentClass: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
79
|
+
code: 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.StreamAggregatedPriceRequestV1}
|
|
94
|
+
*/
|
|
95
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.deserializeBinary = function(bytes) {
|
|
96
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
97
|
+
var msg = new proto.kaikosdk.StreamAggregatedPriceRequestV1;
|
|
98
|
+
return proto.kaikosdk.StreamAggregatedPriceRequestV1.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.StreamAggregatedPriceRequestV1} msg The message object to deserialize into.
|
|
106
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
107
|
+
* @return {!proto.kaikosdk.StreamAggregatedPriceRequestV1}
|
|
108
|
+
*/
|
|
109
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.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.setInstrumentClass(value);
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
var value = /** @type {string} */ (reader.readString());
|
|
122
|
+
msg.setCode(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.StreamAggregatedPriceRequestV1.prototype.serializeBinary = function() {
|
|
138
|
+
var writer = new jspb.BinaryWriter();
|
|
139
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.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.StreamAggregatedPriceRequestV1} message
|
|
148
|
+
* @param {!jspb.BinaryWriter} writer
|
|
149
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
150
|
+
*/
|
|
151
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.serializeBinaryToWriter = function(message, writer) {
|
|
152
|
+
var f = undefined;
|
|
153
|
+
f = message.getInstrumentClass();
|
|
154
|
+
if (f.length > 0) {
|
|
155
|
+
writer.writeString(
|
|
156
|
+
1,
|
|
157
|
+
f
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
f = message.getCode();
|
|
161
|
+
if (f.length > 0) {
|
|
162
|
+
writer.writeString(
|
|
163
|
+
2,
|
|
164
|
+
f
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* optional string instrument_class = 1;
|
|
172
|
+
* @return {string}
|
|
173
|
+
*/
|
|
174
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.prototype.getInstrumentClass = function() {
|
|
175
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {string} value
|
|
181
|
+
* @return {!proto.kaikosdk.StreamAggregatedPriceRequestV1} returns this
|
|
182
|
+
*/
|
|
183
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.prototype.setInstrumentClass = function(value) {
|
|
184
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* optional string code = 2;
|
|
190
|
+
* @return {string}
|
|
191
|
+
*/
|
|
192
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.prototype.getCode = function() {
|
|
193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @param {string} value
|
|
199
|
+
* @return {!proto.kaikosdk.StreamAggregatedPriceRequestV1} returns this
|
|
200
|
+
*/
|
|
201
|
+
proto.kaikosdk.StreamAggregatedPriceRequestV1.prototype.setCode = 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,82 @@
|
|
|
1
|
+
// package: kaikosdk
|
|
2
|
+
// file: sdk/stream/aggregated_price_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
|
+
|
|
7
|
+
export class StreamAggregatedPriceValue extends jspb.Message {
|
|
8
|
+
getPrice(): string;
|
|
9
|
+
setPrice(value: string): void;
|
|
10
|
+
|
|
11
|
+
getVolume(): string;
|
|
12
|
+
setVolume(value: string): void;
|
|
13
|
+
|
|
14
|
+
serializeBinary(): Uint8Array;
|
|
15
|
+
toObject(includeInstance?: boolean): StreamAggregatedPriceValue.AsObject;
|
|
16
|
+
static toObject(includeInstance: boolean, msg: StreamAggregatedPriceValue): StreamAggregatedPriceValue.AsObject;
|
|
17
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
18
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
19
|
+
static serializeBinaryToWriter(message: StreamAggregatedPriceValue, writer: jspb.BinaryWriter): void;
|
|
20
|
+
static deserializeBinary(bytes: Uint8Array): StreamAggregatedPriceValue;
|
|
21
|
+
static deserializeBinaryFromReader(message: StreamAggregatedPriceValue, reader: jspb.BinaryReader): StreamAggregatedPriceValue;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export namespace StreamAggregatedPriceValue {
|
|
25
|
+
export type AsObject = {
|
|
26
|
+
price: string,
|
|
27
|
+
volume: string,
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class StreamAggregatedPriceResponseV1 extends jspb.Message {
|
|
32
|
+
getAggregate(): string;
|
|
33
|
+
setAggregate(value: string): void;
|
|
34
|
+
|
|
35
|
+
getInstrumentClass(): string;
|
|
36
|
+
setInstrumentClass(value: string): void;
|
|
37
|
+
|
|
38
|
+
getCode(): string;
|
|
39
|
+
setCode(value: string): void;
|
|
40
|
+
|
|
41
|
+
hasValue(): boolean;
|
|
42
|
+
clearValue(): void;
|
|
43
|
+
getValue(): StreamAggregatedPriceValue | undefined;
|
|
44
|
+
setValue(value?: StreamAggregatedPriceValue): void;
|
|
45
|
+
|
|
46
|
+
getEventType(): StreamAggregatedPriceResponseV1.EventTypeMap[keyof StreamAggregatedPriceResponseV1.EventTypeMap];
|
|
47
|
+
setEventType(value: StreamAggregatedPriceResponseV1.EventTypeMap[keyof StreamAggregatedPriceResponseV1.EventTypeMap]): void;
|
|
48
|
+
|
|
49
|
+
hasTsEvent(): boolean;
|
|
50
|
+
clearTsEvent(): void;
|
|
51
|
+
getTsEvent(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
52
|
+
setTsEvent(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
53
|
+
|
|
54
|
+
serializeBinary(): Uint8Array;
|
|
55
|
+
toObject(includeInstance?: boolean): StreamAggregatedPriceResponseV1.AsObject;
|
|
56
|
+
static toObject(includeInstance: boolean, msg: StreamAggregatedPriceResponseV1): StreamAggregatedPriceResponseV1.AsObject;
|
|
57
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
58
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
59
|
+
static serializeBinaryToWriter(message: StreamAggregatedPriceResponseV1, writer: jspb.BinaryWriter): void;
|
|
60
|
+
static deserializeBinary(bytes: Uint8Array): StreamAggregatedPriceResponseV1;
|
|
61
|
+
static deserializeBinaryFromReader(message: StreamAggregatedPriceResponseV1, reader: jspb.BinaryReader): StreamAggregatedPriceResponseV1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace StreamAggregatedPriceResponseV1 {
|
|
65
|
+
export type AsObject = {
|
|
66
|
+
aggregate: string,
|
|
67
|
+
instrumentClass: string,
|
|
68
|
+
code: string,
|
|
69
|
+
value?: StreamAggregatedPriceValue.AsObject,
|
|
70
|
+
eventType: StreamAggregatedPriceResponseV1.EventTypeMap[keyof StreamAggregatedPriceResponseV1.EventTypeMap],
|
|
71
|
+
tsEvent?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface EventTypeMap {
|
|
75
|
+
UNKNOWN: 0;
|
|
76
|
+
BEST_ASK: 1;
|
|
77
|
+
BEST_BID: 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const EventType: EventTypeMap;
|
|
81
|
+
}
|
|
82
|
+
|