@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,452 @@
|
|
|
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/orders.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as tinvest_orders_pb from '../tinvest/orders_pb'; // proto import: "tinvest/orders.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class OrdersStreamServiceClient {
|
|
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
|
+
methodDescriptorTradesStream = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersStreamService/TradesStream',
|
|
44
|
+
grpcWeb.MethodType.SERVER_STREAMING,
|
|
45
|
+
tinvest_orders_pb.TradesStreamRequest,
|
|
46
|
+
tinvest_orders_pb.TradesStreamResponse,
|
|
47
|
+
(request: tinvest_orders_pb.TradesStreamRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
tinvest_orders_pb.TradesStreamResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
tradesStream(
|
|
54
|
+
request: tinvest_orders_pb.TradesStreamRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<tinvest_orders_pb.TradesStreamResponse> {
|
|
56
|
+
return this.client_.serverStreaming(
|
|
57
|
+
this.hostname_ +
|
|
58
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersStreamService/TradesStream',
|
|
59
|
+
request,
|
|
60
|
+
metadata || {},
|
|
61
|
+
this.methodDescriptorTradesStream);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
methodDescriptorOrderStateStream = new grpcWeb.MethodDescriptor(
|
|
65
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersStreamService/OrderStateStream',
|
|
66
|
+
grpcWeb.MethodType.SERVER_STREAMING,
|
|
67
|
+
tinvest_orders_pb.OrderStateStreamRequest,
|
|
68
|
+
tinvest_orders_pb.OrderStateStreamResponse,
|
|
69
|
+
(request: tinvest_orders_pb.OrderStateStreamRequest) => {
|
|
70
|
+
return request.serializeBinary();
|
|
71
|
+
},
|
|
72
|
+
tinvest_orders_pb.OrderStateStreamResponse.deserializeBinary
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
orderStateStream(
|
|
76
|
+
request: tinvest_orders_pb.OrderStateStreamRequest,
|
|
77
|
+
metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<tinvest_orders_pb.OrderStateStreamResponse> {
|
|
78
|
+
return this.client_.serverStreaming(
|
|
79
|
+
this.hostname_ +
|
|
80
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersStreamService/OrderStateStream',
|
|
81
|
+
request,
|
|
82
|
+
metadata || {},
|
|
83
|
+
this.methodDescriptorOrderStateStream);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class OrdersServiceClient {
|
|
89
|
+
client_: grpcWeb.AbstractClientBase;
|
|
90
|
+
hostname_: string;
|
|
91
|
+
credentials_: null | { [index: string]: string; };
|
|
92
|
+
options_: null | { [index: string]: any; };
|
|
93
|
+
|
|
94
|
+
constructor (hostname: string,
|
|
95
|
+
credentials?: null | { [index: string]: string; },
|
|
96
|
+
options?: null | { [index: string]: any; }) {
|
|
97
|
+
if (!options) options = {};
|
|
98
|
+
if (!credentials) credentials = {};
|
|
99
|
+
options['format'] = 'binary';
|
|
100
|
+
|
|
101
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
102
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
103
|
+
this.credentials_ = credentials;
|
|
104
|
+
this.options_ = options;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
methodDescriptorPostOrder = new grpcWeb.MethodDescriptor(
|
|
108
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrder',
|
|
109
|
+
grpcWeb.MethodType.UNARY,
|
|
110
|
+
tinvest_orders_pb.PostOrderRequest,
|
|
111
|
+
tinvest_orders_pb.PostOrderResponse,
|
|
112
|
+
(request: tinvest_orders_pb.PostOrderRequest) => {
|
|
113
|
+
return request.serializeBinary();
|
|
114
|
+
},
|
|
115
|
+
tinvest_orders_pb.PostOrderResponse.deserializeBinary
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
postOrder(
|
|
119
|
+
request: tinvest_orders_pb.PostOrderRequest,
|
|
120
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.PostOrderResponse>;
|
|
121
|
+
|
|
122
|
+
postOrder(
|
|
123
|
+
request: tinvest_orders_pb.PostOrderRequest,
|
|
124
|
+
metadata: grpcWeb.Metadata | null,
|
|
125
|
+
callback: (err: grpcWeb.RpcError,
|
|
126
|
+
response: tinvest_orders_pb.PostOrderResponse) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.PostOrderResponse>;
|
|
127
|
+
|
|
128
|
+
postOrder(
|
|
129
|
+
request: tinvest_orders_pb.PostOrderRequest,
|
|
130
|
+
metadata?: grpcWeb.Metadata | null,
|
|
131
|
+
callback?: (err: grpcWeb.RpcError,
|
|
132
|
+
response: tinvest_orders_pb.PostOrderResponse) => void) {
|
|
133
|
+
if (callback !== undefined) {
|
|
134
|
+
return this.client_.rpcCall(
|
|
135
|
+
this.hostname_ +
|
|
136
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrder',
|
|
137
|
+
request,
|
|
138
|
+
metadata || {},
|
|
139
|
+
this.methodDescriptorPostOrder,
|
|
140
|
+
callback);
|
|
141
|
+
}
|
|
142
|
+
return this.client_.unaryCall(
|
|
143
|
+
this.hostname_ +
|
|
144
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrder',
|
|
145
|
+
request,
|
|
146
|
+
metadata || {},
|
|
147
|
+
this.methodDescriptorPostOrder);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
methodDescriptorPostOrderAsync = new grpcWeb.MethodDescriptor(
|
|
151
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrderAsync',
|
|
152
|
+
grpcWeb.MethodType.UNARY,
|
|
153
|
+
tinvest_orders_pb.PostOrderAsyncRequest,
|
|
154
|
+
tinvest_orders_pb.PostOrderAsyncResponse,
|
|
155
|
+
(request: tinvest_orders_pb.PostOrderAsyncRequest) => {
|
|
156
|
+
return request.serializeBinary();
|
|
157
|
+
},
|
|
158
|
+
tinvest_orders_pb.PostOrderAsyncResponse.deserializeBinary
|
|
159
|
+
);
|
|
160
|
+
|
|
161
|
+
postOrderAsync(
|
|
162
|
+
request: tinvest_orders_pb.PostOrderAsyncRequest,
|
|
163
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.PostOrderAsyncResponse>;
|
|
164
|
+
|
|
165
|
+
postOrderAsync(
|
|
166
|
+
request: tinvest_orders_pb.PostOrderAsyncRequest,
|
|
167
|
+
metadata: grpcWeb.Metadata | null,
|
|
168
|
+
callback: (err: grpcWeb.RpcError,
|
|
169
|
+
response: tinvest_orders_pb.PostOrderAsyncResponse) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.PostOrderAsyncResponse>;
|
|
170
|
+
|
|
171
|
+
postOrderAsync(
|
|
172
|
+
request: tinvest_orders_pb.PostOrderAsyncRequest,
|
|
173
|
+
metadata?: grpcWeb.Metadata | null,
|
|
174
|
+
callback?: (err: grpcWeb.RpcError,
|
|
175
|
+
response: tinvest_orders_pb.PostOrderAsyncResponse) => void) {
|
|
176
|
+
if (callback !== undefined) {
|
|
177
|
+
return this.client_.rpcCall(
|
|
178
|
+
this.hostname_ +
|
|
179
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrderAsync',
|
|
180
|
+
request,
|
|
181
|
+
metadata || {},
|
|
182
|
+
this.methodDescriptorPostOrderAsync,
|
|
183
|
+
callback);
|
|
184
|
+
}
|
|
185
|
+
return this.client_.unaryCall(
|
|
186
|
+
this.hostname_ +
|
|
187
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrderAsync',
|
|
188
|
+
request,
|
|
189
|
+
metadata || {},
|
|
190
|
+
this.methodDescriptorPostOrderAsync);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
methodDescriptorCancelOrder = new grpcWeb.MethodDescriptor(
|
|
194
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/CancelOrder',
|
|
195
|
+
grpcWeb.MethodType.UNARY,
|
|
196
|
+
tinvest_orders_pb.CancelOrderRequest,
|
|
197
|
+
tinvest_orders_pb.CancelOrderResponse,
|
|
198
|
+
(request: tinvest_orders_pb.CancelOrderRequest) => {
|
|
199
|
+
return request.serializeBinary();
|
|
200
|
+
},
|
|
201
|
+
tinvest_orders_pb.CancelOrderResponse.deserializeBinary
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
cancelOrder(
|
|
205
|
+
request: tinvest_orders_pb.CancelOrderRequest,
|
|
206
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.CancelOrderResponse>;
|
|
207
|
+
|
|
208
|
+
cancelOrder(
|
|
209
|
+
request: tinvest_orders_pb.CancelOrderRequest,
|
|
210
|
+
metadata: grpcWeb.Metadata | null,
|
|
211
|
+
callback: (err: grpcWeb.RpcError,
|
|
212
|
+
response: tinvest_orders_pb.CancelOrderResponse) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.CancelOrderResponse>;
|
|
213
|
+
|
|
214
|
+
cancelOrder(
|
|
215
|
+
request: tinvest_orders_pb.CancelOrderRequest,
|
|
216
|
+
metadata?: grpcWeb.Metadata | null,
|
|
217
|
+
callback?: (err: grpcWeb.RpcError,
|
|
218
|
+
response: tinvest_orders_pb.CancelOrderResponse) => void) {
|
|
219
|
+
if (callback !== undefined) {
|
|
220
|
+
return this.client_.rpcCall(
|
|
221
|
+
this.hostname_ +
|
|
222
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/CancelOrder',
|
|
223
|
+
request,
|
|
224
|
+
metadata || {},
|
|
225
|
+
this.methodDescriptorCancelOrder,
|
|
226
|
+
callback);
|
|
227
|
+
}
|
|
228
|
+
return this.client_.unaryCall(
|
|
229
|
+
this.hostname_ +
|
|
230
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/CancelOrder',
|
|
231
|
+
request,
|
|
232
|
+
metadata || {},
|
|
233
|
+
this.methodDescriptorCancelOrder);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
methodDescriptorGetOrderState = new grpcWeb.MethodDescriptor(
|
|
237
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderState',
|
|
238
|
+
grpcWeb.MethodType.UNARY,
|
|
239
|
+
tinvest_orders_pb.GetOrderStateRequest,
|
|
240
|
+
tinvest_orders_pb.OrderState,
|
|
241
|
+
(request: tinvest_orders_pb.GetOrderStateRequest) => {
|
|
242
|
+
return request.serializeBinary();
|
|
243
|
+
},
|
|
244
|
+
tinvest_orders_pb.OrderState.deserializeBinary
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
getOrderState(
|
|
248
|
+
request: tinvest_orders_pb.GetOrderStateRequest,
|
|
249
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.OrderState>;
|
|
250
|
+
|
|
251
|
+
getOrderState(
|
|
252
|
+
request: tinvest_orders_pb.GetOrderStateRequest,
|
|
253
|
+
metadata: grpcWeb.Metadata | null,
|
|
254
|
+
callback: (err: grpcWeb.RpcError,
|
|
255
|
+
response: tinvest_orders_pb.OrderState) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.OrderState>;
|
|
256
|
+
|
|
257
|
+
getOrderState(
|
|
258
|
+
request: tinvest_orders_pb.GetOrderStateRequest,
|
|
259
|
+
metadata?: grpcWeb.Metadata | null,
|
|
260
|
+
callback?: (err: grpcWeb.RpcError,
|
|
261
|
+
response: tinvest_orders_pb.OrderState) => void) {
|
|
262
|
+
if (callback !== undefined) {
|
|
263
|
+
return this.client_.rpcCall(
|
|
264
|
+
this.hostname_ +
|
|
265
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderState',
|
|
266
|
+
request,
|
|
267
|
+
metadata || {},
|
|
268
|
+
this.methodDescriptorGetOrderState,
|
|
269
|
+
callback);
|
|
270
|
+
}
|
|
271
|
+
return this.client_.unaryCall(
|
|
272
|
+
this.hostname_ +
|
|
273
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderState',
|
|
274
|
+
request,
|
|
275
|
+
metadata || {},
|
|
276
|
+
this.methodDescriptorGetOrderState);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
methodDescriptorGetOrders = new grpcWeb.MethodDescriptor(
|
|
280
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrders',
|
|
281
|
+
grpcWeb.MethodType.UNARY,
|
|
282
|
+
tinvest_orders_pb.GetOrdersRequest,
|
|
283
|
+
tinvest_orders_pb.GetOrdersResponse,
|
|
284
|
+
(request: tinvest_orders_pb.GetOrdersRequest) => {
|
|
285
|
+
return request.serializeBinary();
|
|
286
|
+
},
|
|
287
|
+
tinvest_orders_pb.GetOrdersResponse.deserializeBinary
|
|
288
|
+
);
|
|
289
|
+
|
|
290
|
+
getOrders(
|
|
291
|
+
request: tinvest_orders_pb.GetOrdersRequest,
|
|
292
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.GetOrdersResponse>;
|
|
293
|
+
|
|
294
|
+
getOrders(
|
|
295
|
+
request: tinvest_orders_pb.GetOrdersRequest,
|
|
296
|
+
metadata: grpcWeb.Metadata | null,
|
|
297
|
+
callback: (err: grpcWeb.RpcError,
|
|
298
|
+
response: tinvest_orders_pb.GetOrdersResponse) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.GetOrdersResponse>;
|
|
299
|
+
|
|
300
|
+
getOrders(
|
|
301
|
+
request: tinvest_orders_pb.GetOrdersRequest,
|
|
302
|
+
metadata?: grpcWeb.Metadata | null,
|
|
303
|
+
callback?: (err: grpcWeb.RpcError,
|
|
304
|
+
response: tinvest_orders_pb.GetOrdersResponse) => void) {
|
|
305
|
+
if (callback !== undefined) {
|
|
306
|
+
return this.client_.rpcCall(
|
|
307
|
+
this.hostname_ +
|
|
308
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrders',
|
|
309
|
+
request,
|
|
310
|
+
metadata || {},
|
|
311
|
+
this.methodDescriptorGetOrders,
|
|
312
|
+
callback);
|
|
313
|
+
}
|
|
314
|
+
return this.client_.unaryCall(
|
|
315
|
+
this.hostname_ +
|
|
316
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrders',
|
|
317
|
+
request,
|
|
318
|
+
metadata || {},
|
|
319
|
+
this.methodDescriptorGetOrders);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
methodDescriptorReplaceOrder = new grpcWeb.MethodDescriptor(
|
|
323
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/ReplaceOrder',
|
|
324
|
+
grpcWeb.MethodType.UNARY,
|
|
325
|
+
tinvest_orders_pb.ReplaceOrderRequest,
|
|
326
|
+
tinvest_orders_pb.PostOrderResponse,
|
|
327
|
+
(request: tinvest_orders_pb.ReplaceOrderRequest) => {
|
|
328
|
+
return request.serializeBinary();
|
|
329
|
+
},
|
|
330
|
+
tinvest_orders_pb.PostOrderResponse.deserializeBinary
|
|
331
|
+
);
|
|
332
|
+
|
|
333
|
+
replaceOrder(
|
|
334
|
+
request: tinvest_orders_pb.ReplaceOrderRequest,
|
|
335
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.PostOrderResponse>;
|
|
336
|
+
|
|
337
|
+
replaceOrder(
|
|
338
|
+
request: tinvest_orders_pb.ReplaceOrderRequest,
|
|
339
|
+
metadata: grpcWeb.Metadata | null,
|
|
340
|
+
callback: (err: grpcWeb.RpcError,
|
|
341
|
+
response: tinvest_orders_pb.PostOrderResponse) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.PostOrderResponse>;
|
|
342
|
+
|
|
343
|
+
replaceOrder(
|
|
344
|
+
request: tinvest_orders_pb.ReplaceOrderRequest,
|
|
345
|
+
metadata?: grpcWeb.Metadata | null,
|
|
346
|
+
callback?: (err: grpcWeb.RpcError,
|
|
347
|
+
response: tinvest_orders_pb.PostOrderResponse) => void) {
|
|
348
|
+
if (callback !== undefined) {
|
|
349
|
+
return this.client_.rpcCall(
|
|
350
|
+
this.hostname_ +
|
|
351
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/ReplaceOrder',
|
|
352
|
+
request,
|
|
353
|
+
metadata || {},
|
|
354
|
+
this.methodDescriptorReplaceOrder,
|
|
355
|
+
callback);
|
|
356
|
+
}
|
|
357
|
+
return this.client_.unaryCall(
|
|
358
|
+
this.hostname_ +
|
|
359
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/ReplaceOrder',
|
|
360
|
+
request,
|
|
361
|
+
metadata || {},
|
|
362
|
+
this.methodDescriptorReplaceOrder);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
methodDescriptorGetMaxLots = new grpcWeb.MethodDescriptor(
|
|
366
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetMaxLots',
|
|
367
|
+
grpcWeb.MethodType.UNARY,
|
|
368
|
+
tinvest_orders_pb.GetMaxLotsRequest,
|
|
369
|
+
tinvest_orders_pb.GetMaxLotsResponse,
|
|
370
|
+
(request: tinvest_orders_pb.GetMaxLotsRequest) => {
|
|
371
|
+
return request.serializeBinary();
|
|
372
|
+
},
|
|
373
|
+
tinvest_orders_pb.GetMaxLotsResponse.deserializeBinary
|
|
374
|
+
);
|
|
375
|
+
|
|
376
|
+
getMaxLots(
|
|
377
|
+
request: tinvest_orders_pb.GetMaxLotsRequest,
|
|
378
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.GetMaxLotsResponse>;
|
|
379
|
+
|
|
380
|
+
getMaxLots(
|
|
381
|
+
request: tinvest_orders_pb.GetMaxLotsRequest,
|
|
382
|
+
metadata: grpcWeb.Metadata | null,
|
|
383
|
+
callback: (err: grpcWeb.RpcError,
|
|
384
|
+
response: tinvest_orders_pb.GetMaxLotsResponse) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.GetMaxLotsResponse>;
|
|
385
|
+
|
|
386
|
+
getMaxLots(
|
|
387
|
+
request: tinvest_orders_pb.GetMaxLotsRequest,
|
|
388
|
+
metadata?: grpcWeb.Metadata | null,
|
|
389
|
+
callback?: (err: grpcWeb.RpcError,
|
|
390
|
+
response: tinvest_orders_pb.GetMaxLotsResponse) => void) {
|
|
391
|
+
if (callback !== undefined) {
|
|
392
|
+
return this.client_.rpcCall(
|
|
393
|
+
this.hostname_ +
|
|
394
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetMaxLots',
|
|
395
|
+
request,
|
|
396
|
+
metadata || {},
|
|
397
|
+
this.methodDescriptorGetMaxLots,
|
|
398
|
+
callback);
|
|
399
|
+
}
|
|
400
|
+
return this.client_.unaryCall(
|
|
401
|
+
this.hostname_ +
|
|
402
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetMaxLots',
|
|
403
|
+
request,
|
|
404
|
+
metadata || {},
|
|
405
|
+
this.methodDescriptorGetMaxLots);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
methodDescriptorGetOrderPrice = new grpcWeb.MethodDescriptor(
|
|
409
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderPrice',
|
|
410
|
+
grpcWeb.MethodType.UNARY,
|
|
411
|
+
tinvest_orders_pb.GetOrderPriceRequest,
|
|
412
|
+
tinvest_orders_pb.GetOrderPriceResponse,
|
|
413
|
+
(request: tinvest_orders_pb.GetOrderPriceRequest) => {
|
|
414
|
+
return request.serializeBinary();
|
|
415
|
+
},
|
|
416
|
+
tinvest_orders_pb.GetOrderPriceResponse.deserializeBinary
|
|
417
|
+
);
|
|
418
|
+
|
|
419
|
+
getOrderPrice(
|
|
420
|
+
request: tinvest_orders_pb.GetOrderPriceRequest,
|
|
421
|
+
metadata?: grpcWeb.Metadata | null): Promise<tinvest_orders_pb.GetOrderPriceResponse>;
|
|
422
|
+
|
|
423
|
+
getOrderPrice(
|
|
424
|
+
request: tinvest_orders_pb.GetOrderPriceRequest,
|
|
425
|
+
metadata: grpcWeb.Metadata | null,
|
|
426
|
+
callback: (err: grpcWeb.RpcError,
|
|
427
|
+
response: tinvest_orders_pb.GetOrderPriceResponse) => void): grpcWeb.ClientReadableStream<tinvest_orders_pb.GetOrderPriceResponse>;
|
|
428
|
+
|
|
429
|
+
getOrderPrice(
|
|
430
|
+
request: tinvest_orders_pb.GetOrderPriceRequest,
|
|
431
|
+
metadata?: grpcWeb.Metadata | null,
|
|
432
|
+
callback?: (err: grpcWeb.RpcError,
|
|
433
|
+
response: tinvest_orders_pb.GetOrderPriceResponse) => void) {
|
|
434
|
+
if (callback !== undefined) {
|
|
435
|
+
return this.client_.rpcCall(
|
|
436
|
+
this.hostname_ +
|
|
437
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderPrice',
|
|
438
|
+
request,
|
|
439
|
+
metadata || {},
|
|
440
|
+
this.methodDescriptorGetOrderPrice,
|
|
441
|
+
callback);
|
|
442
|
+
}
|
|
443
|
+
return this.client_.unaryCall(
|
|
444
|
+
this.hostname_ +
|
|
445
|
+
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderPrice',
|
|
446
|
+
request,
|
|
447
|
+
metadata || {},
|
|
448
|
+
this.methodDescriptorGetOrderPrice);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
}
|
|
452
|
+
|