@marleena/trb-proto 0.1.0 → 0.1.2
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/README.md +28 -23
- package/gen/js-ts/clickhouse/Clickhouse_grpcServiceClientPb.ts +108 -0
- package/gen/js-ts/clickhouse/clickhouse_grpc_pb.d.ts +464 -0
- package/gen/js-ts/db_api/Db_apiServiceClientPb.ts +215 -0
- package/gen/js-ts/db_api/db_api_pb.d.ts +406 -0
- package/gen/js-ts/db_api/db_api_pb.js +3371 -0
- package/gen/js-ts/example/ExampleServiceClientPb.ts +108 -0
- package/gen/js-ts/example/Example_pb.d.ts +77 -0
- package/gen/js-ts/manager_indicators/Manager_indicatorsServiceClientPb.ts +86 -0
- package/gen/js-ts/manager_indicators/manager_indicators_pb.d.ts +190 -0
- package/gen/js-ts/moex/MoexServiceClientPb.ts +86 -0
- package/gen/js-ts/moex/moex_pb.d.ts +53 -0
- package/gen/js-ts/nats/ManagerServiceClientPb.ts +1032 -0
- package/gen/js-ts/nats/manager_pb.d.ts +1416 -0
- package/gen/js-ts/nats/manager_pb.js +394 -0
- package/gen/js-ts/tinvest/InstrumentsServiceClientPb.ts +1892 -0
- package/gen/js-ts/tinvest/MarketdataServiceClientPb.ts +473 -0
- package/gen/js-ts/tinvest/OperationsServiceClientPb.ts +431 -0
- package/gen/js-ts/tinvest/OrdersServiceClientPb.ts +452 -0
- package/gen/js-ts/tinvest/SandboxServiceClientPb.ts +907 -0
- package/gen/js-ts/tinvest/SignalsServiceClientPb.ts +129 -0
- package/gen/js-ts/tinvest/StopordersServiceClientPb.ts +172 -0
- package/gen/js-ts/tinvest/UsersServiceClientPb.ts +387 -0
- package/gen/js-ts/tinvest/common_pb.d.ts +314 -0
- package/gen/js-ts/tinvest/instruments_pb.d.ts +6373 -0
- package/gen/js-ts/tinvest/marketdata_pb.d.ts +2397 -0
- package/gen/js-ts/tinvest/operations_pb.d.ts +2380 -0
- package/gen/js-ts/tinvest/orders_pb.d.ts +1555 -0
- package/gen/js-ts/tinvest/sandbox_pb.d.ts +129 -0
- package/gen/js-ts/tinvest/signals_pb.d.ts +408 -0
- package/gen/js-ts/tinvest/stoporders_pb.d.ts +493 -0
- package/gen/js-ts/tinvest/users_pb.d.ts +611 -0
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for tinkoff.public.invest.api.contract.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v7.34.1
|
|
11
|
+
// source: tinvest/signals.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as tinvest_signals_pb from '../tinvest/signals_pb'; // proto import: "tinvest/signals.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class SignalServiceClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'binary';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorGetStrategies = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/tinkoff.public.invest.api.contract.v1.SignalService/GetStrategies',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
tinvest_signals_pb.GetStrategiesRequest,
|
|
46
|
+
tinvest_signals_pb.GetStrategiesResponse,
|
|
47
|
+
(request: tinvest_signals_pb.GetStrategiesRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
tinvest_signals_pb.GetStrategiesResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
getStrategies(
|
|
54
|
+
request: tinvest_signals_pb.GetStrategiesRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_signals_pb.GetStrategiesResponse>;
|
|
56
|
+
|
|
57
|
+
getStrategies(
|
|
58
|
+
request: tinvest_signals_pb.GetStrategiesRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: tinvest_signals_pb.GetStrategiesResponse) => void): grpcWeb.ClientReadableStream<tinvest_signals_pb.GetStrategiesResponse>;
|
|
62
|
+
|
|
63
|
+
getStrategies(
|
|
64
|
+
request: tinvest_signals_pb.GetStrategiesRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: tinvest_signals_pb.GetStrategiesResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/tinkoff.public.invest.api.contract.v1.SignalService/GetStrategies',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorGetStrategies,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/tinkoff.public.invest.api.contract.v1.SignalService/GetStrategies',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorGetStrategies);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorGetSignals = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/tinkoff.public.invest.api.contract.v1.SignalService/GetSignals',
|
|
87
|
+
grpcWeb.MethodType.UNARY,
|
|
88
|
+
tinvest_signals_pb.GetSignalsRequest,
|
|
89
|
+
tinvest_signals_pb.GetSignalsResponse,
|
|
90
|
+
(request: tinvest_signals_pb.GetSignalsRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
tinvest_signals_pb.GetSignalsResponse.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
getSignals(
|
|
97
|
+
request: tinvest_signals_pb.GetSignalsRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_signals_pb.GetSignalsResponse>;
|
|
99
|
+
|
|
100
|
+
getSignals(
|
|
101
|
+
request: tinvest_signals_pb.GetSignalsRequest,
|
|
102
|
+
metadata: grpcWeb.Metadata | null,
|
|
103
|
+
callback: (err: grpcWeb.RpcError,
|
|
104
|
+
response: tinvest_signals_pb.GetSignalsResponse) => void): grpcWeb.ClientReadableStream<tinvest_signals_pb.GetSignalsResponse>;
|
|
105
|
+
|
|
106
|
+
getSignals(
|
|
107
|
+
request: tinvest_signals_pb.GetSignalsRequest,
|
|
108
|
+
metadata?: grpcWeb.Metadata | null,
|
|
109
|
+
callback?: (err: grpcWeb.RpcError,
|
|
110
|
+
response: tinvest_signals_pb.GetSignalsResponse) => void) {
|
|
111
|
+
if (callback !== undefined) {
|
|
112
|
+
return this.client_.rpcCall(
|
|
113
|
+
this.hostname_ +
|
|
114
|
+
'/tinkoff.public.invest.api.contract.v1.SignalService/GetSignals',
|
|
115
|
+
request,
|
|
116
|
+
metadata || {},
|
|
117
|
+
this.methodDescriptorGetSignals,
|
|
118
|
+
callback);
|
|
119
|
+
}
|
|
120
|
+
return this.client_.unaryCall(
|
|
121
|
+
this.hostname_ +
|
|
122
|
+
'/tinkoff.public.invest.api.contract.v1.SignalService/GetSignals',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
this.methodDescriptorGetSignals);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for tinkoff.public.invest.api.contract.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v7.34.1
|
|
11
|
+
// source: tinvest/stoporders.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as tinvest_stoporders_pb from '../tinvest/stoporders_pb'; // proto import: "tinvest/stoporders.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class StopOrdersServiceClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'binary';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorPostStopOrder = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/PostStopOrder',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
tinvest_stoporders_pb.PostStopOrderRequest,
|
|
46
|
+
tinvest_stoporders_pb.PostStopOrderResponse,
|
|
47
|
+
(request: tinvest_stoporders_pb.PostStopOrderRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
tinvest_stoporders_pb.PostStopOrderResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
postStopOrder(
|
|
54
|
+
request: tinvest_stoporders_pb.PostStopOrderRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_stoporders_pb.PostStopOrderResponse>;
|
|
56
|
+
|
|
57
|
+
postStopOrder(
|
|
58
|
+
request: tinvest_stoporders_pb.PostStopOrderRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: tinvest_stoporders_pb.PostStopOrderResponse) => void): grpcWeb.ClientReadableStream<tinvest_stoporders_pb.PostStopOrderResponse>;
|
|
62
|
+
|
|
63
|
+
postStopOrder(
|
|
64
|
+
request: tinvest_stoporders_pb.PostStopOrderRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: tinvest_stoporders_pb.PostStopOrderResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/PostStopOrder',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorPostStopOrder,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/PostStopOrder',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorPostStopOrder);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorGetStopOrders = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/GetStopOrders',
|
|
87
|
+
grpcWeb.MethodType.UNARY,
|
|
88
|
+
tinvest_stoporders_pb.GetStopOrdersRequest,
|
|
89
|
+
tinvest_stoporders_pb.GetStopOrdersResponse,
|
|
90
|
+
(request: tinvest_stoporders_pb.GetStopOrdersRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
tinvest_stoporders_pb.GetStopOrdersResponse.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
getStopOrders(
|
|
97
|
+
request: tinvest_stoporders_pb.GetStopOrdersRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_stoporders_pb.GetStopOrdersResponse>;
|
|
99
|
+
|
|
100
|
+
getStopOrders(
|
|
101
|
+
request: tinvest_stoporders_pb.GetStopOrdersRequest,
|
|
102
|
+
metadata: grpcWeb.Metadata | null,
|
|
103
|
+
callback: (err: grpcWeb.RpcError,
|
|
104
|
+
response: tinvest_stoporders_pb.GetStopOrdersResponse) => void): grpcWeb.ClientReadableStream<tinvest_stoporders_pb.GetStopOrdersResponse>;
|
|
105
|
+
|
|
106
|
+
getStopOrders(
|
|
107
|
+
request: tinvest_stoporders_pb.GetStopOrdersRequest,
|
|
108
|
+
metadata?: grpcWeb.Metadata | null,
|
|
109
|
+
callback?: (err: grpcWeb.RpcError,
|
|
110
|
+
response: tinvest_stoporders_pb.GetStopOrdersResponse) => void) {
|
|
111
|
+
if (callback !== undefined) {
|
|
112
|
+
return this.client_.rpcCall(
|
|
113
|
+
this.hostname_ +
|
|
114
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/GetStopOrders',
|
|
115
|
+
request,
|
|
116
|
+
metadata || {},
|
|
117
|
+
this.methodDescriptorGetStopOrders,
|
|
118
|
+
callback);
|
|
119
|
+
}
|
|
120
|
+
return this.client_.unaryCall(
|
|
121
|
+
this.hostname_ +
|
|
122
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/GetStopOrders',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
this.methodDescriptorGetStopOrders);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
methodDescriptorCancelStopOrder = new grpcWeb.MethodDescriptor(
|
|
129
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/CancelStopOrder',
|
|
130
|
+
grpcWeb.MethodType.UNARY,
|
|
131
|
+
tinvest_stoporders_pb.CancelStopOrderRequest,
|
|
132
|
+
tinvest_stoporders_pb.CancelStopOrderResponse,
|
|
133
|
+
(request: tinvest_stoporders_pb.CancelStopOrderRequest) => {
|
|
134
|
+
return request.serializeBinary();
|
|
135
|
+
},
|
|
136
|
+
tinvest_stoporders_pb.CancelStopOrderResponse.deserializeBinary
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
cancelStopOrder(
|
|
140
|
+
request: tinvest_stoporders_pb.CancelStopOrderRequest,
|
|
141
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_stoporders_pb.CancelStopOrderResponse>;
|
|
142
|
+
|
|
143
|
+
cancelStopOrder(
|
|
144
|
+
request: tinvest_stoporders_pb.CancelStopOrderRequest,
|
|
145
|
+
metadata: grpcWeb.Metadata | null,
|
|
146
|
+
callback: (err: grpcWeb.RpcError,
|
|
147
|
+
response: tinvest_stoporders_pb.CancelStopOrderResponse) => void): grpcWeb.ClientReadableStream<tinvest_stoporders_pb.CancelStopOrderResponse>;
|
|
148
|
+
|
|
149
|
+
cancelStopOrder(
|
|
150
|
+
request: tinvest_stoporders_pb.CancelStopOrderRequest,
|
|
151
|
+
metadata?: grpcWeb.Metadata | null,
|
|
152
|
+
callback?: (err: grpcWeb.RpcError,
|
|
153
|
+
response: tinvest_stoporders_pb.CancelStopOrderResponse) => void) {
|
|
154
|
+
if (callback !== undefined) {
|
|
155
|
+
return this.client_.rpcCall(
|
|
156
|
+
this.hostname_ +
|
|
157
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/CancelStopOrder',
|
|
158
|
+
request,
|
|
159
|
+
metadata || {},
|
|
160
|
+
this.methodDescriptorCancelStopOrder,
|
|
161
|
+
callback);
|
|
162
|
+
}
|
|
163
|
+
return this.client_.unaryCall(
|
|
164
|
+
this.hostname_ +
|
|
165
|
+
'/tinkoff.public.invest.api.contract.v1.StopOrdersService/CancelStopOrder',
|
|
166
|
+
request,
|
|
167
|
+
metadata || {},
|
|
168
|
+
this.methodDescriptorCancelStopOrder);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
}
|
|
172
|
+
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for tinkoff.public.invest.api.contract.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v7.34.1
|
|
11
|
+
// source: tinvest/users.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as tinvest_users_pb from '../tinvest/users_pb'; // proto import: "tinvest/users.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class UsersServiceClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'binary';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorGetAccounts = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetAccounts',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
tinvest_users_pb.GetAccountsRequest,
|
|
46
|
+
tinvest_users_pb.GetAccountsResponse,
|
|
47
|
+
(request: tinvest_users_pb.GetAccountsRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
tinvest_users_pb.GetAccountsResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
getAccounts(
|
|
54
|
+
request: tinvest_users_pb.GetAccountsRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.GetAccountsResponse>;
|
|
56
|
+
|
|
57
|
+
getAccounts(
|
|
58
|
+
request: tinvest_users_pb.GetAccountsRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: tinvest_users_pb.GetAccountsResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.GetAccountsResponse>;
|
|
62
|
+
|
|
63
|
+
getAccounts(
|
|
64
|
+
request: tinvest_users_pb.GetAccountsRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: tinvest_users_pb.GetAccountsResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetAccounts',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorGetAccounts,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetAccounts',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorGetAccounts);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorGetMarginAttributes = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetMarginAttributes',
|
|
87
|
+
grpcWeb.MethodType.UNARY,
|
|
88
|
+
tinvest_users_pb.GetMarginAttributesRequest,
|
|
89
|
+
tinvest_users_pb.GetMarginAttributesResponse,
|
|
90
|
+
(request: tinvest_users_pb.GetMarginAttributesRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
tinvest_users_pb.GetMarginAttributesResponse.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
getMarginAttributes(
|
|
97
|
+
request: tinvest_users_pb.GetMarginAttributesRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.GetMarginAttributesResponse>;
|
|
99
|
+
|
|
100
|
+
getMarginAttributes(
|
|
101
|
+
request: tinvest_users_pb.GetMarginAttributesRequest,
|
|
102
|
+
metadata: grpcWeb.Metadata | null,
|
|
103
|
+
callback: (err: grpcWeb.RpcError,
|
|
104
|
+
response: tinvest_users_pb.GetMarginAttributesResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.GetMarginAttributesResponse>;
|
|
105
|
+
|
|
106
|
+
getMarginAttributes(
|
|
107
|
+
request: tinvest_users_pb.GetMarginAttributesRequest,
|
|
108
|
+
metadata?: grpcWeb.Metadata | null,
|
|
109
|
+
callback?: (err: grpcWeb.RpcError,
|
|
110
|
+
response: tinvest_users_pb.GetMarginAttributesResponse) => void) {
|
|
111
|
+
if (callback !== undefined) {
|
|
112
|
+
return this.client_.rpcCall(
|
|
113
|
+
this.hostname_ +
|
|
114
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetMarginAttributes',
|
|
115
|
+
request,
|
|
116
|
+
metadata || {},
|
|
117
|
+
this.methodDescriptorGetMarginAttributes,
|
|
118
|
+
callback);
|
|
119
|
+
}
|
|
120
|
+
return this.client_.unaryCall(
|
|
121
|
+
this.hostname_ +
|
|
122
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetMarginAttributes',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
this.methodDescriptorGetMarginAttributes);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
methodDescriptorGetUserTariff = new grpcWeb.MethodDescriptor(
|
|
129
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetUserTariff',
|
|
130
|
+
grpcWeb.MethodType.UNARY,
|
|
131
|
+
tinvest_users_pb.GetUserTariffRequest,
|
|
132
|
+
tinvest_users_pb.GetUserTariffResponse,
|
|
133
|
+
(request: tinvest_users_pb.GetUserTariffRequest) => {
|
|
134
|
+
return request.serializeBinary();
|
|
135
|
+
},
|
|
136
|
+
tinvest_users_pb.GetUserTariffResponse.deserializeBinary
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
getUserTariff(
|
|
140
|
+
request: tinvest_users_pb.GetUserTariffRequest,
|
|
141
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.GetUserTariffResponse>;
|
|
142
|
+
|
|
143
|
+
getUserTariff(
|
|
144
|
+
request: tinvest_users_pb.GetUserTariffRequest,
|
|
145
|
+
metadata: grpcWeb.Metadata | null,
|
|
146
|
+
callback: (err: grpcWeb.RpcError,
|
|
147
|
+
response: tinvest_users_pb.GetUserTariffResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.GetUserTariffResponse>;
|
|
148
|
+
|
|
149
|
+
getUserTariff(
|
|
150
|
+
request: tinvest_users_pb.GetUserTariffRequest,
|
|
151
|
+
metadata?: grpcWeb.Metadata | null,
|
|
152
|
+
callback?: (err: grpcWeb.RpcError,
|
|
153
|
+
response: tinvest_users_pb.GetUserTariffResponse) => void) {
|
|
154
|
+
if (callback !== undefined) {
|
|
155
|
+
return this.client_.rpcCall(
|
|
156
|
+
this.hostname_ +
|
|
157
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetUserTariff',
|
|
158
|
+
request,
|
|
159
|
+
metadata || {},
|
|
160
|
+
this.methodDescriptorGetUserTariff,
|
|
161
|
+
callback);
|
|
162
|
+
}
|
|
163
|
+
return this.client_.unaryCall(
|
|
164
|
+
this.hostname_ +
|
|
165
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetUserTariff',
|
|
166
|
+
request,
|
|
167
|
+
metadata || {},
|
|
168
|
+
this.methodDescriptorGetUserTariff);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
methodDescriptorGetInfo = new grpcWeb.MethodDescriptor(
|
|
172
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetInfo',
|
|
173
|
+
grpcWeb.MethodType.UNARY,
|
|
174
|
+
tinvest_users_pb.GetInfoRequest,
|
|
175
|
+
tinvest_users_pb.GetInfoResponse,
|
|
176
|
+
(request: tinvest_users_pb.GetInfoRequest) => {
|
|
177
|
+
return request.serializeBinary();
|
|
178
|
+
},
|
|
179
|
+
tinvest_users_pb.GetInfoResponse.deserializeBinary
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
getInfo(
|
|
183
|
+
request: tinvest_users_pb.GetInfoRequest,
|
|
184
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.GetInfoResponse>;
|
|
185
|
+
|
|
186
|
+
getInfo(
|
|
187
|
+
request: tinvest_users_pb.GetInfoRequest,
|
|
188
|
+
metadata: grpcWeb.Metadata | null,
|
|
189
|
+
callback: (err: grpcWeb.RpcError,
|
|
190
|
+
response: tinvest_users_pb.GetInfoResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.GetInfoResponse>;
|
|
191
|
+
|
|
192
|
+
getInfo(
|
|
193
|
+
request: tinvest_users_pb.GetInfoRequest,
|
|
194
|
+
metadata?: grpcWeb.Metadata | null,
|
|
195
|
+
callback?: (err: grpcWeb.RpcError,
|
|
196
|
+
response: tinvest_users_pb.GetInfoResponse) => void) {
|
|
197
|
+
if (callback !== undefined) {
|
|
198
|
+
return this.client_.rpcCall(
|
|
199
|
+
this.hostname_ +
|
|
200
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetInfo',
|
|
201
|
+
request,
|
|
202
|
+
metadata || {},
|
|
203
|
+
this.methodDescriptorGetInfo,
|
|
204
|
+
callback);
|
|
205
|
+
}
|
|
206
|
+
return this.client_.unaryCall(
|
|
207
|
+
this.hostname_ +
|
|
208
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetInfo',
|
|
209
|
+
request,
|
|
210
|
+
metadata || {},
|
|
211
|
+
this.methodDescriptorGetInfo);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
methodDescriptorGetBankAccounts = new grpcWeb.MethodDescriptor(
|
|
215
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetBankAccounts',
|
|
216
|
+
grpcWeb.MethodType.UNARY,
|
|
217
|
+
tinvest_users_pb.GetBankAccountsRequest,
|
|
218
|
+
tinvest_users_pb.GetBankAccountsResponse,
|
|
219
|
+
(request: tinvest_users_pb.GetBankAccountsRequest) => {
|
|
220
|
+
return request.serializeBinary();
|
|
221
|
+
},
|
|
222
|
+
tinvest_users_pb.GetBankAccountsResponse.deserializeBinary
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
getBankAccounts(
|
|
226
|
+
request: tinvest_users_pb.GetBankAccountsRequest,
|
|
227
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.GetBankAccountsResponse>;
|
|
228
|
+
|
|
229
|
+
getBankAccounts(
|
|
230
|
+
request: tinvest_users_pb.GetBankAccountsRequest,
|
|
231
|
+
metadata: grpcWeb.Metadata | null,
|
|
232
|
+
callback: (err: grpcWeb.RpcError,
|
|
233
|
+
response: tinvest_users_pb.GetBankAccountsResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.GetBankAccountsResponse>;
|
|
234
|
+
|
|
235
|
+
getBankAccounts(
|
|
236
|
+
request: tinvest_users_pb.GetBankAccountsRequest,
|
|
237
|
+
metadata?: grpcWeb.Metadata | null,
|
|
238
|
+
callback?: (err: grpcWeb.RpcError,
|
|
239
|
+
response: tinvest_users_pb.GetBankAccountsResponse) => void) {
|
|
240
|
+
if (callback !== undefined) {
|
|
241
|
+
return this.client_.rpcCall(
|
|
242
|
+
this.hostname_ +
|
|
243
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetBankAccounts',
|
|
244
|
+
request,
|
|
245
|
+
metadata || {},
|
|
246
|
+
this.methodDescriptorGetBankAccounts,
|
|
247
|
+
callback);
|
|
248
|
+
}
|
|
249
|
+
return this.client_.unaryCall(
|
|
250
|
+
this.hostname_ +
|
|
251
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetBankAccounts',
|
|
252
|
+
request,
|
|
253
|
+
metadata || {},
|
|
254
|
+
this.methodDescriptorGetBankAccounts);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
methodDescriptorCurrencyTransfer = new grpcWeb.MethodDescriptor(
|
|
258
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/CurrencyTransfer',
|
|
259
|
+
grpcWeb.MethodType.UNARY,
|
|
260
|
+
tinvest_users_pb.CurrencyTransferRequest,
|
|
261
|
+
tinvest_users_pb.CurrencyTransferResponse,
|
|
262
|
+
(request: tinvest_users_pb.CurrencyTransferRequest) => {
|
|
263
|
+
return request.serializeBinary();
|
|
264
|
+
},
|
|
265
|
+
tinvest_users_pb.CurrencyTransferResponse.deserializeBinary
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
currencyTransfer(
|
|
269
|
+
request: tinvest_users_pb.CurrencyTransferRequest,
|
|
270
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.CurrencyTransferResponse>;
|
|
271
|
+
|
|
272
|
+
currencyTransfer(
|
|
273
|
+
request: tinvest_users_pb.CurrencyTransferRequest,
|
|
274
|
+
metadata: grpcWeb.Metadata | null,
|
|
275
|
+
callback: (err: grpcWeb.RpcError,
|
|
276
|
+
response: tinvest_users_pb.CurrencyTransferResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.CurrencyTransferResponse>;
|
|
277
|
+
|
|
278
|
+
currencyTransfer(
|
|
279
|
+
request: tinvest_users_pb.CurrencyTransferRequest,
|
|
280
|
+
metadata?: grpcWeb.Metadata | null,
|
|
281
|
+
callback?: (err: grpcWeb.RpcError,
|
|
282
|
+
response: tinvest_users_pb.CurrencyTransferResponse) => void) {
|
|
283
|
+
if (callback !== undefined) {
|
|
284
|
+
return this.client_.rpcCall(
|
|
285
|
+
this.hostname_ +
|
|
286
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/CurrencyTransfer',
|
|
287
|
+
request,
|
|
288
|
+
metadata || {},
|
|
289
|
+
this.methodDescriptorCurrencyTransfer,
|
|
290
|
+
callback);
|
|
291
|
+
}
|
|
292
|
+
return this.client_.unaryCall(
|
|
293
|
+
this.hostname_ +
|
|
294
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/CurrencyTransfer',
|
|
295
|
+
request,
|
|
296
|
+
metadata || {},
|
|
297
|
+
this.methodDescriptorCurrencyTransfer);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
methodDescriptorPayIn = new grpcWeb.MethodDescriptor(
|
|
301
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/PayIn',
|
|
302
|
+
grpcWeb.MethodType.UNARY,
|
|
303
|
+
tinvest_users_pb.PayInRequest,
|
|
304
|
+
tinvest_users_pb.PayInResponse,
|
|
305
|
+
(request: tinvest_users_pb.PayInRequest) => {
|
|
306
|
+
return request.serializeBinary();
|
|
307
|
+
},
|
|
308
|
+
tinvest_users_pb.PayInResponse.deserializeBinary
|
|
309
|
+
);
|
|
310
|
+
|
|
311
|
+
payIn(
|
|
312
|
+
request: tinvest_users_pb.PayInRequest,
|
|
313
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.PayInResponse>;
|
|
314
|
+
|
|
315
|
+
payIn(
|
|
316
|
+
request: tinvest_users_pb.PayInRequest,
|
|
317
|
+
metadata: grpcWeb.Metadata | null,
|
|
318
|
+
callback: (err: grpcWeb.RpcError,
|
|
319
|
+
response: tinvest_users_pb.PayInResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.PayInResponse>;
|
|
320
|
+
|
|
321
|
+
payIn(
|
|
322
|
+
request: tinvest_users_pb.PayInRequest,
|
|
323
|
+
metadata?: grpcWeb.Metadata | null,
|
|
324
|
+
callback?: (err: grpcWeb.RpcError,
|
|
325
|
+
response: tinvest_users_pb.PayInResponse) => void) {
|
|
326
|
+
if (callback !== undefined) {
|
|
327
|
+
return this.client_.rpcCall(
|
|
328
|
+
this.hostname_ +
|
|
329
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/PayIn',
|
|
330
|
+
request,
|
|
331
|
+
metadata || {},
|
|
332
|
+
this.methodDescriptorPayIn,
|
|
333
|
+
callback);
|
|
334
|
+
}
|
|
335
|
+
return this.client_.unaryCall(
|
|
336
|
+
this.hostname_ +
|
|
337
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/PayIn',
|
|
338
|
+
request,
|
|
339
|
+
metadata || {},
|
|
340
|
+
this.methodDescriptorPayIn);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
methodDescriptorGetAccountValues = new grpcWeb.MethodDescriptor(
|
|
344
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetAccountValues',
|
|
345
|
+
grpcWeb.MethodType.UNARY,
|
|
346
|
+
tinvest_users_pb.GetAccountValuesRequest,
|
|
347
|
+
tinvest_users_pb.GetAccountValuesResponse,
|
|
348
|
+
(request: tinvest_users_pb.GetAccountValuesRequest) => {
|
|
349
|
+
return request.serializeBinary();
|
|
350
|
+
},
|
|
351
|
+
tinvest_users_pb.GetAccountValuesResponse.deserializeBinary
|
|
352
|
+
);
|
|
353
|
+
|
|
354
|
+
getAccountValues(
|
|
355
|
+
request: tinvest_users_pb.GetAccountValuesRequest,
|
|
356
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_users_pb.GetAccountValuesResponse>;
|
|
357
|
+
|
|
358
|
+
getAccountValues(
|
|
359
|
+
request: tinvest_users_pb.GetAccountValuesRequest,
|
|
360
|
+
metadata: grpcWeb.Metadata | null,
|
|
361
|
+
callback: (err: grpcWeb.RpcError,
|
|
362
|
+
response: tinvest_users_pb.GetAccountValuesResponse) => void): grpcWeb.ClientReadableStream<tinvest_users_pb.GetAccountValuesResponse>;
|
|
363
|
+
|
|
364
|
+
getAccountValues(
|
|
365
|
+
request: tinvest_users_pb.GetAccountValuesRequest,
|
|
366
|
+
metadata?: grpcWeb.Metadata | null,
|
|
367
|
+
callback?: (err: grpcWeb.RpcError,
|
|
368
|
+
response: tinvest_users_pb.GetAccountValuesResponse) => void) {
|
|
369
|
+
if (callback !== undefined) {
|
|
370
|
+
return this.client_.rpcCall(
|
|
371
|
+
this.hostname_ +
|
|
372
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetAccountValues',
|
|
373
|
+
request,
|
|
374
|
+
metadata || {},
|
|
375
|
+
this.methodDescriptorGetAccountValues,
|
|
376
|
+
callback);
|
|
377
|
+
}
|
|
378
|
+
return this.client_.unaryCall(
|
|
379
|
+
this.hostname_ +
|
|
380
|
+
'/tinkoff.public.invest.api.contract.v1.UsersService/GetAccountValues',
|
|
381
|
+
request,
|
|
382
|
+
metadata || {},
|
|
383
|
+
this.methodDescriptorGetAccountValues);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
}
|
|
387
|
+
|