@finam/grpc-tradeapi 2.15.0 → 2.17.0

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.
@@ -0,0 +1,1032 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=js+dts,import_extension=js"
2
+ // @generated from file grpc/tradeapi/v1/corporateactions/corporate_actions_service.proto (package grpc.tradeapi.v1.corporateactions, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { Date } from "../../../../google/type/date_pb.js";
8
+ import type { Decimal } from "../../../../google/type/decimal_pb.js";
9
+
10
+ /**
11
+ * Describes the file grpc/tradeapi/v1/corporateactions/corporate_actions_service.proto.
12
+ */
13
+ export declare const file_grpc_tradeapi_v1_corporateactions_corporate_actions_service: GenFile;
14
+
15
+ /**
16
+ * Запрос предстоящих событий сплитов по инструменту
17
+ *
18
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetFutureSplitsRequest
19
+ */
20
+ export declare type GetFutureSplitsRequest = Message<"grpc.tradeapi.v1.corporateactions.GetFutureSplitsRequest"> & {
21
+ /**
22
+ * Символ инструмента
23
+ *
24
+ * @generated from field: string symbol = 1;
25
+ */
26
+ symbol: string;
27
+
28
+ /**
29
+ * Направление сортировки по дате: asc — от старых к новым, desc — от новых к старым
30
+ *
31
+ * @generated from field: grpc.tradeapi.v1.corporateactions.SortDirection sort_direction = 2;
32
+ */
33
+ sortDirection: SortDirection;
34
+
35
+ /**
36
+ * Лимит. Ограничивает количество возвращаемых сплитов в списке
37
+ *
38
+ * @generated from field: int32 limit = 3;
39
+ */
40
+ limit: number;
41
+
42
+ /**
43
+ * Смещение. Указывает количество сплитов, которые нужно пропустить перед тем, как начать возвращать результат
44
+ *
45
+ * @generated from field: int32 offset = 4;
46
+ */
47
+ offset: number;
48
+ };
49
+
50
+ /**
51
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetFutureSplitsRequest.
52
+ * Use `create(GetFutureSplitsRequestSchema)` to create a new message.
53
+ */
54
+ export declare const GetFutureSplitsRequestSchema: GenMessage<GetFutureSplitsRequest>;
55
+
56
+ /**
57
+ * Предстоящие события сплитов по инструменту
58
+ *
59
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetFutureSplitsResponse
60
+ */
61
+ export declare type GetFutureSplitsResponse = Message<"grpc.tradeapi.v1.corporateactions.GetFutureSplitsResponse"> & {
62
+ /**
63
+ * Символ инструмента
64
+ *
65
+ * @generated from field: string symbol = 1;
66
+ */
67
+ symbol: string;
68
+
69
+ /**
70
+ * Параметры пагинации
71
+ *
72
+ * @generated from field: grpc.tradeapi.v1.corporateactions.Pagination pagination = 2;
73
+ */
74
+ pagination?: Pagination;
75
+
76
+ /**
77
+ * Информация о сплитах
78
+ *
79
+ * @generated from field: repeated grpc.tradeapi.v1.corporateactions.SplitInfo splits = 3;
80
+ */
81
+ splits: SplitInfo[];
82
+ };
83
+
84
+ /**
85
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetFutureSplitsResponse.
86
+ * Use `create(GetFutureSplitsResponseSchema)` to create a new message.
87
+ */
88
+ export declare const GetFutureSplitsResponseSchema: GenMessage<GetFutureSplitsResponse>;
89
+
90
+ /**
91
+ * Запрос истории сплитов по инструменту
92
+ *
93
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetPastSplitsRequest
94
+ */
95
+ export declare type GetPastSplitsRequest = Message<"grpc.tradeapi.v1.corporateactions.GetPastSplitsRequest"> & {
96
+ /**
97
+ * Символ инструмента
98
+ *
99
+ * @generated from field: string symbol = 1;
100
+ */
101
+ symbol: string;
102
+
103
+ /**
104
+ * Начало временного интервала
105
+ *
106
+ * @generated from field: google.type.Date date_from = 2;
107
+ */
108
+ dateFrom?: Date;
109
+
110
+ /**
111
+ * Конец временного интервала
112
+ *
113
+ * @generated from field: google.type.Date date_to = 3;
114
+ */
115
+ dateTo?: Date;
116
+
117
+ /**
118
+ * Направление сортировки по дате: asc — от старых к новым, desc — от новых к старым
119
+ *
120
+ * @generated from field: grpc.tradeapi.v1.corporateactions.SortDirection sort_direction = 4;
121
+ */
122
+ sortDirection: SortDirection;
123
+
124
+ /**
125
+ * Лимит. Ограничивает количество возвращаемых сплитов в списке
126
+ *
127
+ * @generated from field: int32 limit = 5;
128
+ */
129
+ limit: number;
130
+
131
+ /**
132
+ * Смещение. Указывает количество сплитов, которые нужно пропустить перед тем, как начать возвращать результат
133
+ *
134
+ * @generated from field: int32 offset = 6;
135
+ */
136
+ offset: number;
137
+ };
138
+
139
+ /**
140
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetPastSplitsRequest.
141
+ * Use `create(GetPastSplitsRequestSchema)` to create a new message.
142
+ */
143
+ export declare const GetPastSplitsRequestSchema: GenMessage<GetPastSplitsRequest>;
144
+
145
+ /**
146
+ * История сплитов по инструменту
147
+ *
148
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetPastSplitsResponse
149
+ */
150
+ export declare type GetPastSplitsResponse = Message<"grpc.tradeapi.v1.corporateactions.GetPastSplitsResponse"> & {
151
+ /**
152
+ * Символ инструмента
153
+ *
154
+ * @generated from field: string symbol = 1;
155
+ */
156
+ symbol: string;
157
+
158
+ /**
159
+ * Параметры пагинации
160
+ *
161
+ * @generated from field: grpc.tradeapi.v1.corporateactions.Pagination pagination = 2;
162
+ */
163
+ pagination?: Pagination;
164
+
165
+ /**
166
+ * Информация о сплитах
167
+ *
168
+ * @generated from field: repeated grpc.tradeapi.v1.corporateactions.SplitInfo splits = 3;
169
+ */
170
+ splits: SplitInfo[];
171
+ };
172
+
173
+ /**
174
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetPastSplitsResponse.
175
+ * Use `create(GetPastSplitsResponseSchema)` to create a new message.
176
+ */
177
+ export declare const GetPastSplitsResponseSchema: GenMessage<GetPastSplitsResponse>;
178
+
179
+ /**
180
+ * Запрос календаря будущих событий по облигациям
181
+ *
182
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetFutureBondsEventsRequest
183
+ */
184
+ export declare type GetFutureBondsEventsRequest = Message<"grpc.tradeapi.v1.corporateactions.GetFutureBondsEventsRequest"> & {
185
+ /**
186
+ * Символ инструмента
187
+ *
188
+ * @generated from field: string symbol = 1;
189
+ */
190
+ symbol: string;
191
+
192
+ /**
193
+ * Начало временного интервала
194
+ *
195
+ * @generated from field: google.type.Date date_from = 2;
196
+ */
197
+ dateFrom?: Date;
198
+
199
+ /**
200
+ * Конец временного интервала. По умолчанию отдаются данные за год.
201
+ *
202
+ * @generated from field: google.type.Date date_to = 3;
203
+ */
204
+ dateTo?: Date;
205
+
206
+ /**
207
+ * Направление сортировки по дате: asc — от старых к новым, desc — от новых к старым
208
+ *
209
+ * @generated from field: grpc.tradeapi.v1.corporateactions.SortDirection sort_direction = 4;
210
+ */
211
+ sortDirection: SortDirection;
212
+
213
+ /**
214
+ * Лимит. Ограничивает количество возвращаемых событий по облигациям в списке
215
+ *
216
+ * @generated from field: int32 limit = 5;
217
+ */
218
+ limit: number;
219
+
220
+ /**
221
+ * Смещение. Указывает количество событий по облигациям, которые нужно пропустить перед тем, как начать возвращать результат
222
+ *
223
+ * @generated from field: int32 offset = 6;
224
+ */
225
+ offset: number;
226
+ };
227
+
228
+ /**
229
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetFutureBondsEventsRequest.
230
+ * Use `create(GetFutureBondsEventsRequestSchema)` to create a new message.
231
+ */
232
+ export declare const GetFutureBondsEventsRequestSchema: GenMessage<GetFutureBondsEventsRequest>;
233
+
234
+ /**
235
+ * Календарь будущих событий по облигациям
236
+ *
237
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetFutureBondsEventsResponse
238
+ */
239
+ export declare type GetFutureBondsEventsResponse = Message<"grpc.tradeapi.v1.corporateactions.GetFutureBondsEventsResponse"> & {
240
+ /**
241
+ * Символ инструмента
242
+ *
243
+ * @generated from field: string symbol = 1;
244
+ */
245
+ symbol: string;
246
+
247
+ /**
248
+ * Параметры пагинации. Параметр total игнорируется.
249
+ *
250
+ * @generated from field: grpc.tradeapi.v1.corporateactions.Pagination pagination = 2;
251
+ */
252
+ pagination?: Pagination;
253
+
254
+ /**
255
+ * События по облигациям
256
+ *
257
+ * @generated from field: repeated grpc.tradeapi.v1.corporateactions.BondEvent events = 3;
258
+ */
259
+ events: BondEvent[];
260
+ };
261
+
262
+ /**
263
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetFutureBondsEventsResponse.
264
+ * Use `create(GetFutureBondsEventsResponseSchema)` to create a new message.
265
+ */
266
+ export declare const GetFutureBondsEventsResponseSchema: GenMessage<GetFutureBondsEventsResponse>;
267
+
268
+ /**
269
+ * Запрос календаря исторических событий по облигациям
270
+ *
271
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetPastBondsEventsRequest
272
+ */
273
+ export declare type GetPastBondsEventsRequest = Message<"grpc.tradeapi.v1.corporateactions.GetPastBondsEventsRequest"> & {
274
+ /**
275
+ * Символ инструмента
276
+ *
277
+ * @generated from field: string symbol = 1;
278
+ */
279
+ symbol: string;
280
+
281
+ /**
282
+ * Начало временного интервала
283
+ *
284
+ * @generated from field: google.type.Date date_from = 2;
285
+ */
286
+ dateFrom?: Date;
287
+
288
+ /**
289
+ * Конец временного интервала. По умолчанию отдаются данные за год.
290
+ *
291
+ * @generated from field: google.type.Date date_to = 3;
292
+ */
293
+ dateTo?: Date;
294
+
295
+ /**
296
+ * Направление сортировки по дате: asc — от старых к новым, desc — от новых к старым
297
+ *
298
+ * @generated from field: grpc.tradeapi.v1.corporateactions.SortDirection sort_direction = 4;
299
+ */
300
+ sortDirection: SortDirection;
301
+
302
+ /**
303
+ * Лимит. Ограничивает количество возвращаемых событий по облигациям в списке
304
+ *
305
+ * @generated from field: int32 limit = 5;
306
+ */
307
+ limit: number;
308
+
309
+ /**
310
+ * Смещение. Указывает количество событий по облигациям, которые нужно пропустить перед тем, как начать возвращать результат
311
+ *
312
+ * @generated from field: int32 offset = 6;
313
+ */
314
+ offset: number;
315
+ };
316
+
317
+ /**
318
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetPastBondsEventsRequest.
319
+ * Use `create(GetPastBondsEventsRequestSchema)` to create a new message.
320
+ */
321
+ export declare const GetPastBondsEventsRequestSchema: GenMessage<GetPastBondsEventsRequest>;
322
+
323
+ /**
324
+ * Календарь исторических событий по облигациям
325
+ *
326
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetPastBondsEventsResponse
327
+ */
328
+ export declare type GetPastBondsEventsResponse = Message<"grpc.tradeapi.v1.corporateactions.GetPastBondsEventsResponse"> & {
329
+ /**
330
+ * Символ инструмента
331
+ *
332
+ * @generated from field: string symbol = 1;
333
+ */
334
+ symbol: string;
335
+
336
+ /**
337
+ * Параметры пагинации. Параметр total игнорируется.
338
+ *
339
+ * @generated from field: grpc.tradeapi.v1.corporateactions.Pagination pagination = 2;
340
+ */
341
+ pagination?: Pagination;
342
+
343
+ /**
344
+ * События по облигациям
345
+ *
346
+ * @generated from field: repeated grpc.tradeapi.v1.corporateactions.BondEvent events = 3;
347
+ */
348
+ events: BondEvent[];
349
+ };
350
+
351
+ /**
352
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetPastBondsEventsResponse.
353
+ * Use `create(GetPastBondsEventsResponseSchema)` to create a new message.
354
+ */
355
+ export declare const GetPastBondsEventsResponseSchema: GenMessage<GetPastBondsEventsResponse>;
356
+
357
+ /**
358
+ * Событие по облигации
359
+ *
360
+ * @generated from message grpc.tradeapi.v1.corporateactions.BondEvent
361
+ */
362
+ export declare type BondEvent = Message<"grpc.tradeapi.v1.corporateactions.BondEvent"> & {
363
+ /**
364
+ * Дата события
365
+ *
366
+ * @generated from field: google.type.Date date = 1;
367
+ */
368
+ date?: Date;
369
+
370
+ /**
371
+ * Тип события
372
+ *
373
+ * @generated from field: grpc.tradeapi.v1.corporateactions.BondEventType type = 2;
374
+ */
375
+ type: BondEventType;
376
+
377
+ /**
378
+ * Сумма выплаты (опционально: для оферты может отсутствовать, если важна только цена)
379
+ *
380
+ * @generated from field: google.type.Decimal value = 3;
381
+ */
382
+ value?: Decimal;
383
+
384
+ /**
385
+ * Валюта выплаты
386
+ *
387
+ * @generated from field: google.protobuf.StringValue currency = 4;
388
+ */
389
+ currency?: string;
390
+
391
+ /**
392
+ * Специфичные детали события
393
+ *
394
+ * @generated from oneof grpc.tradeapi.v1.corporateactions.BondEvent.event_details
395
+ */
396
+ eventDetails: {
397
+ /**
398
+ * Детали купонной выплаты
399
+ *
400
+ * @generated from field: grpc.tradeapi.v1.corporateactions.CouponEventDetails coupon_details = 5;
401
+ */
402
+ value: CouponEventDetails;
403
+ case: "couponDetails";
404
+ } | {
405
+ /**
406
+ * Детали амортизации (частичного погашения номинала облигации)
407
+ *
408
+ * @generated from field: grpc.tradeapi.v1.corporateactions.AmortizationEventDetails amortization_details = 6;
409
+ */
410
+ value: AmortizationEventDetails;
411
+ case: "amortizationDetails";
412
+ } | {
413
+ /**
414
+ * Детали оферты (событие досрочного выкупа или погашения)
415
+ *
416
+ * @generated from field: grpc.tradeapi.v1.corporateactions.OfferEventDetails offer_details = 7;
417
+ */
418
+ value: OfferEventDetails;
419
+ case: "offerDetails";
420
+ } | { case: undefined; value?: undefined };
421
+ };
422
+
423
+ /**
424
+ * Describes the message grpc.tradeapi.v1.corporateactions.BondEvent.
425
+ * Use `create(BondEventSchema)` to create a new message.
426
+ */
427
+ export declare const BondEventSchema: GenMessage<BondEvent>;
428
+
429
+ /**
430
+ * Детали купонной выплаты
431
+ *
432
+ * @generated from message grpc.tradeapi.v1.corporateactions.CouponEventDetails
433
+ */
434
+ export declare type CouponEventDetails = Message<"grpc.tradeapi.v1.corporateactions.CouponEventDetails"> & {
435
+ /**
436
+ * Дата фиксации реестра (Record Date)
437
+ *
438
+ * @generated from field: google.type.Date record_date = 1;
439
+ */
440
+ recordDate?: Date;
441
+
442
+ /**
443
+ * Дата начала купонного периода
444
+ *
445
+ * @generated from field: google.type.Date start_date = 2;
446
+ */
447
+ startDate?: Date;
448
+
449
+ /**
450
+ * Номинал, на который начисляется купон
451
+ *
452
+ * @generated from field: google.type.Decimal face_value = 3;
453
+ */
454
+ faceValue?: Decimal;
455
+
456
+ /**
457
+ * Ставка купона в процентах
458
+ *
459
+ * @generated from field: google.type.Decimal value_percent = 4;
460
+ */
461
+ valuePercent?: Decimal;
462
+ };
463
+
464
+ /**
465
+ * Describes the message grpc.tradeapi.v1.corporateactions.CouponEventDetails.
466
+ * Use `create(CouponEventDetailsSchema)` to create a new message.
467
+ */
468
+ export declare const CouponEventDetailsSchema: GenMessage<CouponEventDetails>;
469
+
470
+ /**
471
+ * Детали амортизации (частичного погашения номинала облигации)
472
+ *
473
+ * @generated from message grpc.tradeapi.v1.corporateactions.AmortizationEventDetails
474
+ */
475
+ export declare type AmortizationEventDetails = Message<"grpc.tradeapi.v1.corporateactions.AmortizationEventDetails"> & {
476
+ /**
477
+ * Остаточный номинал после амортизации
478
+ *
479
+ * @generated from field: google.type.Decimal new_face_value = 1;
480
+ */
481
+ newFaceValue?: Decimal;
482
+
483
+ /**
484
+ * Первоначальный номинал бумаги
485
+ *
486
+ * @generated from field: google.type.Decimal initial_face_value = 2;
487
+ */
488
+ initialFaceValue?: Decimal;
489
+
490
+ /**
491
+ * Доля амортизации от номинала в процентах
492
+ *
493
+ * @generated from field: google.type.Decimal amortization_percent = 3;
494
+ */
495
+ amortizationPercent?: Decimal;
496
+ };
497
+
498
+ /**
499
+ * Describes the message grpc.tradeapi.v1.corporateactions.AmortizationEventDetails.
500
+ * Use `create(AmortizationEventDetailsSchema)` to create a new message.
501
+ */
502
+ export declare const AmortizationEventDetailsSchema: GenMessage<AmortizationEventDetails>;
503
+
504
+ /**
505
+ * Детали оферты (событие досрочного выкупа или погашения)
506
+ *
507
+ * @generated from message grpc.tradeapi.v1.corporateactions.OfferEventDetails
508
+ */
509
+ export declare type OfferEventDetails = Message<"grpc.tradeapi.v1.corporateactions.OfferEventDetails"> & {
510
+ /**
511
+ * PUT или CALL
512
+ *
513
+ * @generated from field: google.protobuf.StringValue offer_type = 1;
514
+ */
515
+ offerType?: string;
516
+
517
+ /**
518
+ * Цена оферты в процентах от номинала (или в валюте)
519
+ *
520
+ * @generated from field: google.type.Decimal price = 2;
521
+ */
522
+ price?: Decimal;
523
+
524
+ /**
525
+ * Дата начала периода предъявления к оферте
526
+ *
527
+ * @generated from field: google.type.Date start_date = 3;
528
+ */
529
+ startDate?: Date;
530
+
531
+ /**
532
+ * Дата окончания периода предъявления к оферте
533
+ *
534
+ * @generated from field: google.type.Date end_date = 4;
535
+ */
536
+ endDate?: Date;
537
+
538
+ /**
539
+ * Агент по оферте
540
+ *
541
+ * @generated from field: google.protobuf.StringValue agent = 5;
542
+ */
543
+ agent?: string;
544
+ };
545
+
546
+ /**
547
+ * Describes the message grpc.tradeapi.v1.corporateactions.OfferEventDetails.
548
+ * Use `create(OfferEventDetailsSchema)` to create a new message.
549
+ */
550
+ export declare const OfferEventDetailsSchema: GenMessage<OfferEventDetails>;
551
+
552
+ /**
553
+ * Информация о корпоративном действии
554
+ *
555
+ * @generated from message grpc.tradeapi.v1.corporateactions.SplitInfo
556
+ */
557
+ export declare type SplitInfo = Message<"grpc.tradeapi.v1.corporateactions.SplitInfo"> & {
558
+ /**
559
+ * Дата вступления в силу корпоративного действия (дата исполнения)
560
+ *
561
+ * @generated from field: google.type.Date exec_date = 1;
562
+ */
563
+ execDate?: Date;
564
+
565
+ /**
566
+ * Количество ценных бумаг до проведения конвертации (числитель коэффициента)
567
+ *
568
+ * @generated from field: google.type.Decimal old_ratio = 2;
569
+ */
570
+ oldRatio?: Decimal;
571
+
572
+ /**
573
+ * Количество ценных бумаг после проведения конвертации (знаменатель коэффициента)
574
+ *
575
+ * @generated from field: google.type.Decimal new_ratio = 3;
576
+ */
577
+ newRatio?: Decimal;
578
+
579
+ /**
580
+ * Новый размер лота инструмента после исполнения корпоративного действия
581
+ *
582
+ * @generated from field: google.protobuf.Int32Value new_lot = 4;
583
+ */
584
+ newLot?: number;
585
+
586
+ /**
587
+ * Тип события (сплит / консолидация и т.д.)
588
+ *
589
+ * @generated from field: grpc.tradeapi.v1.corporateactions.ConvertationType convertation_type = 5;
590
+ */
591
+ convertationType: ConvertationType;
592
+ };
593
+
594
+ /**
595
+ * Describes the message grpc.tradeapi.v1.corporateactions.SplitInfo.
596
+ * Use `create(SplitInfoSchema)` to create a new message.
597
+ */
598
+ export declare const SplitInfoSchema: GenMessage<SplitInfo>;
599
+
600
+ /**
601
+ * Запрос на получение списка предстоящих дивидендных выплат по инструменту
602
+ *
603
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetFutureDividendsRequest
604
+ */
605
+ export declare type GetFutureDividendsRequest = Message<"grpc.tradeapi.v1.corporateactions.GetFutureDividendsRequest"> & {
606
+ /**
607
+ * Символ инструмента
608
+ *
609
+ * @generated from field: string symbol = 1;
610
+ */
611
+ symbol: string;
612
+
613
+ /**
614
+ * Направление сортировки по дате: asc — от старых к новым, desc — от новых к старым.
615
+ *
616
+ * @generated from field: grpc.tradeapi.v1.corporateactions.SortDirection sort_direction = 2;
617
+ */
618
+ sortDirection: SortDirection;
619
+
620
+ /**
621
+ * Лимит. Ограничивает количество возвращаемых элементов
622
+ *
623
+ * @generated from field: int32 limit = 3;
624
+ */
625
+ limit: number;
626
+
627
+ /**
628
+ * Смещение. Указывает количество элементов, которые нужно пропустить перед тем, как начать возвращать результат
629
+ *
630
+ * @generated from field: int32 offset = 4;
631
+ */
632
+ offset: number;
633
+ };
634
+
635
+ /**
636
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetFutureDividendsRequest.
637
+ * Use `create(GetFutureDividendsRequestSchema)` to create a new message.
638
+ */
639
+ export declare const GetFutureDividendsRequestSchema: GenMessage<GetFutureDividendsRequest>;
640
+
641
+ /**
642
+ * Список предстоящих выплат дивидендов по инструменту с пагинацией
643
+ *
644
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetFutureDividendsResponse
645
+ */
646
+ export declare type GetFutureDividendsResponse = Message<"grpc.tradeapi.v1.corporateactions.GetFutureDividendsResponse"> & {
647
+ /**
648
+ * Параметры пагинации
649
+ *
650
+ * @generated from field: grpc.tradeapi.v1.corporateactions.Pagination pagination = 1;
651
+ */
652
+ pagination?: Pagination;
653
+
654
+ /**
655
+ * Список дивидендов
656
+ *
657
+ * @generated from field: repeated grpc.tradeapi.v1.corporateactions.Dividend dividends = 2;
658
+ */
659
+ dividends: Dividend[];
660
+ };
661
+
662
+ /**
663
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetFutureDividendsResponse.
664
+ * Use `create(GetFutureDividendsResponseSchema)` to create a new message.
665
+ */
666
+ export declare const GetFutureDividendsResponseSchema: GenMessage<GetFutureDividendsResponse>;
667
+
668
+ /**
669
+ * Запрос на получение исторических данных о выплаченных дивидендах по инструменту
670
+ *
671
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetPastDividendsRequest
672
+ */
673
+ export declare type GetPastDividendsRequest = Message<"grpc.tradeapi.v1.corporateactions.GetPastDividendsRequest"> & {
674
+ /**
675
+ * Символ инструмента
676
+ *
677
+ * @generated from field: string symbol = 1;
678
+ */
679
+ symbol: string;
680
+
681
+ /**
682
+ * Направление сортировки по дате: asc — от старых к новым, desc — от новых к старым.
683
+ *
684
+ * @generated from field: grpc.tradeapi.v1.corporateactions.SortDirection sort_direction = 2;
685
+ */
686
+ sortDirection: SortDirection;
687
+
688
+ /**
689
+ * Начало временного интервала
690
+ *
691
+ * @generated from field: google.type.Date date_from = 3;
692
+ */
693
+ dateFrom?: Date;
694
+
695
+ /**
696
+ * Конец временного интервала
697
+ *
698
+ * @generated from field: google.type.Date date_to = 4;
699
+ */
700
+ dateTo?: Date;
701
+
702
+ /**
703
+ * Лимит. Ограничивает количество возвращаемых элементов
704
+ *
705
+ * @generated from field: int32 limit = 5;
706
+ */
707
+ limit: number;
708
+
709
+ /**
710
+ * Смещение. Указывает количество элементов, которые нужно пропустить перед тем, как начать возвращать результат
711
+ *
712
+ * @generated from field: int32 offset = 6;
713
+ */
714
+ offset: number;
715
+ };
716
+
717
+ /**
718
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetPastDividendsRequest.
719
+ * Use `create(GetPastDividendsRequestSchema)` to create a new message.
720
+ */
721
+ export declare const GetPastDividendsRequestSchema: GenMessage<GetPastDividendsRequest>;
722
+
723
+ /**
724
+ * Исторические данные о выплаченных дивидендах по инструменту с пагинацией
725
+ *
726
+ * @generated from message grpc.tradeapi.v1.corporateactions.GetPastDividendsResponse
727
+ */
728
+ export declare type GetPastDividendsResponse = Message<"grpc.tradeapi.v1.corporateactions.GetPastDividendsResponse"> & {
729
+ /**
730
+ * Параметры пагинации
731
+ *
732
+ * @generated from field: grpc.tradeapi.v1.corporateactions.Pagination pagination = 1;
733
+ */
734
+ pagination?: Pagination;
735
+
736
+ /**
737
+ * Список дивидендов
738
+ *
739
+ * @generated from field: repeated grpc.tradeapi.v1.corporateactions.Dividend dividends = 2;
740
+ */
741
+ dividends: Dividend[];
742
+ };
743
+
744
+ /**
745
+ * Describes the message grpc.tradeapi.v1.corporateactions.GetPastDividendsResponse.
746
+ * Use `create(GetPastDividendsResponseSchema)` to create a new message.
747
+ */
748
+ export declare const GetPastDividendsResponseSchema: GenMessage<GetPastDividendsResponse>;
749
+
750
+ /**
751
+ * Информация о дивидендной выплате
752
+ *
753
+ * @generated from message grpc.tradeapi.v1.corporateactions.Dividend
754
+ */
755
+ export declare type Dividend = Message<"grpc.tradeapi.v1.corporateactions.Dividend"> & {
756
+ /**
757
+ * Дата закрытия реестра
758
+ *
759
+ * @generated from field: google.type.Date date = 1;
760
+ */
761
+ date?: Date;
762
+
763
+ /**
764
+ * Размер дивиденда на одну акцию
765
+ *
766
+ * @generated from field: google.type.Decimal amount = 2;
767
+ */
768
+ amount?: Decimal;
769
+
770
+ /**
771
+ * Валюта выплаты дивиденда
772
+ *
773
+ * @generated from field: string currency = 3;
774
+ */
775
+ currency: string;
776
+ };
777
+
778
+ /**
779
+ * Describes the message grpc.tradeapi.v1.corporateactions.Dividend.
780
+ * Use `create(DividendSchema)` to create a new message.
781
+ */
782
+ export declare const DividendSchema: GenMessage<Dividend>;
783
+
784
+ /**
785
+ * Параметры пагинации
786
+ *
787
+ * @generated from message grpc.tradeapi.v1.corporateactions.Pagination
788
+ */
789
+ export declare type Pagination = Message<"grpc.tradeapi.v1.corporateactions.Pagination"> & {
790
+ /**
791
+ * Общее количество элементов
792
+ *
793
+ * @generated from field: int32 total = 1;
794
+ */
795
+ total: number;
796
+
797
+ /**
798
+ * Лимит. Ограничивает количество возвращаемых элементов
799
+ *
800
+ * @generated from field: int32 limit = 2;
801
+ */
802
+ limit: number;
803
+
804
+ /**
805
+ * Смещение. Указывает количество элементов, которые нужно пропустить перед тем, как начать возвращать результат
806
+ *
807
+ * @generated from field: int32 offset = 3;
808
+ */
809
+ offset: number;
810
+
811
+ /**
812
+ * Флаг следующей страницы. Указывает, существует ли следующая страница данных
813
+ *
814
+ * @generated from field: bool has_next = 4;
815
+ */
816
+ hasNext: boolean;
817
+ };
818
+
819
+ /**
820
+ * Describes the message grpc.tradeapi.v1.corporateactions.Pagination.
821
+ * Use `create(PaginationSchema)` to create a new message.
822
+ */
823
+ export declare const PaginationSchema: GenMessage<Pagination>;
824
+
825
+ /**
826
+ * Тип события по облигациям
827
+ *
828
+ * @generated from enum grpc.tradeapi.v1.corporateactions.BondEventType
829
+ */
830
+ export enum BondEventType {
831
+ /**
832
+ * @generated from enum value: UNSPECIFIED = 0;
833
+ */
834
+ UNSPECIFIED = 0,
835
+
836
+ /**
837
+ * @generated from enum value: COUPON = 1;
838
+ */
839
+ COUPON = 1,
840
+
841
+ /**
842
+ * @generated from enum value: AMORTIZATION = 2;
843
+ */
844
+ AMORTIZATION = 2,
845
+
846
+ /**
847
+ * @generated from enum value: OFFER = 3;
848
+ */
849
+ OFFER = 3,
850
+ }
851
+
852
+ /**
853
+ * Describes the enum grpc.tradeapi.v1.corporateactions.BondEventType.
854
+ */
855
+ export declare const BondEventTypeSchema: GenEnum<BondEventType>;
856
+
857
+ /**
858
+ * Возможные типы событий
859
+ *
860
+ * @generated from enum grpc.tradeapi.v1.corporateactions.ConvertationType
861
+ */
862
+ export enum ConvertationType {
863
+ /**
864
+ * Неизвестный тип события/конвертации. Используется по умолчанию
865
+ *
866
+ * @generated from enum value: CONVTYPE_UNKNOWN = 0;
867
+ */
868
+ CONVTYPE_UNKNOWN = 0,
869
+
870
+ /**
871
+ * Обратный выкуп акций. Приобретение компанией-эмитентом собственных акций
872
+ *
873
+ * @generated from enum value: BUYBACK = 1;
874
+ */
875
+ BUYBACK = 1,
876
+
877
+ /**
878
+ * Исполнение Call-оферты. Досрочное погашение (отзыв) ценной бумаги по инициативе эмитента
879
+ *
880
+ * @generated from enum value: CALL_OPTION_EXERCISED = 2;
881
+ */
882
+ CALL_OPTION_EXERCISED = 2,
883
+
884
+ /**
885
+ * Частичное погашение номинала (амортизация) или плановый тираж без проведения лотереи
886
+ *
887
+ * @generated from enum value: DRAWINGS = 3;
888
+ */
889
+ DRAWINGS = 3,
890
+
891
+ /**
892
+ * Погашение по жребию(тираж). Досрочное погашение части выпуска облигаций, где погашаемые бумаги выбираются путем лотереи
893
+ *
894
+ * @generated from enum value: DRAWINGS_BY_LOTTERY = 4;
895
+ */
896
+ DRAWINGS_BY_LOTTERY = 4,
897
+
898
+ /**
899
+ * Досрочная конвертация. Обмен одних ценных бумаг на другие до наступления планового срока (например, конвертируемых облигаций в акции)
900
+ *
901
+ * @generated from enum value: EARLY_CONVERSION = 5;
902
+ */
903
+ EARLY_CONVERSION = 5,
904
+
905
+ /**
906
+ * Погашение по сроку. Плановое полное погашение ценной бумаги по истечении срока её обращения
907
+ *
908
+ * @generated from enum value: MATURITY = 6;
909
+ */
910
+ MATURITY = 6,
911
+
912
+ /**
913
+ * Плановая (обычная) конвертация. Стандартное корпоративное действие: сплит, консолидация или плановый обмен бумаг
914
+ *
915
+ * @generated from enum value: ORDINARY = 7;
916
+ */
917
+ ORDINARY = 7,
918
+
919
+ /**
920
+ * Исполнение Put-оферты. Досрочный выкуп ценной бумаги эмитентом по требованию инвестора (владельца)
921
+ *
922
+ * @generated from enum value: PUT_OPTION_EXERCISED = 8;
923
+ */
924
+ PUT_OPTION_EXERCISED = 8,
925
+
926
+ /**
927
+ * Тендерное предложение. Публичное предложение акционерам о выкупе их бумаг (часто при слияниях/поглощениях)
928
+ *
929
+ * @generated from enum value: TENDER_OFFER = 9;
930
+ */
931
+ TENDER_OFFER = 9,
932
+ }
933
+
934
+ /**
935
+ * Describes the enum grpc.tradeapi.v1.corporateactions.ConvertationType.
936
+ */
937
+ export declare const ConvertationTypeSchema: GenEnum<ConvertationType>;
938
+
939
+ /**
940
+ * Направление сортировки
941
+ *
942
+ * @generated from enum grpc.tradeapi.v1.corporateactions.SortDirection
943
+ */
944
+ export enum SortDirection {
945
+ /**
946
+ * По возрастанию
947
+ *
948
+ * @generated from enum value: ASC = 0;
949
+ */
950
+ ASC = 0,
951
+
952
+ /**
953
+ * По убыванию
954
+ *
955
+ * @generated from enum value: DESC = 1;
956
+ */
957
+ DESC = 1,
958
+ }
959
+
960
+ /**
961
+ * Describes the enum grpc.tradeapi.v1.corporateactions.SortDirection.
962
+ */
963
+ export declare const SortDirectionSchema: GenEnum<SortDirection>;
964
+
965
+ /**
966
+ * Сервис предоставления информации по корпоративным действиям (дивиденды, сплиты)
967
+ *
968
+ * @generated from service grpc.tradeapi.v1.corporateactions.CorporateActionsService
969
+ */
970
+ export declare const CorporateActionsService: GenService<{
971
+ /**
972
+ * Получить предстоящие события сплитов по инструменту
973
+ *
974
+ * @generated from rpc grpc.tradeapi.v1.corporateactions.CorporateActionsService.GetFutureSplits
975
+ */
976
+ getFutureSplits: {
977
+ methodKind: "unary";
978
+ input: typeof GetFutureSplitsRequestSchema;
979
+ output: typeof GetFutureSplitsResponseSchema;
980
+ },
981
+ /**
982
+ * Получить историю сплитов по инструменту
983
+ *
984
+ * @generated from rpc grpc.tradeapi.v1.corporateactions.CorporateActionsService.GetPastSplits
985
+ */
986
+ getPastSplits: {
987
+ methodKind: "unary";
988
+ input: typeof GetPastSplitsRequestSchema;
989
+ output: typeof GetPastSplitsResponseSchema;
990
+ },
991
+ /**
992
+ * Получить календарь будущих событий по облигациям
993
+ *
994
+ * @generated from rpc grpc.tradeapi.v1.corporateactions.CorporateActionsService.GetFutureBondsEvents
995
+ */
996
+ getFutureBondsEvents: {
997
+ methodKind: "unary";
998
+ input: typeof GetFutureBondsEventsRequestSchema;
999
+ output: typeof GetFutureBondsEventsResponseSchema;
1000
+ },
1001
+ /**
1002
+ * Получить календарь исторических событий по облигациям
1003
+ *
1004
+ * @generated from rpc grpc.tradeapi.v1.corporateactions.CorporateActionsService.GetPastBondsEvents
1005
+ */
1006
+ getPastBondsEvents: {
1007
+ methodKind: "unary";
1008
+ input: typeof GetPastBondsEventsRequestSchema;
1009
+ output: typeof GetPastBondsEventsResponseSchema;
1010
+ },
1011
+ /**
1012
+ * Получить список предстоящих (будущих) дивидендных выплат по инструменту.
1013
+ *
1014
+ * @generated from rpc grpc.tradeapi.v1.corporateactions.CorporateActionsService.GetFutureDividends
1015
+ */
1016
+ getFutureDividends: {
1017
+ methodKind: "unary";
1018
+ input: typeof GetFutureDividendsRequestSchema;
1019
+ output: typeof GetFutureDividendsResponseSchema;
1020
+ },
1021
+ /**
1022
+ * Получить исторические данные по выплаченным дивидендам инструмента
1023
+ *
1024
+ * @generated from rpc grpc.tradeapi.v1.corporateactions.CorporateActionsService.GetPastDividends
1025
+ */
1026
+ getPastDividends: {
1027
+ methodKind: "unary";
1028
+ input: typeof GetPastDividendsRequestSchema;
1029
+ output: typeof GetPastDividendsResponseSchema;
1030
+ },
1031
+ }>;
1032
+