@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,473 @@
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/marketdata.proto
12
+
13
+
14
+ /* eslint-disable */
15
+ // @ts-nocheck
16
+
17
+
18
+ import * as grpcWeb from 'grpc-web';
19
+
20
+ import * as tinvest_marketdata_pb from '../tinvest/marketdata_pb'; // proto import: "tinvest/marketdata.proto"
21
+
22
+
23
+ export class MarketDataServiceClient {
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
+ methodDescriptorGetCandles = new grpcWeb.MethodDescriptor(
43
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetCandles',
44
+ grpcWeb.MethodType.UNARY,
45
+ tinvest_marketdata_pb.GetCandlesRequest,
46
+ tinvest_marketdata_pb.GetCandlesResponse,
47
+ (request: tinvest_marketdata_pb.GetCandlesRequest) => {
48
+ return request.serializeBinary();
49
+ },
50
+ tinvest_marketdata_pb.GetCandlesResponse.deserializeBinary
51
+ );
52
+
53
+ getCandles(
54
+ request: tinvest_marketdata_pb.GetCandlesRequest,
55
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetCandlesResponse>;
56
+
57
+ getCandles(
58
+ request: tinvest_marketdata_pb.GetCandlesRequest,
59
+ metadata: grpcWeb.Metadata | null,
60
+ callback: (err: grpcWeb.RpcError,
61
+ response: tinvest_marketdata_pb.GetCandlesResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetCandlesResponse>;
62
+
63
+ getCandles(
64
+ request: tinvest_marketdata_pb.GetCandlesRequest,
65
+ metadata?: grpcWeb.Metadata | null,
66
+ callback?: (err: grpcWeb.RpcError,
67
+ response: tinvest_marketdata_pb.GetCandlesResponse) => void) {
68
+ if (callback !== undefined) {
69
+ return this.client_.rpcCall(
70
+ this.hostname_ +
71
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetCandles',
72
+ request,
73
+ metadata || {},
74
+ this.methodDescriptorGetCandles,
75
+ callback);
76
+ }
77
+ return this.client_.unaryCall(
78
+ this.hostname_ +
79
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetCandles',
80
+ request,
81
+ metadata || {},
82
+ this.methodDescriptorGetCandles);
83
+ }
84
+
85
+ methodDescriptorGetLastPrices = new grpcWeb.MethodDescriptor(
86
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetLastPrices',
87
+ grpcWeb.MethodType.UNARY,
88
+ tinvest_marketdata_pb.GetLastPricesRequest,
89
+ tinvest_marketdata_pb.GetLastPricesResponse,
90
+ (request: tinvest_marketdata_pb.GetLastPricesRequest) => {
91
+ return request.serializeBinary();
92
+ },
93
+ tinvest_marketdata_pb.GetLastPricesResponse.deserializeBinary
94
+ );
95
+
96
+ getLastPrices(
97
+ request: tinvest_marketdata_pb.GetLastPricesRequest,
98
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetLastPricesResponse>;
99
+
100
+ getLastPrices(
101
+ request: tinvest_marketdata_pb.GetLastPricesRequest,
102
+ metadata: grpcWeb.Metadata | null,
103
+ callback: (err: grpcWeb.RpcError,
104
+ response: tinvest_marketdata_pb.GetLastPricesResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetLastPricesResponse>;
105
+
106
+ getLastPrices(
107
+ request: tinvest_marketdata_pb.GetLastPricesRequest,
108
+ metadata?: grpcWeb.Metadata | null,
109
+ callback?: (err: grpcWeb.RpcError,
110
+ response: tinvest_marketdata_pb.GetLastPricesResponse) => void) {
111
+ if (callback !== undefined) {
112
+ return this.client_.rpcCall(
113
+ this.hostname_ +
114
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetLastPrices',
115
+ request,
116
+ metadata || {},
117
+ this.methodDescriptorGetLastPrices,
118
+ callback);
119
+ }
120
+ return this.client_.unaryCall(
121
+ this.hostname_ +
122
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetLastPrices',
123
+ request,
124
+ metadata || {},
125
+ this.methodDescriptorGetLastPrices);
126
+ }
127
+
128
+ methodDescriptorGetOrderBook = new grpcWeb.MethodDescriptor(
129
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetOrderBook',
130
+ grpcWeb.MethodType.UNARY,
131
+ tinvest_marketdata_pb.GetOrderBookRequest,
132
+ tinvest_marketdata_pb.GetOrderBookResponse,
133
+ (request: tinvest_marketdata_pb.GetOrderBookRequest) => {
134
+ return request.serializeBinary();
135
+ },
136
+ tinvest_marketdata_pb.GetOrderBookResponse.deserializeBinary
137
+ );
138
+
139
+ getOrderBook(
140
+ request: tinvest_marketdata_pb.GetOrderBookRequest,
141
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetOrderBookResponse>;
142
+
143
+ getOrderBook(
144
+ request: tinvest_marketdata_pb.GetOrderBookRequest,
145
+ metadata: grpcWeb.Metadata | null,
146
+ callback: (err: grpcWeb.RpcError,
147
+ response: tinvest_marketdata_pb.GetOrderBookResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetOrderBookResponse>;
148
+
149
+ getOrderBook(
150
+ request: tinvest_marketdata_pb.GetOrderBookRequest,
151
+ metadata?: grpcWeb.Metadata | null,
152
+ callback?: (err: grpcWeb.RpcError,
153
+ response: tinvest_marketdata_pb.GetOrderBookResponse) => void) {
154
+ if (callback !== undefined) {
155
+ return this.client_.rpcCall(
156
+ this.hostname_ +
157
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetOrderBook',
158
+ request,
159
+ metadata || {},
160
+ this.methodDescriptorGetOrderBook,
161
+ callback);
162
+ }
163
+ return this.client_.unaryCall(
164
+ this.hostname_ +
165
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetOrderBook',
166
+ request,
167
+ metadata || {},
168
+ this.methodDescriptorGetOrderBook);
169
+ }
170
+
171
+ methodDescriptorGetTradingStatus = new grpcWeb.MethodDescriptor(
172
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTradingStatus',
173
+ grpcWeb.MethodType.UNARY,
174
+ tinvest_marketdata_pb.GetTradingStatusRequest,
175
+ tinvest_marketdata_pb.GetTradingStatusResponse,
176
+ (request: tinvest_marketdata_pb.GetTradingStatusRequest) => {
177
+ return request.serializeBinary();
178
+ },
179
+ tinvest_marketdata_pb.GetTradingStatusResponse.deserializeBinary
180
+ );
181
+
182
+ getTradingStatus(
183
+ request: tinvest_marketdata_pb.GetTradingStatusRequest,
184
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetTradingStatusResponse>;
185
+
186
+ getTradingStatus(
187
+ request: tinvest_marketdata_pb.GetTradingStatusRequest,
188
+ metadata: grpcWeb.Metadata | null,
189
+ callback: (err: grpcWeb.RpcError,
190
+ response: tinvest_marketdata_pb.GetTradingStatusResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetTradingStatusResponse>;
191
+
192
+ getTradingStatus(
193
+ request: tinvest_marketdata_pb.GetTradingStatusRequest,
194
+ metadata?: grpcWeb.Metadata | null,
195
+ callback?: (err: grpcWeb.RpcError,
196
+ response: tinvest_marketdata_pb.GetTradingStatusResponse) => void) {
197
+ if (callback !== undefined) {
198
+ return this.client_.rpcCall(
199
+ this.hostname_ +
200
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTradingStatus',
201
+ request,
202
+ metadata || {},
203
+ this.methodDescriptorGetTradingStatus,
204
+ callback);
205
+ }
206
+ return this.client_.unaryCall(
207
+ this.hostname_ +
208
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTradingStatus',
209
+ request,
210
+ metadata || {},
211
+ this.methodDescriptorGetTradingStatus);
212
+ }
213
+
214
+ methodDescriptorGetTradingStatuses = new grpcWeb.MethodDescriptor(
215
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTradingStatuses',
216
+ grpcWeb.MethodType.UNARY,
217
+ tinvest_marketdata_pb.GetTradingStatusesRequest,
218
+ tinvest_marketdata_pb.GetTradingStatusesResponse,
219
+ (request: tinvest_marketdata_pb.GetTradingStatusesRequest) => {
220
+ return request.serializeBinary();
221
+ },
222
+ tinvest_marketdata_pb.GetTradingStatusesResponse.deserializeBinary
223
+ );
224
+
225
+ getTradingStatuses(
226
+ request: tinvest_marketdata_pb.GetTradingStatusesRequest,
227
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetTradingStatusesResponse>;
228
+
229
+ getTradingStatuses(
230
+ request: tinvest_marketdata_pb.GetTradingStatusesRequest,
231
+ metadata: grpcWeb.Metadata | null,
232
+ callback: (err: grpcWeb.RpcError,
233
+ response: tinvest_marketdata_pb.GetTradingStatusesResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetTradingStatusesResponse>;
234
+
235
+ getTradingStatuses(
236
+ request: tinvest_marketdata_pb.GetTradingStatusesRequest,
237
+ metadata?: grpcWeb.Metadata | null,
238
+ callback?: (err: grpcWeb.RpcError,
239
+ response: tinvest_marketdata_pb.GetTradingStatusesResponse) => void) {
240
+ if (callback !== undefined) {
241
+ return this.client_.rpcCall(
242
+ this.hostname_ +
243
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTradingStatuses',
244
+ request,
245
+ metadata || {},
246
+ this.methodDescriptorGetTradingStatuses,
247
+ callback);
248
+ }
249
+ return this.client_.unaryCall(
250
+ this.hostname_ +
251
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTradingStatuses',
252
+ request,
253
+ metadata || {},
254
+ this.methodDescriptorGetTradingStatuses);
255
+ }
256
+
257
+ methodDescriptorGetLastTrades = new grpcWeb.MethodDescriptor(
258
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetLastTrades',
259
+ grpcWeb.MethodType.UNARY,
260
+ tinvest_marketdata_pb.GetLastTradesRequest,
261
+ tinvest_marketdata_pb.GetLastTradesResponse,
262
+ (request: tinvest_marketdata_pb.GetLastTradesRequest) => {
263
+ return request.serializeBinary();
264
+ },
265
+ tinvest_marketdata_pb.GetLastTradesResponse.deserializeBinary
266
+ );
267
+
268
+ getLastTrades(
269
+ request: tinvest_marketdata_pb.GetLastTradesRequest,
270
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetLastTradesResponse>;
271
+
272
+ getLastTrades(
273
+ request: tinvest_marketdata_pb.GetLastTradesRequest,
274
+ metadata: grpcWeb.Metadata | null,
275
+ callback: (err: grpcWeb.RpcError,
276
+ response: tinvest_marketdata_pb.GetLastTradesResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetLastTradesResponse>;
277
+
278
+ getLastTrades(
279
+ request: tinvest_marketdata_pb.GetLastTradesRequest,
280
+ metadata?: grpcWeb.Metadata | null,
281
+ callback?: (err: grpcWeb.RpcError,
282
+ response: tinvest_marketdata_pb.GetLastTradesResponse) => void) {
283
+ if (callback !== undefined) {
284
+ return this.client_.rpcCall(
285
+ this.hostname_ +
286
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetLastTrades',
287
+ request,
288
+ metadata || {},
289
+ this.methodDescriptorGetLastTrades,
290
+ callback);
291
+ }
292
+ return this.client_.unaryCall(
293
+ this.hostname_ +
294
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetLastTrades',
295
+ request,
296
+ metadata || {},
297
+ this.methodDescriptorGetLastTrades);
298
+ }
299
+
300
+ methodDescriptorGetClosePrices = new grpcWeb.MethodDescriptor(
301
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetClosePrices',
302
+ grpcWeb.MethodType.UNARY,
303
+ tinvest_marketdata_pb.GetClosePricesRequest,
304
+ tinvest_marketdata_pb.GetClosePricesResponse,
305
+ (request: tinvest_marketdata_pb.GetClosePricesRequest) => {
306
+ return request.serializeBinary();
307
+ },
308
+ tinvest_marketdata_pb.GetClosePricesResponse.deserializeBinary
309
+ );
310
+
311
+ getClosePrices(
312
+ request: tinvest_marketdata_pb.GetClosePricesRequest,
313
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetClosePricesResponse>;
314
+
315
+ getClosePrices(
316
+ request: tinvest_marketdata_pb.GetClosePricesRequest,
317
+ metadata: grpcWeb.Metadata | null,
318
+ callback: (err: grpcWeb.RpcError,
319
+ response: tinvest_marketdata_pb.GetClosePricesResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetClosePricesResponse>;
320
+
321
+ getClosePrices(
322
+ request: tinvest_marketdata_pb.GetClosePricesRequest,
323
+ metadata?: grpcWeb.Metadata | null,
324
+ callback?: (err: grpcWeb.RpcError,
325
+ response: tinvest_marketdata_pb.GetClosePricesResponse) => void) {
326
+ if (callback !== undefined) {
327
+ return this.client_.rpcCall(
328
+ this.hostname_ +
329
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetClosePrices',
330
+ request,
331
+ metadata || {},
332
+ this.methodDescriptorGetClosePrices,
333
+ callback);
334
+ }
335
+ return this.client_.unaryCall(
336
+ this.hostname_ +
337
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetClosePrices',
338
+ request,
339
+ metadata || {},
340
+ this.methodDescriptorGetClosePrices);
341
+ }
342
+
343
+ methodDescriptorGetTechAnalysis = new grpcWeb.MethodDescriptor(
344
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTechAnalysis',
345
+ grpcWeb.MethodType.UNARY,
346
+ tinvest_marketdata_pb.GetTechAnalysisRequest,
347
+ tinvest_marketdata_pb.GetTechAnalysisResponse,
348
+ (request: tinvest_marketdata_pb.GetTechAnalysisRequest) => {
349
+ return request.serializeBinary();
350
+ },
351
+ tinvest_marketdata_pb.GetTechAnalysisResponse.deserializeBinary
352
+ );
353
+
354
+ getTechAnalysis(
355
+ request: tinvest_marketdata_pb.GetTechAnalysisRequest,
356
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetTechAnalysisResponse>;
357
+
358
+ getTechAnalysis(
359
+ request: tinvest_marketdata_pb.GetTechAnalysisRequest,
360
+ metadata: grpcWeb.Metadata | null,
361
+ callback: (err: grpcWeb.RpcError,
362
+ response: tinvest_marketdata_pb.GetTechAnalysisResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetTechAnalysisResponse>;
363
+
364
+ getTechAnalysis(
365
+ request: tinvest_marketdata_pb.GetTechAnalysisRequest,
366
+ metadata?: grpcWeb.Metadata | null,
367
+ callback?: (err: grpcWeb.RpcError,
368
+ response: tinvest_marketdata_pb.GetTechAnalysisResponse) => void) {
369
+ if (callback !== undefined) {
370
+ return this.client_.rpcCall(
371
+ this.hostname_ +
372
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTechAnalysis',
373
+ request,
374
+ metadata || {},
375
+ this.methodDescriptorGetTechAnalysis,
376
+ callback);
377
+ }
378
+ return this.client_.unaryCall(
379
+ this.hostname_ +
380
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetTechAnalysis',
381
+ request,
382
+ metadata || {},
383
+ this.methodDescriptorGetTechAnalysis);
384
+ }
385
+
386
+ methodDescriptorGetMarketValues = new grpcWeb.MethodDescriptor(
387
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetMarketValues',
388
+ grpcWeb.MethodType.UNARY,
389
+ tinvest_marketdata_pb.GetMarketValuesRequest,
390
+ tinvest_marketdata_pb.GetMarketValuesResponse,
391
+ (request: tinvest_marketdata_pb.GetMarketValuesRequest) => {
392
+ return request.serializeBinary();
393
+ },
394
+ tinvest_marketdata_pb.GetMarketValuesResponse.deserializeBinary
395
+ );
396
+
397
+ getMarketValues(
398
+ request: tinvest_marketdata_pb.GetMarketValuesRequest,
399
+ metadata?: grpcWeb.Metadata | null): Promise<tinvest_marketdata_pb.GetMarketValuesResponse>;
400
+
401
+ getMarketValues(
402
+ request: tinvest_marketdata_pb.GetMarketValuesRequest,
403
+ metadata: grpcWeb.Metadata | null,
404
+ callback: (err: grpcWeb.RpcError,
405
+ response: tinvest_marketdata_pb.GetMarketValuesResponse) => void): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.GetMarketValuesResponse>;
406
+
407
+ getMarketValues(
408
+ request: tinvest_marketdata_pb.GetMarketValuesRequest,
409
+ metadata?: grpcWeb.Metadata | null,
410
+ callback?: (err: grpcWeb.RpcError,
411
+ response: tinvest_marketdata_pb.GetMarketValuesResponse) => void) {
412
+ if (callback !== undefined) {
413
+ return this.client_.rpcCall(
414
+ this.hostname_ +
415
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetMarketValues',
416
+ request,
417
+ metadata || {},
418
+ this.methodDescriptorGetMarketValues,
419
+ callback);
420
+ }
421
+ return this.client_.unaryCall(
422
+ this.hostname_ +
423
+ '/tinkoff.public.invest.api.contract.v1.MarketDataService/GetMarketValues',
424
+ request,
425
+ metadata || {},
426
+ this.methodDescriptorGetMarketValues);
427
+ }
428
+
429
+ }
430
+
431
+ export class MarketDataStreamServiceClient {
432
+ client_: grpcWeb.AbstractClientBase;
433
+ hostname_: string;
434
+ credentials_: null | { [index: string]: string; };
435
+ options_: null | { [index: string]: any; };
436
+
437
+ constructor (hostname: string,
438
+ credentials?: null | { [index: string]: string; },
439
+ options?: null | { [index: string]: any; }) {
440
+ if (!options) options = {};
441
+ if (!credentials) credentials = {};
442
+ options['format'] = 'binary';
443
+
444
+ this.client_ = new grpcWeb.GrpcWebClientBase(options);
445
+ this.hostname_ = hostname.replace(/\/+$/, '');
446
+ this.credentials_ = credentials;
447
+ this.options_ = options;
448
+ }
449
+
450
+ methodDescriptorMarketDataServerSideStream = new grpcWeb.MethodDescriptor(
451
+ '/tinkoff.public.invest.api.contract.v1.MarketDataStreamService/MarketDataServerSideStream',
452
+ grpcWeb.MethodType.SERVER_STREAMING,
453
+ tinvest_marketdata_pb.MarketDataServerSideStreamRequest,
454
+ tinvest_marketdata_pb.MarketDataResponse,
455
+ (request: tinvest_marketdata_pb.MarketDataServerSideStreamRequest) => {
456
+ return request.serializeBinary();
457
+ },
458
+ tinvest_marketdata_pb.MarketDataResponse.deserializeBinary
459
+ );
460
+
461
+ marketDataServerSideStream(
462
+ request: tinvest_marketdata_pb.MarketDataServerSideStreamRequest,
463
+ metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<tinvest_marketdata_pb.MarketDataResponse> {
464
+ return this.client_.serverStreaming(
465
+ this.hostname_ +
466
+ '/tinkoff.public.invest.api.contract.v1.MarketDataStreamService/MarketDataServerSideStream',
467
+ request,
468
+ metadata || {},
469
+ this.methodDescriptorMarketDataServerSideStream);
470
+ }
471
+
472
+ }
473
+