@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.
Files changed (33) hide show
  1. package/README.md +28 -23
  2. package/gen/js-ts/clickhouse/Clickhouse_grpcServiceClientPb.ts +108 -0
  3. package/gen/js-ts/clickhouse/clickhouse_grpc_pb.d.ts +464 -0
  4. package/gen/js-ts/db_api/Db_apiServiceClientPb.ts +215 -0
  5. package/gen/js-ts/db_api/db_api_pb.d.ts +406 -0
  6. package/gen/js-ts/db_api/db_api_pb.js +3371 -0
  7. package/gen/js-ts/example/ExampleServiceClientPb.ts +108 -0
  8. package/gen/js-ts/example/Example_pb.d.ts +77 -0
  9. package/gen/js-ts/manager_indicators/Manager_indicatorsServiceClientPb.ts +86 -0
  10. package/gen/js-ts/manager_indicators/manager_indicators_pb.d.ts +190 -0
  11. package/gen/js-ts/moex/MoexServiceClientPb.ts +86 -0
  12. package/gen/js-ts/moex/moex_pb.d.ts +53 -0
  13. package/gen/js-ts/nats/ManagerServiceClientPb.ts +1032 -0
  14. package/gen/js-ts/nats/manager_pb.d.ts +1416 -0
  15. package/gen/js-ts/nats/manager_pb.js +394 -0
  16. package/gen/js-ts/tinvest/InstrumentsServiceClientPb.ts +1892 -0
  17. package/gen/js-ts/tinvest/MarketdataServiceClientPb.ts +473 -0
  18. package/gen/js-ts/tinvest/OperationsServiceClientPb.ts +431 -0
  19. package/gen/js-ts/tinvest/OrdersServiceClientPb.ts +452 -0
  20. package/gen/js-ts/tinvest/SandboxServiceClientPb.ts +907 -0
  21. package/gen/js-ts/tinvest/SignalsServiceClientPb.ts +129 -0
  22. package/gen/js-ts/tinvest/StopordersServiceClientPb.ts +172 -0
  23. package/gen/js-ts/tinvest/UsersServiceClientPb.ts +387 -0
  24. package/gen/js-ts/tinvest/common_pb.d.ts +314 -0
  25. package/gen/js-ts/tinvest/instruments_pb.d.ts +6373 -0
  26. package/gen/js-ts/tinvest/marketdata_pb.d.ts +2397 -0
  27. package/gen/js-ts/tinvest/operations_pb.d.ts +2380 -0
  28. package/gen/js-ts/tinvest/orders_pb.d.ts +1555 -0
  29. package/gen/js-ts/tinvest/sandbox_pb.d.ts +129 -0
  30. package/gen/js-ts/tinvest/signals_pb.d.ts +408 -0
  31. package/gen/js-ts/tinvest/stoporders_pb.d.ts +493 -0
  32. package/gen/js-ts/tinvest/users_pb.d.ts +611 -0
  33. package/package.json +1 -1
@@ -0,0 +1,431 @@
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/operations.proto
12
+
13
+
14
+ /* eslint-disable */
15
+ // @ts-nocheck
16
+
17
+
18
+ import * as grpcWeb from 'grpc-web';
19
+
20
+ import * as tinvest_operations_pb from '../tinvest/operations_pb'; // proto import: "tinvest/operations.proto"
21
+
22
+
23
+ export class OperationsServiceClient {
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
+ methodDescriptorGetOperations = new grpcWeb.MethodDescriptor(
43
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetOperations',
44
+ grpcWeb.MethodType.UNARY,
45
+ tinvest_operations_pb.OperationsRequest,
46
+ tinvest_operations_pb.OperationsResponse,
47
+ (request: tinvest_operations_pb.OperationsRequest) => {
48
+ return request.serializeBinary();
49
+ },
50
+ tinvest_operations_pb.OperationsResponse.deserializeBinary
51
+ );
52
+
53
+ getOperations(
54
+ request: tinvest_operations_pb.OperationsRequest,
55
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_operations_pb.OperationsResponse>;
56
+
57
+ getOperations(
58
+ request: tinvest_operations_pb.OperationsRequest,
59
+ metadata: grpcWeb.Metadata | null,
60
+ callback: (err: grpcWeb.RpcError,
61
+ response: tinvest_operations_pb.OperationsResponse) => void): grpcWeb.ClientReadableStream<tinvest_operations_pb.OperationsResponse>;
62
+
63
+ getOperations(
64
+ request: tinvest_operations_pb.OperationsRequest,
65
+ metadata?: grpcWeb.Metadata | null,
66
+ callback?: (err: grpcWeb.RpcError,
67
+ response: tinvest_operations_pb.OperationsResponse) => void) {
68
+ if (callback !== undefined) {
69
+ return this.client_.rpcCall(
70
+ this.hostname_ +
71
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetOperations',
72
+ request,
73
+ metadata || {},
74
+ this.methodDescriptorGetOperations,
75
+ callback);
76
+ }
77
+ return this.client_.unaryCall(
78
+ this.hostname_ +
79
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetOperations',
80
+ request,
81
+ metadata || {},
82
+ this.methodDescriptorGetOperations);
83
+ }
84
+
85
+ methodDescriptorGetPortfolio = new grpcWeb.MethodDescriptor(
86
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetPortfolio',
87
+ grpcWeb.MethodType.UNARY,
88
+ tinvest_operations_pb.PortfolioRequest,
89
+ tinvest_operations_pb.PortfolioResponse,
90
+ (request: tinvest_operations_pb.PortfolioRequest) => {
91
+ return request.serializeBinary();
92
+ },
93
+ tinvest_operations_pb.PortfolioResponse.deserializeBinary
94
+ );
95
+
96
+ getPortfolio(
97
+ request: tinvest_operations_pb.PortfolioRequest,
98
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_operations_pb.PortfolioResponse>;
99
+
100
+ getPortfolio(
101
+ request: tinvest_operations_pb.PortfolioRequest,
102
+ metadata: grpcWeb.Metadata | null,
103
+ callback: (err: grpcWeb.RpcError,
104
+ response: tinvest_operations_pb.PortfolioResponse) => void): grpcWeb.ClientReadableStream<tinvest_operations_pb.PortfolioResponse>;
105
+
106
+ getPortfolio(
107
+ request: tinvest_operations_pb.PortfolioRequest,
108
+ metadata?: grpcWeb.Metadata | null,
109
+ callback?: (err: grpcWeb.RpcError,
110
+ response: tinvest_operations_pb.PortfolioResponse) => void) {
111
+ if (callback !== undefined) {
112
+ return this.client_.rpcCall(
113
+ this.hostname_ +
114
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetPortfolio',
115
+ request,
116
+ metadata || {},
117
+ this.methodDescriptorGetPortfolio,
118
+ callback);
119
+ }
120
+ return this.client_.unaryCall(
121
+ this.hostname_ +
122
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetPortfolio',
123
+ request,
124
+ metadata || {},
125
+ this.methodDescriptorGetPortfolio);
126
+ }
127
+
128
+ methodDescriptorGetPositions = new grpcWeb.MethodDescriptor(
129
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetPositions',
130
+ grpcWeb.MethodType.UNARY,
131
+ tinvest_operations_pb.PositionsRequest,
132
+ tinvest_operations_pb.PositionsResponse,
133
+ (request: tinvest_operations_pb.PositionsRequest) => {
134
+ return request.serializeBinary();
135
+ },
136
+ tinvest_operations_pb.PositionsResponse.deserializeBinary
137
+ );
138
+
139
+ getPositions(
140
+ request: tinvest_operations_pb.PositionsRequest,
141
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_operations_pb.PositionsResponse>;
142
+
143
+ getPositions(
144
+ request: tinvest_operations_pb.PositionsRequest,
145
+ metadata: grpcWeb.Metadata | null,
146
+ callback: (err: grpcWeb.RpcError,
147
+ response: tinvest_operations_pb.PositionsResponse) => void): grpcWeb.ClientReadableStream<tinvest_operations_pb.PositionsResponse>;
148
+
149
+ getPositions(
150
+ request: tinvest_operations_pb.PositionsRequest,
151
+ metadata?: grpcWeb.Metadata | null,
152
+ callback?: (err: grpcWeb.RpcError,
153
+ response: tinvest_operations_pb.PositionsResponse) => void) {
154
+ if (callback !== undefined) {
155
+ return this.client_.rpcCall(
156
+ this.hostname_ +
157
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetPositions',
158
+ request,
159
+ metadata || {},
160
+ this.methodDescriptorGetPositions,
161
+ callback);
162
+ }
163
+ return this.client_.unaryCall(
164
+ this.hostname_ +
165
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetPositions',
166
+ request,
167
+ metadata || {},
168
+ this.methodDescriptorGetPositions);
169
+ }
170
+
171
+ methodDescriptorGetWithdrawLimits = new grpcWeb.MethodDescriptor(
172
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetWithdrawLimits',
173
+ grpcWeb.MethodType.UNARY,
174
+ tinvest_operations_pb.WithdrawLimitsRequest,
175
+ tinvest_operations_pb.WithdrawLimitsResponse,
176
+ (request: tinvest_operations_pb.WithdrawLimitsRequest) => {
177
+ return request.serializeBinary();
178
+ },
179
+ tinvest_operations_pb.WithdrawLimitsResponse.deserializeBinary
180
+ );
181
+
182
+ getWithdrawLimits(
183
+ request: tinvest_operations_pb.WithdrawLimitsRequest,
184
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_operations_pb.WithdrawLimitsResponse>;
185
+
186
+ getWithdrawLimits(
187
+ request: tinvest_operations_pb.WithdrawLimitsRequest,
188
+ metadata: grpcWeb.Metadata | null,
189
+ callback: (err: grpcWeb.RpcError,
190
+ response: tinvest_operations_pb.WithdrawLimitsResponse) => void): grpcWeb.ClientReadableStream<tinvest_operations_pb.WithdrawLimitsResponse>;
191
+
192
+ getWithdrawLimits(
193
+ request: tinvest_operations_pb.WithdrawLimitsRequest,
194
+ metadata?: grpcWeb.Metadata | null,
195
+ callback?: (err: grpcWeb.RpcError,
196
+ response: tinvest_operations_pb.WithdrawLimitsResponse) => void) {
197
+ if (callback !== undefined) {
198
+ return this.client_.rpcCall(
199
+ this.hostname_ +
200
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetWithdrawLimits',
201
+ request,
202
+ metadata || {},
203
+ this.methodDescriptorGetWithdrawLimits,
204
+ callback);
205
+ }
206
+ return this.client_.unaryCall(
207
+ this.hostname_ +
208
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetWithdrawLimits',
209
+ request,
210
+ metadata || {},
211
+ this.methodDescriptorGetWithdrawLimits);
212
+ }
213
+
214
+ methodDescriptorGetBrokerReport = new grpcWeb.MethodDescriptor(
215
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetBrokerReport',
216
+ grpcWeb.MethodType.UNARY,
217
+ tinvest_operations_pb.BrokerReportRequest,
218
+ tinvest_operations_pb.BrokerReportResponse,
219
+ (request: tinvest_operations_pb.BrokerReportRequest) => {
220
+ return request.serializeBinary();
221
+ },
222
+ tinvest_operations_pb.BrokerReportResponse.deserializeBinary
223
+ );
224
+
225
+ getBrokerReport(
226
+ request: tinvest_operations_pb.BrokerReportRequest,
227
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_operations_pb.BrokerReportResponse>;
228
+
229
+ getBrokerReport(
230
+ request: tinvest_operations_pb.BrokerReportRequest,
231
+ metadata: grpcWeb.Metadata | null,
232
+ callback: (err: grpcWeb.RpcError,
233
+ response: tinvest_operations_pb.BrokerReportResponse) => void): grpcWeb.ClientReadableStream<tinvest_operations_pb.BrokerReportResponse>;
234
+
235
+ getBrokerReport(
236
+ request: tinvest_operations_pb.BrokerReportRequest,
237
+ metadata?: grpcWeb.Metadata | null,
238
+ callback?: (err: grpcWeb.RpcError,
239
+ response: tinvest_operations_pb.BrokerReportResponse) => void) {
240
+ if (callback !== undefined) {
241
+ return this.client_.rpcCall(
242
+ this.hostname_ +
243
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetBrokerReport',
244
+ request,
245
+ metadata || {},
246
+ this.methodDescriptorGetBrokerReport,
247
+ callback);
248
+ }
249
+ return this.client_.unaryCall(
250
+ this.hostname_ +
251
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetBrokerReport',
252
+ request,
253
+ metadata || {},
254
+ this.methodDescriptorGetBrokerReport);
255
+ }
256
+
257
+ methodDescriptorGetDividendsForeignIssuer = new grpcWeb.MethodDescriptor(
258
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetDividendsForeignIssuer',
259
+ grpcWeb.MethodType.UNARY,
260
+ tinvest_operations_pb.GetDividendsForeignIssuerRequest,
261
+ tinvest_operations_pb.GetDividendsForeignIssuerResponse,
262
+ (request: tinvest_operations_pb.GetDividendsForeignIssuerRequest) => {
263
+ return request.serializeBinary();
264
+ },
265
+ tinvest_operations_pb.GetDividendsForeignIssuerResponse.deserializeBinary
266
+ );
267
+
268
+ getDividendsForeignIssuer(
269
+ request: tinvest_operations_pb.GetDividendsForeignIssuerRequest,
270
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_operations_pb.GetDividendsForeignIssuerResponse>;
271
+
272
+ getDividendsForeignIssuer(
273
+ request: tinvest_operations_pb.GetDividendsForeignIssuerRequest,
274
+ metadata: grpcWeb.Metadata | null,
275
+ callback: (err: grpcWeb.RpcError,
276
+ response: tinvest_operations_pb.GetDividendsForeignIssuerResponse) => void): grpcWeb.ClientReadableStream<tinvest_operations_pb.GetDividendsForeignIssuerResponse>;
277
+
278
+ getDividendsForeignIssuer(
279
+ request: tinvest_operations_pb.GetDividendsForeignIssuerRequest,
280
+ metadata?: grpcWeb.Metadata | null,
281
+ callback?: (err: grpcWeb.RpcError,
282
+ response: tinvest_operations_pb.GetDividendsForeignIssuerResponse) => void) {
283
+ if (callback !== undefined) {
284
+ return this.client_.rpcCall(
285
+ this.hostname_ +
286
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetDividendsForeignIssuer',
287
+ request,
288
+ metadata || {},
289
+ this.methodDescriptorGetDividendsForeignIssuer,
290
+ callback);
291
+ }
292
+ return this.client_.unaryCall(
293
+ this.hostname_ +
294
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetDividendsForeignIssuer',
295
+ request,
296
+ metadata || {},
297
+ this.methodDescriptorGetDividendsForeignIssuer);
298
+ }
299
+
300
+ methodDescriptorGetOperationsByCursor = new grpcWeb.MethodDescriptor(
301
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetOperationsByCursor',
302
+ grpcWeb.MethodType.UNARY,
303
+ tinvest_operations_pb.GetOperationsByCursorRequest,
304
+ tinvest_operations_pb.GetOperationsByCursorResponse,
305
+ (request: tinvest_operations_pb.GetOperationsByCursorRequest) => {
306
+ return request.serializeBinary();
307
+ },
308
+ tinvest_operations_pb.GetOperationsByCursorResponse.deserializeBinary
309
+ );
310
+
311
+ getOperationsByCursor(
312
+ request: tinvest_operations_pb.GetOperationsByCursorRequest,
313
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_operations_pb.GetOperationsByCursorResponse>;
314
+
315
+ getOperationsByCursor(
316
+ request: tinvest_operations_pb.GetOperationsByCursorRequest,
317
+ metadata: grpcWeb.Metadata | null,
318
+ callback: (err: grpcWeb.RpcError,
319
+ response: tinvest_operations_pb.GetOperationsByCursorResponse) => void): grpcWeb.ClientReadableStream<tinvest_operations_pb.GetOperationsByCursorResponse>;
320
+
321
+ getOperationsByCursor(
322
+ request: tinvest_operations_pb.GetOperationsByCursorRequest,
323
+ metadata?: grpcWeb.Metadata | null,
324
+ callback?: (err: grpcWeb.RpcError,
325
+ response: tinvest_operations_pb.GetOperationsByCursorResponse) => void) {
326
+ if (callback !== undefined) {
327
+ return this.client_.rpcCall(
328
+ this.hostname_ +
329
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetOperationsByCursor',
330
+ request,
331
+ metadata || {},
332
+ this.methodDescriptorGetOperationsByCursor,
333
+ callback);
334
+ }
335
+ return this.client_.unaryCall(
336
+ this.hostname_ +
337
+ '/tinkoff.public.invest.api.contract.v1.OperationsService/GetOperationsByCursor',
338
+ request,
339
+ metadata || {},
340
+ this.methodDescriptorGetOperationsByCursor);
341
+ }
342
+
343
+ }
344
+
345
+ export class OperationsStreamServiceClient {
346
+ client_: grpcWeb.AbstractClientBase;
347
+ hostname_: string;
348
+ credentials_: null | { [index: string]: string; };
349
+ options_: null | { [index: string]: any; };
350
+
351
+ constructor (hostname: string,
352
+ credentials?: null | { [index: string]: string; },
353
+ options?: null | { [index: string]: any; }) {
354
+ if (!options) options = {};
355
+ if (!credentials) credentials = {};
356
+ options['format'] = 'binary';
357
+
358
+ this.client_ = new grpcWeb.GrpcWebClientBase(options);
359
+ this.hostname_ = hostname.replace(/\/+$/, '');
360
+ this.credentials_ = credentials;
361
+ this.options_ = options;
362
+ }
363
+
364
+ methodDescriptorPortfolioStream = new grpcWeb.MethodDescriptor(
365
+ '/tinkoff.public.invest.api.contract.v1.OperationsStreamService/PortfolioStream',
366
+ grpcWeb.MethodType.SERVER_STREAMING,
367
+ tinvest_operations_pb.PortfolioStreamRequest,
368
+ tinvest_operations_pb.PortfolioStreamResponse,
369
+ (request: tinvest_operations_pb.PortfolioStreamRequest) => {
370
+ return request.serializeBinary();
371
+ },
372
+ tinvest_operations_pb.PortfolioStreamResponse.deserializeBinary
373
+ );
374
+
375
+ portfolioStream(
376
+ request: tinvest_operations_pb.PortfolioStreamRequest,
377
+ metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<tinvest_operations_pb.PortfolioStreamResponse> {
378
+ return this.client_.serverStreaming(
379
+ this.hostname_ +
380
+ '/tinkoff.public.invest.api.contract.v1.OperationsStreamService/PortfolioStream',
381
+ request,
382
+ metadata || {},
383
+ this.methodDescriptorPortfolioStream);
384
+ }
385
+
386
+ methodDescriptorPositionsStream = new grpcWeb.MethodDescriptor(
387
+ '/tinkoff.public.invest.api.contract.v1.OperationsStreamService/PositionsStream',
388
+ grpcWeb.MethodType.SERVER_STREAMING,
389
+ tinvest_operations_pb.PositionsStreamRequest,
390
+ tinvest_operations_pb.PositionsStreamResponse,
391
+ (request: tinvest_operations_pb.PositionsStreamRequest) => {
392
+ return request.serializeBinary();
393
+ },
394
+ tinvest_operations_pb.PositionsStreamResponse.deserializeBinary
395
+ );
396
+
397
+ positionsStream(
398
+ request: tinvest_operations_pb.PositionsStreamRequest,
399
+ metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<tinvest_operations_pb.PositionsStreamResponse> {
400
+ return this.client_.serverStreaming(
401
+ this.hostname_ +
402
+ '/tinkoff.public.invest.api.contract.v1.OperationsStreamService/PositionsStream',
403
+ request,
404
+ metadata || {},
405
+ this.methodDescriptorPositionsStream);
406
+ }
407
+
408
+ methodDescriptorOperationsStream = new grpcWeb.MethodDescriptor(
409
+ '/tinkoff.public.invest.api.contract.v1.OperationsStreamService/OperationsStream',
410
+ grpcWeb.MethodType.SERVER_STREAMING,
411
+ tinvest_operations_pb.OperationsStreamRequest,
412
+ tinvest_operations_pb.OperationsStreamResponse,
413
+ (request: tinvest_operations_pb.OperationsStreamRequest) => {
414
+ return request.serializeBinary();
415
+ },
416
+ tinvest_operations_pb.OperationsStreamResponse.deserializeBinary
417
+ );
418
+
419
+ operationsStream(
420
+ request: tinvest_operations_pb.OperationsStreamRequest,
421
+ metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<tinvest_operations_pb.OperationsStreamResponse> {
422
+ return this.client_.serverStreaming(
423
+ this.hostname_ +
424
+ '/tinkoff.public.invest.api.contract.v1.OperationsStreamService/OperationsStream',
425
+ request,
426
+ metadata || {},
427
+ this.methodDescriptorOperationsStream);
428
+ }
429
+
430
+ }
431
+