@limeint/trade-api 2.18.1-rc.1 → 2.19.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.
- package/README.md +110 -36
- package/dist/client.d.ts +10 -28
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -86
- package/dist/client.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.d.ts +71 -88
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.js +36 -145
- package/dist/generated/grpc/tradeapi/v1/accounts/accounts_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.d.ts +195 -196
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.js +356 -95
- package/dist/generated/grpc/tradeapi/v1/assets/assets_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.d.ts +45 -45
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.js +13 -13
- package/dist/generated/grpc/tradeapi/v1/auth/auth_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.d.ts +69 -221
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.js +165 -1208
- package/dist/generated/grpc/tradeapi/v1/corporateactions/corporate_actions_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.d.ts +136 -143
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.js +202 -63
- package/dist/generated/grpc/tradeapi/v1/marketdata/marketdata_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.d.ts +8 -23
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.js +1 -6
- package/dist/generated/grpc/tradeapi/v1/metrics/usage_metrics_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.d.ts +235 -235
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.js +187 -193
- package/dist/generated/grpc/tradeapi/v1/orders/orders_service.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/side.d.ts +2 -2
- package/dist/generated/grpc/tradeapi/v1/side.d.ts.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/side.js +2 -2
- package/dist/generated/grpc/tradeapi/v1/side.js.map +1 -1
- package/dist/generated/grpc/tradeapi/v1/trade.d.ts +10 -10
- package/dist/generated/grpc/tradeapi/v1/trade.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/auth.d.ts +10 -0
- package/dist/internal/auth.d.ts.map +1 -0
- package/dist/internal/auth.js +63 -0
- package/dist/internal/auth.js.map +1 -0
- package/dist/internal/retry.d.ts +10 -0
- package/dist/internal/retry.d.ts.map +1 -0
- package/dist/internal/retry.js +22 -0
- package/dist/internal/retry.js.map +1 -0
- package/dist/internal/services.d.ts +20 -0
- package/dist/internal/services.d.ts.map +1 -0
- package/dist/internal/services.js +20 -0
- package/dist/internal/services.js.map +1 -0
- package/package.json +9 -8
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.d.ts +0 -203
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.d.ts.map +0 -1
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.js +0 -871
- package/dist/generated/grpc/tradeapi/v1/reports/reports_service.js.map +0 -1
- package/dist/reports.d.ts +0 -2
- package/dist/reports.d.ts.map +0 -1
- package/dist/reports.js +0 -2
- package/dist/reports.js.map +0 -1
|
@@ -5,76 +5,32 @@
|
|
|
5
5
|
// source: grpc/tradeapi/v1/corporateactions/corporate_actions_service.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
-
import { Int32Value
|
|
8
|
+
import { Int32Value } from "../../../../google/protobuf/wrappers.js";
|
|
9
9
|
import { DateMessage } from "../../../../google/type/date.js";
|
|
10
10
|
import { Decimal } from "../../../../google/type/decimal.js";
|
|
11
11
|
export const protobufPackage = "grpc.tradeapi.v1.corporateactions";
|
|
12
|
-
/**
|
|
13
|
-
export var BondEventType;
|
|
14
|
-
(function (BondEventType) {
|
|
15
|
-
BondEventType[BondEventType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
16
|
-
BondEventType[BondEventType["COUPON"] = 1] = "COUPON";
|
|
17
|
-
BondEventType[BondEventType["AMORTIZATION"] = 2] = "AMORTIZATION";
|
|
18
|
-
BondEventType[BondEventType["OFFER"] = 3] = "OFFER";
|
|
19
|
-
BondEventType[BondEventType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
20
|
-
})(BondEventType || (BondEventType = {}));
|
|
21
|
-
export function bondEventTypeFromJSON(object) {
|
|
22
|
-
switch (object) {
|
|
23
|
-
case 0:
|
|
24
|
-
case "UNSPECIFIED":
|
|
25
|
-
return BondEventType.UNSPECIFIED;
|
|
26
|
-
case 1:
|
|
27
|
-
case "COUPON":
|
|
28
|
-
return BondEventType.COUPON;
|
|
29
|
-
case 2:
|
|
30
|
-
case "AMORTIZATION":
|
|
31
|
-
return BondEventType.AMORTIZATION;
|
|
32
|
-
case 3:
|
|
33
|
-
case "OFFER":
|
|
34
|
-
return BondEventType.OFFER;
|
|
35
|
-
case -1:
|
|
36
|
-
case "UNRECOGNIZED":
|
|
37
|
-
default:
|
|
38
|
-
return BondEventType.UNRECOGNIZED;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export function bondEventTypeToJSON(object) {
|
|
42
|
-
switch (object) {
|
|
43
|
-
case BondEventType.UNSPECIFIED:
|
|
44
|
-
return "UNSPECIFIED";
|
|
45
|
-
case BondEventType.COUPON:
|
|
46
|
-
return "COUPON";
|
|
47
|
-
case BondEventType.AMORTIZATION:
|
|
48
|
-
return "AMORTIZATION";
|
|
49
|
-
case BondEventType.OFFER:
|
|
50
|
-
return "OFFER";
|
|
51
|
-
case BondEventType.UNRECOGNIZED:
|
|
52
|
-
default:
|
|
53
|
-
return "UNRECOGNIZED";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/** Possible event types */
|
|
12
|
+
/** Possible conversion types */
|
|
57
13
|
export var ConvertationType;
|
|
58
14
|
(function (ConvertationType) {
|
|
59
15
|
/** CONVTYPE_UNKNOWN - Unknown event/conversion type. Used by default */
|
|
60
16
|
ConvertationType[ConvertationType["CONVTYPE_UNKNOWN"] = 0] = "CONVTYPE_UNKNOWN";
|
|
61
|
-
/** BUYBACK -
|
|
17
|
+
/** BUYBACK - Stock buyback. The purchase of its own shares by the issuing company */
|
|
62
18
|
ConvertationType[ConvertationType["BUYBACK"] = 1] = "BUYBACK";
|
|
63
|
-
/** CALL_OPTION_EXERCISED -
|
|
19
|
+
/** CALL_OPTION_EXERCISED - Call option exercised. Early redemption (recall) of a security initiated by the issuer */
|
|
64
20
|
ConvertationType[ConvertationType["CALL_OPTION_EXERCISED"] = 2] = "CALL_OPTION_EXERCISED";
|
|
65
|
-
/** DRAWINGS - Partial face
|
|
21
|
+
/** DRAWINGS - Partial repayment of the face value (amortization) or scheduled drawing without a lottery */
|
|
66
22
|
ConvertationType[ConvertationType["DRAWINGS"] = 3] = "DRAWINGS";
|
|
67
|
-
/** DRAWINGS_BY_LOTTERY -
|
|
23
|
+
/** DRAWINGS_BY_LOTTERY - Redemption by drawing (lottery). Early redemption of a part of a bond issue, where the bonds to be redeemed are selected by lottery */
|
|
68
24
|
ConvertationType[ConvertationType["DRAWINGS_BY_LOTTERY"] = 4] = "DRAWINGS_BY_LOTTERY";
|
|
69
|
-
/** EARLY_CONVERSION - Early conversion. Exchange of one security for another before the scheduled date (
|
|
25
|
+
/** EARLY_CONVERSION - Early conversion. Exchange of one type of security for another before the scheduled date (e.g., convertible bonds to shares) */
|
|
70
26
|
ConvertationType[ConvertationType["EARLY_CONVERSION"] = 5] = "EARLY_CONVERSION";
|
|
71
|
-
/** MATURITY -
|
|
27
|
+
/** MATURITY - Maturity. Scheduled full repayment of a security at the end of its circulation period */
|
|
72
28
|
ConvertationType[ConvertationType["MATURITY"] = 6] = "MATURITY";
|
|
73
|
-
/** ORDINARY -
|
|
29
|
+
/** ORDINARY - Ordinary (scheduled) conversion. A standard corporate action: split, consolidation, or scheduled exchange of securities */
|
|
74
30
|
ConvertationType[ConvertationType["ORDINARY"] = 7] = "ORDINARY";
|
|
75
|
-
/** PUT_OPTION_EXERCISED -
|
|
31
|
+
/** PUT_OPTION_EXERCISED - Put option exercised. Early repurchase of a security by the issuer at the request of the investor (holder) */
|
|
76
32
|
ConvertationType[ConvertationType["PUT_OPTION_EXERCISED"] = 8] = "PUT_OPTION_EXERCISED";
|
|
77
|
-
/** TENDER_OFFER - Tender
|
|
33
|
+
/** TENDER_OFFER - Tender offer. A public offer to shareholders to buy their securities (often during mergers/acquisitions) */
|
|
78
34
|
ConvertationType[ConvertationType["TENDER_OFFER"] = 9] = "TENDER_OFFER";
|
|
79
35
|
ConvertationType[ConvertationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
80
36
|
})(ConvertationType || (ConvertationType = {}));
|
|
@@ -143,7 +99,7 @@ export function convertationTypeToJSON(object) {
|
|
|
143
99
|
return "UNRECOGNIZED";
|
|
144
100
|
}
|
|
145
101
|
}
|
|
146
|
-
/** Sort
|
|
102
|
+
/** Sort order */
|
|
147
103
|
export var SortDirection;
|
|
148
104
|
(function (SortDirection) {
|
|
149
105
|
/** ASC - Ascending */
|
|
@@ -564,1017 +520,32 @@ export const GetPastSplitsResponse = {
|
|
|
564
520
|
return {
|
|
565
521
|
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
566
522
|
pagination: isSet(object.pagination) ? Pagination.fromJSON(object.pagination) : undefined,
|
|
567
|
-
splits: globalThis.Array.isArray(object?.splits) ? object.splits.map((e) => SplitInfo.fromJSON(e)) : [],
|
|
568
|
-
};
|
|
569
|
-
},
|
|
570
|
-
toJSON(message) {
|
|
571
|
-
const obj = {};
|
|
572
|
-
if (message.symbol !== "") {
|
|
573
|
-
obj.symbol = message.symbol;
|
|
574
|
-
}
|
|
575
|
-
if (message.pagination !== undefined) {
|
|
576
|
-
obj.pagination = Pagination.toJSON(message.pagination);
|
|
577
|
-
}
|
|
578
|
-
if (message.splits?.length) {
|
|
579
|
-
obj.splits = message.splits.map((e) => SplitInfo.toJSON(e));
|
|
580
|
-
}
|
|
581
|
-
return obj;
|
|
582
|
-
},
|
|
583
|
-
create(base) {
|
|
584
|
-
return GetPastSplitsResponse.fromPartial(base ?? {});
|
|
585
|
-
},
|
|
586
|
-
fromPartial(object) {
|
|
587
|
-
const message = createBaseGetPastSplitsResponse();
|
|
588
|
-
message.symbol = object.symbol ?? "";
|
|
589
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
590
|
-
? Pagination.fromPartial(object.pagination)
|
|
591
|
-
: undefined;
|
|
592
|
-
message.splits = object.splits?.map((e) => SplitInfo.fromPartial(e)) || [];
|
|
593
|
-
return message;
|
|
594
|
-
},
|
|
595
|
-
};
|
|
596
|
-
function createBaseGetFutureBondsEventsRequest() {
|
|
597
|
-
return { symbol: "", dateFrom: undefined, dateTo: undefined, sortDirection: 0, limit: 0, offset: 0 };
|
|
598
|
-
}
|
|
599
|
-
export const GetFutureBondsEventsRequest = {
|
|
600
|
-
encode(message, writer = new BinaryWriter()) {
|
|
601
|
-
if (message.symbol !== "") {
|
|
602
|
-
writer.uint32(10).string(message.symbol);
|
|
603
|
-
}
|
|
604
|
-
if (message.dateFrom !== undefined) {
|
|
605
|
-
DateMessage.encode(message.dateFrom, writer.uint32(18).fork()).join();
|
|
606
|
-
}
|
|
607
|
-
if (message.dateTo !== undefined) {
|
|
608
|
-
DateMessage.encode(message.dateTo, writer.uint32(26).fork()).join();
|
|
609
|
-
}
|
|
610
|
-
if (message.sortDirection !== 0) {
|
|
611
|
-
writer.uint32(32).int32(message.sortDirection);
|
|
612
|
-
}
|
|
613
|
-
if (message.limit !== 0) {
|
|
614
|
-
writer.uint32(40).int32(message.limit);
|
|
615
|
-
}
|
|
616
|
-
if (message.offset !== 0) {
|
|
617
|
-
writer.uint32(48).int32(message.offset);
|
|
618
|
-
}
|
|
619
|
-
return writer;
|
|
620
|
-
},
|
|
621
|
-
decode(input, length) {
|
|
622
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
623
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
624
|
-
const message = createBaseGetFutureBondsEventsRequest();
|
|
625
|
-
while (reader.pos < end) {
|
|
626
|
-
const tag = reader.uint32();
|
|
627
|
-
switch (tag >>> 3) {
|
|
628
|
-
case 1: {
|
|
629
|
-
if (tag !== 10) {
|
|
630
|
-
break;
|
|
631
|
-
}
|
|
632
|
-
message.symbol = reader.string();
|
|
633
|
-
continue;
|
|
634
|
-
}
|
|
635
|
-
case 2: {
|
|
636
|
-
if (tag !== 18) {
|
|
637
|
-
break;
|
|
638
|
-
}
|
|
639
|
-
message.dateFrom = DateMessage.decode(reader, reader.uint32());
|
|
640
|
-
continue;
|
|
641
|
-
}
|
|
642
|
-
case 3: {
|
|
643
|
-
if (tag !== 26) {
|
|
644
|
-
break;
|
|
645
|
-
}
|
|
646
|
-
message.dateTo = DateMessage.decode(reader, reader.uint32());
|
|
647
|
-
continue;
|
|
648
|
-
}
|
|
649
|
-
case 4: {
|
|
650
|
-
if (tag !== 32) {
|
|
651
|
-
break;
|
|
652
|
-
}
|
|
653
|
-
message.sortDirection = reader.int32();
|
|
654
|
-
continue;
|
|
655
|
-
}
|
|
656
|
-
case 5: {
|
|
657
|
-
if (tag !== 40) {
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
message.limit = reader.int32();
|
|
661
|
-
continue;
|
|
662
|
-
}
|
|
663
|
-
case 6: {
|
|
664
|
-
if (tag !== 48) {
|
|
665
|
-
break;
|
|
666
|
-
}
|
|
667
|
-
message.offset = reader.int32();
|
|
668
|
-
continue;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
|
-
reader.skip(tag & 7);
|
|
675
|
-
}
|
|
676
|
-
return message;
|
|
677
|
-
},
|
|
678
|
-
fromJSON(object) {
|
|
679
|
-
return {
|
|
680
|
-
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
681
|
-
dateFrom: isSet(object.dateFrom)
|
|
682
|
-
? DateMessage.fromJSON(object.dateFrom)
|
|
683
|
-
: isSet(object.date_from)
|
|
684
|
-
? DateMessage.fromJSON(object.date_from)
|
|
685
|
-
: undefined,
|
|
686
|
-
dateTo: isSet(object.dateTo)
|
|
687
|
-
? DateMessage.fromJSON(object.dateTo)
|
|
688
|
-
: isSet(object.date_to)
|
|
689
|
-
? DateMessage.fromJSON(object.date_to)
|
|
690
|
-
: undefined,
|
|
691
|
-
sortDirection: isSet(object.sortDirection)
|
|
692
|
-
? sortDirectionFromJSON(object.sortDirection)
|
|
693
|
-
: isSet(object.sort_direction)
|
|
694
|
-
? sortDirectionFromJSON(object.sort_direction)
|
|
695
|
-
: 0,
|
|
696
|
-
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
697
|
-
offset: isSet(object.offset) ? globalThis.Number(object.offset) : 0,
|
|
698
|
-
};
|
|
699
|
-
},
|
|
700
|
-
toJSON(message) {
|
|
701
|
-
const obj = {};
|
|
702
|
-
if (message.symbol !== "") {
|
|
703
|
-
obj.symbol = message.symbol;
|
|
704
|
-
}
|
|
705
|
-
if (message.dateFrom !== undefined) {
|
|
706
|
-
obj.dateFrom = DateMessage.toJSON(message.dateFrom);
|
|
707
|
-
}
|
|
708
|
-
if (message.dateTo !== undefined) {
|
|
709
|
-
obj.dateTo = DateMessage.toJSON(message.dateTo);
|
|
710
|
-
}
|
|
711
|
-
if (message.sortDirection !== 0) {
|
|
712
|
-
obj.sortDirection = sortDirectionToJSON(message.sortDirection);
|
|
713
|
-
}
|
|
714
|
-
if (message.limit !== 0) {
|
|
715
|
-
obj.limit = Math.round(message.limit);
|
|
716
|
-
}
|
|
717
|
-
if (message.offset !== 0) {
|
|
718
|
-
obj.offset = Math.round(message.offset);
|
|
719
|
-
}
|
|
720
|
-
return obj;
|
|
721
|
-
},
|
|
722
|
-
create(base) {
|
|
723
|
-
return GetFutureBondsEventsRequest.fromPartial(base ?? {});
|
|
724
|
-
},
|
|
725
|
-
fromPartial(object) {
|
|
726
|
-
const message = createBaseGetFutureBondsEventsRequest();
|
|
727
|
-
message.symbol = object.symbol ?? "";
|
|
728
|
-
message.dateFrom = (object.dateFrom !== undefined && object.dateFrom !== null)
|
|
729
|
-
? DateMessage.fromPartial(object.dateFrom)
|
|
730
|
-
: undefined;
|
|
731
|
-
message.dateTo = (object.dateTo !== undefined && object.dateTo !== null)
|
|
732
|
-
? DateMessage.fromPartial(object.dateTo)
|
|
733
|
-
: undefined;
|
|
734
|
-
message.sortDirection = object.sortDirection ?? 0;
|
|
735
|
-
message.limit = object.limit ?? 0;
|
|
736
|
-
message.offset = object.offset ?? 0;
|
|
737
|
-
return message;
|
|
738
|
-
},
|
|
739
|
-
};
|
|
740
|
-
function createBaseGetFutureBondsEventsResponse() {
|
|
741
|
-
return { symbol: "", pagination: undefined, events: [] };
|
|
742
|
-
}
|
|
743
|
-
export const GetFutureBondsEventsResponse = {
|
|
744
|
-
encode(message, writer = new BinaryWriter()) {
|
|
745
|
-
if (message.symbol !== "") {
|
|
746
|
-
writer.uint32(10).string(message.symbol);
|
|
747
|
-
}
|
|
748
|
-
if (message.pagination !== undefined) {
|
|
749
|
-
Pagination.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
750
|
-
}
|
|
751
|
-
for (const v of message.events) {
|
|
752
|
-
BondEvent.encode(v, writer.uint32(26).fork()).join();
|
|
753
|
-
}
|
|
754
|
-
return writer;
|
|
755
|
-
},
|
|
756
|
-
decode(input, length) {
|
|
757
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
758
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
759
|
-
const message = createBaseGetFutureBondsEventsResponse();
|
|
760
|
-
while (reader.pos < end) {
|
|
761
|
-
const tag = reader.uint32();
|
|
762
|
-
switch (tag >>> 3) {
|
|
763
|
-
case 1: {
|
|
764
|
-
if (tag !== 10) {
|
|
765
|
-
break;
|
|
766
|
-
}
|
|
767
|
-
message.symbol = reader.string();
|
|
768
|
-
continue;
|
|
769
|
-
}
|
|
770
|
-
case 2: {
|
|
771
|
-
if (tag !== 18) {
|
|
772
|
-
break;
|
|
773
|
-
}
|
|
774
|
-
message.pagination = Pagination.decode(reader, reader.uint32());
|
|
775
|
-
continue;
|
|
776
|
-
}
|
|
777
|
-
case 3: {
|
|
778
|
-
if (tag !== 26) {
|
|
779
|
-
break;
|
|
780
|
-
}
|
|
781
|
-
message.events.push(BondEvent.decode(reader, reader.uint32()));
|
|
782
|
-
continue;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
786
|
-
break;
|
|
787
|
-
}
|
|
788
|
-
reader.skip(tag & 7);
|
|
789
|
-
}
|
|
790
|
-
return message;
|
|
791
|
-
},
|
|
792
|
-
fromJSON(object) {
|
|
793
|
-
return {
|
|
794
|
-
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
795
|
-
pagination: isSet(object.pagination) ? Pagination.fromJSON(object.pagination) : undefined,
|
|
796
|
-
events: globalThis.Array.isArray(object?.events) ? object.events.map((e) => BondEvent.fromJSON(e)) : [],
|
|
797
|
-
};
|
|
798
|
-
},
|
|
799
|
-
toJSON(message) {
|
|
800
|
-
const obj = {};
|
|
801
|
-
if (message.symbol !== "") {
|
|
802
|
-
obj.symbol = message.symbol;
|
|
803
|
-
}
|
|
804
|
-
if (message.pagination !== undefined) {
|
|
805
|
-
obj.pagination = Pagination.toJSON(message.pagination);
|
|
806
|
-
}
|
|
807
|
-
if (message.events?.length) {
|
|
808
|
-
obj.events = message.events.map((e) => BondEvent.toJSON(e));
|
|
809
|
-
}
|
|
810
|
-
return obj;
|
|
811
|
-
},
|
|
812
|
-
create(base) {
|
|
813
|
-
return GetFutureBondsEventsResponse.fromPartial(base ?? {});
|
|
814
|
-
},
|
|
815
|
-
fromPartial(object) {
|
|
816
|
-
const message = createBaseGetFutureBondsEventsResponse();
|
|
817
|
-
message.symbol = object.symbol ?? "";
|
|
818
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
819
|
-
? Pagination.fromPartial(object.pagination)
|
|
820
|
-
: undefined;
|
|
821
|
-
message.events = object.events?.map((e) => BondEvent.fromPartial(e)) || [];
|
|
822
|
-
return message;
|
|
823
|
-
},
|
|
824
|
-
};
|
|
825
|
-
function createBaseGetPastBondsEventsRequest() {
|
|
826
|
-
return { symbol: "", dateFrom: undefined, dateTo: undefined, sortDirection: 0, limit: 0, offset: 0 };
|
|
827
|
-
}
|
|
828
|
-
export const GetPastBondsEventsRequest = {
|
|
829
|
-
encode(message, writer = new BinaryWriter()) {
|
|
830
|
-
if (message.symbol !== "") {
|
|
831
|
-
writer.uint32(10).string(message.symbol);
|
|
832
|
-
}
|
|
833
|
-
if (message.dateFrom !== undefined) {
|
|
834
|
-
DateMessage.encode(message.dateFrom, writer.uint32(18).fork()).join();
|
|
835
|
-
}
|
|
836
|
-
if (message.dateTo !== undefined) {
|
|
837
|
-
DateMessage.encode(message.dateTo, writer.uint32(26).fork()).join();
|
|
838
|
-
}
|
|
839
|
-
if (message.sortDirection !== 0) {
|
|
840
|
-
writer.uint32(32).int32(message.sortDirection);
|
|
841
|
-
}
|
|
842
|
-
if (message.limit !== 0) {
|
|
843
|
-
writer.uint32(40).int32(message.limit);
|
|
844
|
-
}
|
|
845
|
-
if (message.offset !== 0) {
|
|
846
|
-
writer.uint32(48).int32(message.offset);
|
|
847
|
-
}
|
|
848
|
-
return writer;
|
|
849
|
-
},
|
|
850
|
-
decode(input, length) {
|
|
851
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
852
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
853
|
-
const message = createBaseGetPastBondsEventsRequest();
|
|
854
|
-
while (reader.pos < end) {
|
|
855
|
-
const tag = reader.uint32();
|
|
856
|
-
switch (tag >>> 3) {
|
|
857
|
-
case 1: {
|
|
858
|
-
if (tag !== 10) {
|
|
859
|
-
break;
|
|
860
|
-
}
|
|
861
|
-
message.symbol = reader.string();
|
|
862
|
-
continue;
|
|
863
|
-
}
|
|
864
|
-
case 2: {
|
|
865
|
-
if (tag !== 18) {
|
|
866
|
-
break;
|
|
867
|
-
}
|
|
868
|
-
message.dateFrom = DateMessage.decode(reader, reader.uint32());
|
|
869
|
-
continue;
|
|
870
|
-
}
|
|
871
|
-
case 3: {
|
|
872
|
-
if (tag !== 26) {
|
|
873
|
-
break;
|
|
874
|
-
}
|
|
875
|
-
message.dateTo = DateMessage.decode(reader, reader.uint32());
|
|
876
|
-
continue;
|
|
877
|
-
}
|
|
878
|
-
case 4: {
|
|
879
|
-
if (tag !== 32) {
|
|
880
|
-
break;
|
|
881
|
-
}
|
|
882
|
-
message.sortDirection = reader.int32();
|
|
883
|
-
continue;
|
|
884
|
-
}
|
|
885
|
-
case 5: {
|
|
886
|
-
if (tag !== 40) {
|
|
887
|
-
break;
|
|
888
|
-
}
|
|
889
|
-
message.limit = reader.int32();
|
|
890
|
-
continue;
|
|
891
|
-
}
|
|
892
|
-
case 6: {
|
|
893
|
-
if (tag !== 48) {
|
|
894
|
-
break;
|
|
895
|
-
}
|
|
896
|
-
message.offset = reader.int32();
|
|
897
|
-
continue;
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
901
|
-
break;
|
|
902
|
-
}
|
|
903
|
-
reader.skip(tag & 7);
|
|
904
|
-
}
|
|
905
|
-
return message;
|
|
906
|
-
},
|
|
907
|
-
fromJSON(object) {
|
|
908
|
-
return {
|
|
909
|
-
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
910
|
-
dateFrom: isSet(object.dateFrom)
|
|
911
|
-
? DateMessage.fromJSON(object.dateFrom)
|
|
912
|
-
: isSet(object.date_from)
|
|
913
|
-
? DateMessage.fromJSON(object.date_from)
|
|
914
|
-
: undefined,
|
|
915
|
-
dateTo: isSet(object.dateTo)
|
|
916
|
-
? DateMessage.fromJSON(object.dateTo)
|
|
917
|
-
: isSet(object.date_to)
|
|
918
|
-
? DateMessage.fromJSON(object.date_to)
|
|
919
|
-
: undefined,
|
|
920
|
-
sortDirection: isSet(object.sortDirection)
|
|
921
|
-
? sortDirectionFromJSON(object.sortDirection)
|
|
922
|
-
: isSet(object.sort_direction)
|
|
923
|
-
? sortDirectionFromJSON(object.sort_direction)
|
|
924
|
-
: 0,
|
|
925
|
-
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
926
|
-
offset: isSet(object.offset) ? globalThis.Number(object.offset) : 0,
|
|
927
|
-
};
|
|
928
|
-
},
|
|
929
|
-
toJSON(message) {
|
|
930
|
-
const obj = {};
|
|
931
|
-
if (message.symbol !== "") {
|
|
932
|
-
obj.symbol = message.symbol;
|
|
933
|
-
}
|
|
934
|
-
if (message.dateFrom !== undefined) {
|
|
935
|
-
obj.dateFrom = DateMessage.toJSON(message.dateFrom);
|
|
936
|
-
}
|
|
937
|
-
if (message.dateTo !== undefined) {
|
|
938
|
-
obj.dateTo = DateMessage.toJSON(message.dateTo);
|
|
939
|
-
}
|
|
940
|
-
if (message.sortDirection !== 0) {
|
|
941
|
-
obj.sortDirection = sortDirectionToJSON(message.sortDirection);
|
|
942
|
-
}
|
|
943
|
-
if (message.limit !== 0) {
|
|
944
|
-
obj.limit = Math.round(message.limit);
|
|
945
|
-
}
|
|
946
|
-
if (message.offset !== 0) {
|
|
947
|
-
obj.offset = Math.round(message.offset);
|
|
948
|
-
}
|
|
949
|
-
return obj;
|
|
950
|
-
},
|
|
951
|
-
create(base) {
|
|
952
|
-
return GetPastBondsEventsRequest.fromPartial(base ?? {});
|
|
953
|
-
},
|
|
954
|
-
fromPartial(object) {
|
|
955
|
-
const message = createBaseGetPastBondsEventsRequest();
|
|
956
|
-
message.symbol = object.symbol ?? "";
|
|
957
|
-
message.dateFrom = (object.dateFrom !== undefined && object.dateFrom !== null)
|
|
958
|
-
? DateMessage.fromPartial(object.dateFrom)
|
|
959
|
-
: undefined;
|
|
960
|
-
message.dateTo = (object.dateTo !== undefined && object.dateTo !== null)
|
|
961
|
-
? DateMessage.fromPartial(object.dateTo)
|
|
962
|
-
: undefined;
|
|
963
|
-
message.sortDirection = object.sortDirection ?? 0;
|
|
964
|
-
message.limit = object.limit ?? 0;
|
|
965
|
-
message.offset = object.offset ?? 0;
|
|
966
|
-
return message;
|
|
967
|
-
},
|
|
968
|
-
};
|
|
969
|
-
function createBaseGetPastBondsEventsResponse() {
|
|
970
|
-
return { symbol: "", pagination: undefined, events: [] };
|
|
971
|
-
}
|
|
972
|
-
export const GetPastBondsEventsResponse = {
|
|
973
|
-
encode(message, writer = new BinaryWriter()) {
|
|
974
|
-
if (message.symbol !== "") {
|
|
975
|
-
writer.uint32(10).string(message.symbol);
|
|
976
|
-
}
|
|
977
|
-
if (message.pagination !== undefined) {
|
|
978
|
-
Pagination.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
979
|
-
}
|
|
980
|
-
for (const v of message.events) {
|
|
981
|
-
BondEvent.encode(v, writer.uint32(26).fork()).join();
|
|
982
|
-
}
|
|
983
|
-
return writer;
|
|
984
|
-
},
|
|
985
|
-
decode(input, length) {
|
|
986
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
987
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
988
|
-
const message = createBaseGetPastBondsEventsResponse();
|
|
989
|
-
while (reader.pos < end) {
|
|
990
|
-
const tag = reader.uint32();
|
|
991
|
-
switch (tag >>> 3) {
|
|
992
|
-
case 1: {
|
|
993
|
-
if (tag !== 10) {
|
|
994
|
-
break;
|
|
995
|
-
}
|
|
996
|
-
message.symbol = reader.string();
|
|
997
|
-
continue;
|
|
998
|
-
}
|
|
999
|
-
case 2: {
|
|
1000
|
-
if (tag !== 18) {
|
|
1001
|
-
break;
|
|
1002
|
-
}
|
|
1003
|
-
message.pagination = Pagination.decode(reader, reader.uint32());
|
|
1004
|
-
continue;
|
|
1005
|
-
}
|
|
1006
|
-
case 3: {
|
|
1007
|
-
if (tag !== 26) {
|
|
1008
|
-
break;
|
|
1009
|
-
}
|
|
1010
|
-
message.events.push(BondEvent.decode(reader, reader.uint32()));
|
|
1011
|
-
continue;
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1015
|
-
break;
|
|
1016
|
-
}
|
|
1017
|
-
reader.skip(tag & 7);
|
|
1018
|
-
}
|
|
1019
|
-
return message;
|
|
1020
|
-
},
|
|
1021
|
-
fromJSON(object) {
|
|
1022
|
-
return {
|
|
1023
|
-
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
1024
|
-
pagination: isSet(object.pagination) ? Pagination.fromJSON(object.pagination) : undefined,
|
|
1025
|
-
events: globalThis.Array.isArray(object?.events) ? object.events.map((e) => BondEvent.fromJSON(e)) : [],
|
|
1026
|
-
};
|
|
1027
|
-
},
|
|
1028
|
-
toJSON(message) {
|
|
1029
|
-
const obj = {};
|
|
1030
|
-
if (message.symbol !== "") {
|
|
1031
|
-
obj.symbol = message.symbol;
|
|
1032
|
-
}
|
|
1033
|
-
if (message.pagination !== undefined) {
|
|
1034
|
-
obj.pagination = Pagination.toJSON(message.pagination);
|
|
1035
|
-
}
|
|
1036
|
-
if (message.events?.length) {
|
|
1037
|
-
obj.events = message.events.map((e) => BondEvent.toJSON(e));
|
|
1038
|
-
}
|
|
1039
|
-
return obj;
|
|
1040
|
-
},
|
|
1041
|
-
create(base) {
|
|
1042
|
-
return GetPastBondsEventsResponse.fromPartial(base ?? {});
|
|
1043
|
-
},
|
|
1044
|
-
fromPartial(object) {
|
|
1045
|
-
const message = createBaseGetPastBondsEventsResponse();
|
|
1046
|
-
message.symbol = object.symbol ?? "";
|
|
1047
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1048
|
-
? Pagination.fromPartial(object.pagination)
|
|
1049
|
-
: undefined;
|
|
1050
|
-
message.events = object.events?.map((e) => BondEvent.fromPartial(e)) || [];
|
|
1051
|
-
return message;
|
|
1052
|
-
},
|
|
1053
|
-
};
|
|
1054
|
-
function createBaseBondEvent() {
|
|
1055
|
-
return {
|
|
1056
|
-
date: undefined,
|
|
1057
|
-
type: 0,
|
|
1058
|
-
value: undefined,
|
|
1059
|
-
currency: undefined,
|
|
1060
|
-
couponDetails: undefined,
|
|
1061
|
-
amortizationDetails: undefined,
|
|
1062
|
-
offerDetails: undefined,
|
|
1063
|
-
};
|
|
1064
|
-
}
|
|
1065
|
-
export const BondEvent = {
|
|
1066
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1067
|
-
if (message.date !== undefined) {
|
|
1068
|
-
DateMessage.encode(message.date, writer.uint32(10).fork()).join();
|
|
1069
|
-
}
|
|
1070
|
-
if (message.type !== 0) {
|
|
1071
|
-
writer.uint32(16).int32(message.type);
|
|
1072
|
-
}
|
|
1073
|
-
if (message.value !== undefined) {
|
|
1074
|
-
Decimal.encode(message.value, writer.uint32(26).fork()).join();
|
|
1075
|
-
}
|
|
1076
|
-
if (message.currency !== undefined) {
|
|
1077
|
-
StringValue.encode({ value: message.currency }, writer.uint32(34).fork()).join();
|
|
1078
|
-
}
|
|
1079
|
-
if (message.couponDetails !== undefined) {
|
|
1080
|
-
CouponEventDetails.encode(message.couponDetails, writer.uint32(42).fork()).join();
|
|
1081
|
-
}
|
|
1082
|
-
if (message.amortizationDetails !== undefined) {
|
|
1083
|
-
AmortizationEventDetails.encode(message.amortizationDetails, writer.uint32(50).fork()).join();
|
|
1084
|
-
}
|
|
1085
|
-
if (message.offerDetails !== undefined) {
|
|
1086
|
-
OfferEventDetails.encode(message.offerDetails, writer.uint32(58).fork()).join();
|
|
1087
|
-
}
|
|
1088
|
-
return writer;
|
|
1089
|
-
},
|
|
1090
|
-
decode(input, length) {
|
|
1091
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1092
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1093
|
-
const message = createBaseBondEvent();
|
|
1094
|
-
while (reader.pos < end) {
|
|
1095
|
-
const tag = reader.uint32();
|
|
1096
|
-
switch (tag >>> 3) {
|
|
1097
|
-
case 1: {
|
|
1098
|
-
if (tag !== 10) {
|
|
1099
|
-
break;
|
|
1100
|
-
}
|
|
1101
|
-
message.date = DateMessage.decode(reader, reader.uint32());
|
|
1102
|
-
continue;
|
|
1103
|
-
}
|
|
1104
|
-
case 2: {
|
|
1105
|
-
if (tag !== 16) {
|
|
1106
|
-
break;
|
|
1107
|
-
}
|
|
1108
|
-
message.type = reader.int32();
|
|
1109
|
-
continue;
|
|
1110
|
-
}
|
|
1111
|
-
case 3: {
|
|
1112
|
-
if (tag !== 26) {
|
|
1113
|
-
break;
|
|
1114
|
-
}
|
|
1115
|
-
message.value = Decimal.decode(reader, reader.uint32());
|
|
1116
|
-
continue;
|
|
1117
|
-
}
|
|
1118
|
-
case 4: {
|
|
1119
|
-
if (tag !== 34) {
|
|
1120
|
-
break;
|
|
1121
|
-
}
|
|
1122
|
-
message.currency = StringValue.decode(reader, reader.uint32()).value;
|
|
1123
|
-
continue;
|
|
1124
|
-
}
|
|
1125
|
-
case 5: {
|
|
1126
|
-
if (tag !== 42) {
|
|
1127
|
-
break;
|
|
1128
|
-
}
|
|
1129
|
-
message.couponDetails = CouponEventDetails.decode(reader, reader.uint32());
|
|
1130
|
-
continue;
|
|
1131
|
-
}
|
|
1132
|
-
case 6: {
|
|
1133
|
-
if (tag !== 50) {
|
|
1134
|
-
break;
|
|
1135
|
-
}
|
|
1136
|
-
message.amortizationDetails = AmortizationEventDetails.decode(reader, reader.uint32());
|
|
1137
|
-
continue;
|
|
1138
|
-
}
|
|
1139
|
-
case 7: {
|
|
1140
|
-
if (tag !== 58) {
|
|
1141
|
-
break;
|
|
1142
|
-
}
|
|
1143
|
-
message.offerDetails = OfferEventDetails.decode(reader, reader.uint32());
|
|
1144
|
-
continue;
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1148
|
-
break;
|
|
1149
|
-
}
|
|
1150
|
-
reader.skip(tag & 7);
|
|
1151
|
-
}
|
|
1152
|
-
return message;
|
|
1153
|
-
},
|
|
1154
|
-
fromJSON(object) {
|
|
1155
|
-
return {
|
|
1156
|
-
date: isSet(object.date) ? DateMessage.fromJSON(object.date) : undefined,
|
|
1157
|
-
type: isSet(object.type) ? bondEventTypeFromJSON(object.type) : 0,
|
|
1158
|
-
value: isSet(object.value) ? Decimal.fromJSON(object.value) : undefined,
|
|
1159
|
-
currency: isSet(object.currency) ? String(object.currency) : undefined,
|
|
1160
|
-
couponDetails: isSet(object.couponDetails)
|
|
1161
|
-
? CouponEventDetails.fromJSON(object.couponDetails)
|
|
1162
|
-
: isSet(object.coupon_details)
|
|
1163
|
-
? CouponEventDetails.fromJSON(object.coupon_details)
|
|
1164
|
-
: undefined,
|
|
1165
|
-
amortizationDetails: isSet(object.amortizationDetails)
|
|
1166
|
-
? AmortizationEventDetails.fromJSON(object.amortizationDetails)
|
|
1167
|
-
: isSet(object.amortization_details)
|
|
1168
|
-
? AmortizationEventDetails.fromJSON(object.amortization_details)
|
|
1169
|
-
: undefined,
|
|
1170
|
-
offerDetails: isSet(object.offerDetails)
|
|
1171
|
-
? OfferEventDetails.fromJSON(object.offerDetails)
|
|
1172
|
-
: isSet(object.offer_details)
|
|
1173
|
-
? OfferEventDetails.fromJSON(object.offer_details)
|
|
1174
|
-
: undefined,
|
|
1175
|
-
};
|
|
1176
|
-
},
|
|
1177
|
-
toJSON(message) {
|
|
1178
|
-
const obj = {};
|
|
1179
|
-
if (message.date !== undefined) {
|
|
1180
|
-
obj.date = DateMessage.toJSON(message.date);
|
|
1181
|
-
}
|
|
1182
|
-
if (message.type !== 0) {
|
|
1183
|
-
obj.type = bondEventTypeToJSON(message.type);
|
|
1184
|
-
}
|
|
1185
|
-
if (message.value !== undefined) {
|
|
1186
|
-
obj.value = Decimal.toJSON(message.value);
|
|
1187
|
-
}
|
|
1188
|
-
if (message.currency !== undefined) {
|
|
1189
|
-
obj.currency = message.currency;
|
|
1190
|
-
}
|
|
1191
|
-
if (message.couponDetails !== undefined) {
|
|
1192
|
-
obj.couponDetails = CouponEventDetails.toJSON(message.couponDetails);
|
|
1193
|
-
}
|
|
1194
|
-
if (message.amortizationDetails !== undefined) {
|
|
1195
|
-
obj.amortizationDetails = AmortizationEventDetails.toJSON(message.amortizationDetails);
|
|
1196
|
-
}
|
|
1197
|
-
if (message.offerDetails !== undefined) {
|
|
1198
|
-
obj.offerDetails = OfferEventDetails.toJSON(message.offerDetails);
|
|
1199
|
-
}
|
|
1200
|
-
return obj;
|
|
1201
|
-
},
|
|
1202
|
-
create(base) {
|
|
1203
|
-
return BondEvent.fromPartial(base ?? {});
|
|
1204
|
-
},
|
|
1205
|
-
fromPartial(object) {
|
|
1206
|
-
const message = createBaseBondEvent();
|
|
1207
|
-
message.date = (object.date !== undefined && object.date !== null)
|
|
1208
|
-
? DateMessage.fromPartial(object.date)
|
|
1209
|
-
: undefined;
|
|
1210
|
-
message.type = object.type ?? 0;
|
|
1211
|
-
message.value = (object.value !== undefined && object.value !== null)
|
|
1212
|
-
? Decimal.fromPartial(object.value)
|
|
1213
|
-
: undefined;
|
|
1214
|
-
message.currency = object.currency ?? undefined;
|
|
1215
|
-
message.couponDetails = (object.couponDetails !== undefined && object.couponDetails !== null)
|
|
1216
|
-
? CouponEventDetails.fromPartial(object.couponDetails)
|
|
1217
|
-
: undefined;
|
|
1218
|
-
message.amortizationDetails = (object.amortizationDetails !== undefined && object.amortizationDetails !== null)
|
|
1219
|
-
? AmortizationEventDetails.fromPartial(object.amortizationDetails)
|
|
1220
|
-
: undefined;
|
|
1221
|
-
message.offerDetails = (object.offerDetails !== undefined && object.offerDetails !== null)
|
|
1222
|
-
? OfferEventDetails.fromPartial(object.offerDetails)
|
|
1223
|
-
: undefined;
|
|
1224
|
-
return message;
|
|
1225
|
-
},
|
|
1226
|
-
};
|
|
1227
|
-
function createBaseCouponEventDetails() {
|
|
1228
|
-
return { recordDate: undefined, startDate: undefined, faceValue: undefined, valuePercent: undefined };
|
|
1229
|
-
}
|
|
1230
|
-
export const CouponEventDetails = {
|
|
1231
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1232
|
-
if (message.recordDate !== undefined) {
|
|
1233
|
-
DateMessage.encode(message.recordDate, writer.uint32(10).fork()).join();
|
|
1234
|
-
}
|
|
1235
|
-
if (message.startDate !== undefined) {
|
|
1236
|
-
DateMessage.encode(message.startDate, writer.uint32(18).fork()).join();
|
|
1237
|
-
}
|
|
1238
|
-
if (message.faceValue !== undefined) {
|
|
1239
|
-
Decimal.encode(message.faceValue, writer.uint32(26).fork()).join();
|
|
1240
|
-
}
|
|
1241
|
-
if (message.valuePercent !== undefined) {
|
|
1242
|
-
Decimal.encode(message.valuePercent, writer.uint32(34).fork()).join();
|
|
1243
|
-
}
|
|
1244
|
-
return writer;
|
|
1245
|
-
},
|
|
1246
|
-
decode(input, length) {
|
|
1247
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1248
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1249
|
-
const message = createBaseCouponEventDetails();
|
|
1250
|
-
while (reader.pos < end) {
|
|
1251
|
-
const tag = reader.uint32();
|
|
1252
|
-
switch (tag >>> 3) {
|
|
1253
|
-
case 1: {
|
|
1254
|
-
if (tag !== 10) {
|
|
1255
|
-
break;
|
|
1256
|
-
}
|
|
1257
|
-
message.recordDate = DateMessage.decode(reader, reader.uint32());
|
|
1258
|
-
continue;
|
|
1259
|
-
}
|
|
1260
|
-
case 2: {
|
|
1261
|
-
if (tag !== 18) {
|
|
1262
|
-
break;
|
|
1263
|
-
}
|
|
1264
|
-
message.startDate = DateMessage.decode(reader, reader.uint32());
|
|
1265
|
-
continue;
|
|
1266
|
-
}
|
|
1267
|
-
case 3: {
|
|
1268
|
-
if (tag !== 26) {
|
|
1269
|
-
break;
|
|
1270
|
-
}
|
|
1271
|
-
message.faceValue = Decimal.decode(reader, reader.uint32());
|
|
1272
|
-
continue;
|
|
1273
|
-
}
|
|
1274
|
-
case 4: {
|
|
1275
|
-
if (tag !== 34) {
|
|
1276
|
-
break;
|
|
1277
|
-
}
|
|
1278
|
-
message.valuePercent = Decimal.decode(reader, reader.uint32());
|
|
1279
|
-
continue;
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1283
|
-
break;
|
|
1284
|
-
}
|
|
1285
|
-
reader.skip(tag & 7);
|
|
1286
|
-
}
|
|
1287
|
-
return message;
|
|
1288
|
-
},
|
|
1289
|
-
fromJSON(object) {
|
|
1290
|
-
return {
|
|
1291
|
-
recordDate: isSet(object.recordDate)
|
|
1292
|
-
? DateMessage.fromJSON(object.recordDate)
|
|
1293
|
-
: isSet(object.record_date)
|
|
1294
|
-
? DateMessage.fromJSON(object.record_date)
|
|
1295
|
-
: undefined,
|
|
1296
|
-
startDate: isSet(object.startDate)
|
|
1297
|
-
? DateMessage.fromJSON(object.startDate)
|
|
1298
|
-
: isSet(object.start_date)
|
|
1299
|
-
? DateMessage.fromJSON(object.start_date)
|
|
1300
|
-
: undefined,
|
|
1301
|
-
faceValue: isSet(object.faceValue)
|
|
1302
|
-
? Decimal.fromJSON(object.faceValue)
|
|
1303
|
-
: isSet(object.face_value)
|
|
1304
|
-
? Decimal.fromJSON(object.face_value)
|
|
1305
|
-
: undefined,
|
|
1306
|
-
valuePercent: isSet(object.valuePercent)
|
|
1307
|
-
? Decimal.fromJSON(object.valuePercent)
|
|
1308
|
-
: isSet(object.value_percent)
|
|
1309
|
-
? Decimal.fromJSON(object.value_percent)
|
|
1310
|
-
: undefined,
|
|
1311
|
-
};
|
|
1312
|
-
},
|
|
1313
|
-
toJSON(message) {
|
|
1314
|
-
const obj = {};
|
|
1315
|
-
if (message.recordDate !== undefined) {
|
|
1316
|
-
obj.recordDate = DateMessage.toJSON(message.recordDate);
|
|
1317
|
-
}
|
|
1318
|
-
if (message.startDate !== undefined) {
|
|
1319
|
-
obj.startDate = DateMessage.toJSON(message.startDate);
|
|
1320
|
-
}
|
|
1321
|
-
if (message.faceValue !== undefined) {
|
|
1322
|
-
obj.faceValue = Decimal.toJSON(message.faceValue);
|
|
1323
|
-
}
|
|
1324
|
-
if (message.valuePercent !== undefined) {
|
|
1325
|
-
obj.valuePercent = Decimal.toJSON(message.valuePercent);
|
|
1326
|
-
}
|
|
1327
|
-
return obj;
|
|
1328
|
-
},
|
|
1329
|
-
create(base) {
|
|
1330
|
-
return CouponEventDetails.fromPartial(base ?? {});
|
|
1331
|
-
},
|
|
1332
|
-
fromPartial(object) {
|
|
1333
|
-
const message = createBaseCouponEventDetails();
|
|
1334
|
-
message.recordDate = (object.recordDate !== undefined && object.recordDate !== null)
|
|
1335
|
-
? DateMessage.fromPartial(object.recordDate)
|
|
1336
|
-
: undefined;
|
|
1337
|
-
message.startDate = (object.startDate !== undefined && object.startDate !== null)
|
|
1338
|
-
? DateMessage.fromPartial(object.startDate)
|
|
1339
|
-
: undefined;
|
|
1340
|
-
message.faceValue = (object.faceValue !== undefined && object.faceValue !== null)
|
|
1341
|
-
? Decimal.fromPartial(object.faceValue)
|
|
1342
|
-
: undefined;
|
|
1343
|
-
message.valuePercent = (object.valuePercent !== undefined && object.valuePercent !== null)
|
|
1344
|
-
? Decimal.fromPartial(object.valuePercent)
|
|
1345
|
-
: undefined;
|
|
1346
|
-
return message;
|
|
1347
|
-
},
|
|
1348
|
-
};
|
|
1349
|
-
function createBaseAmortizationEventDetails() {
|
|
1350
|
-
return { newFaceValue: undefined, initialFaceValue: undefined, amortizationPercent: undefined };
|
|
1351
|
-
}
|
|
1352
|
-
export const AmortizationEventDetails = {
|
|
1353
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1354
|
-
if (message.newFaceValue !== undefined) {
|
|
1355
|
-
Decimal.encode(message.newFaceValue, writer.uint32(10).fork()).join();
|
|
1356
|
-
}
|
|
1357
|
-
if (message.initialFaceValue !== undefined) {
|
|
1358
|
-
Decimal.encode(message.initialFaceValue, writer.uint32(18).fork()).join();
|
|
1359
|
-
}
|
|
1360
|
-
if (message.amortizationPercent !== undefined) {
|
|
1361
|
-
Decimal.encode(message.amortizationPercent, writer.uint32(26).fork()).join();
|
|
1362
|
-
}
|
|
1363
|
-
return writer;
|
|
1364
|
-
},
|
|
1365
|
-
decode(input, length) {
|
|
1366
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1367
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1368
|
-
const message = createBaseAmortizationEventDetails();
|
|
1369
|
-
while (reader.pos < end) {
|
|
1370
|
-
const tag = reader.uint32();
|
|
1371
|
-
switch (tag >>> 3) {
|
|
1372
|
-
case 1: {
|
|
1373
|
-
if (tag !== 10) {
|
|
1374
|
-
break;
|
|
1375
|
-
}
|
|
1376
|
-
message.newFaceValue = Decimal.decode(reader, reader.uint32());
|
|
1377
|
-
continue;
|
|
1378
|
-
}
|
|
1379
|
-
case 2: {
|
|
1380
|
-
if (tag !== 18) {
|
|
1381
|
-
break;
|
|
1382
|
-
}
|
|
1383
|
-
message.initialFaceValue = Decimal.decode(reader, reader.uint32());
|
|
1384
|
-
continue;
|
|
1385
|
-
}
|
|
1386
|
-
case 3: {
|
|
1387
|
-
if (tag !== 26) {
|
|
1388
|
-
break;
|
|
1389
|
-
}
|
|
1390
|
-
message.amortizationPercent = Decimal.decode(reader, reader.uint32());
|
|
1391
|
-
continue;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1395
|
-
break;
|
|
1396
|
-
}
|
|
1397
|
-
reader.skip(tag & 7);
|
|
1398
|
-
}
|
|
1399
|
-
return message;
|
|
1400
|
-
},
|
|
1401
|
-
fromJSON(object) {
|
|
1402
|
-
return {
|
|
1403
|
-
newFaceValue: isSet(object.newFaceValue)
|
|
1404
|
-
? Decimal.fromJSON(object.newFaceValue)
|
|
1405
|
-
: isSet(object.new_face_value)
|
|
1406
|
-
? Decimal.fromJSON(object.new_face_value)
|
|
1407
|
-
: undefined,
|
|
1408
|
-
initialFaceValue: isSet(object.initialFaceValue)
|
|
1409
|
-
? Decimal.fromJSON(object.initialFaceValue)
|
|
1410
|
-
: isSet(object.initial_face_value)
|
|
1411
|
-
? Decimal.fromJSON(object.initial_face_value)
|
|
1412
|
-
: undefined,
|
|
1413
|
-
amortizationPercent: isSet(object.amortizationPercent)
|
|
1414
|
-
? Decimal.fromJSON(object.amortizationPercent)
|
|
1415
|
-
: isSet(object.amortization_percent)
|
|
1416
|
-
? Decimal.fromJSON(object.amortization_percent)
|
|
1417
|
-
: undefined,
|
|
1418
|
-
};
|
|
1419
|
-
},
|
|
1420
|
-
toJSON(message) {
|
|
1421
|
-
const obj = {};
|
|
1422
|
-
if (message.newFaceValue !== undefined) {
|
|
1423
|
-
obj.newFaceValue = Decimal.toJSON(message.newFaceValue);
|
|
1424
|
-
}
|
|
1425
|
-
if (message.initialFaceValue !== undefined) {
|
|
1426
|
-
obj.initialFaceValue = Decimal.toJSON(message.initialFaceValue);
|
|
1427
|
-
}
|
|
1428
|
-
if (message.amortizationPercent !== undefined) {
|
|
1429
|
-
obj.amortizationPercent = Decimal.toJSON(message.amortizationPercent);
|
|
1430
|
-
}
|
|
1431
|
-
return obj;
|
|
1432
|
-
},
|
|
1433
|
-
create(base) {
|
|
1434
|
-
return AmortizationEventDetails.fromPartial(base ?? {});
|
|
1435
|
-
},
|
|
1436
|
-
fromPartial(object) {
|
|
1437
|
-
const message = createBaseAmortizationEventDetails();
|
|
1438
|
-
message.newFaceValue = (object.newFaceValue !== undefined && object.newFaceValue !== null)
|
|
1439
|
-
? Decimal.fromPartial(object.newFaceValue)
|
|
1440
|
-
: undefined;
|
|
1441
|
-
message.initialFaceValue = (object.initialFaceValue !== undefined && object.initialFaceValue !== null)
|
|
1442
|
-
? Decimal.fromPartial(object.initialFaceValue)
|
|
1443
|
-
: undefined;
|
|
1444
|
-
message.amortizationPercent = (object.amortizationPercent !== undefined && object.amortizationPercent !== null)
|
|
1445
|
-
? Decimal.fromPartial(object.amortizationPercent)
|
|
1446
|
-
: undefined;
|
|
1447
|
-
return message;
|
|
1448
|
-
},
|
|
1449
|
-
};
|
|
1450
|
-
function createBaseOfferEventDetails() {
|
|
1451
|
-
return { offerType: undefined, price: undefined, startDate: undefined, endDate: undefined, agent: undefined };
|
|
1452
|
-
}
|
|
1453
|
-
export const OfferEventDetails = {
|
|
1454
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1455
|
-
if (message.offerType !== undefined) {
|
|
1456
|
-
StringValue.encode({ value: message.offerType }, writer.uint32(10).fork()).join();
|
|
1457
|
-
}
|
|
1458
|
-
if (message.price !== undefined) {
|
|
1459
|
-
Decimal.encode(message.price, writer.uint32(18).fork()).join();
|
|
1460
|
-
}
|
|
1461
|
-
if (message.startDate !== undefined) {
|
|
1462
|
-
DateMessage.encode(message.startDate, writer.uint32(26).fork()).join();
|
|
1463
|
-
}
|
|
1464
|
-
if (message.endDate !== undefined) {
|
|
1465
|
-
DateMessage.encode(message.endDate, writer.uint32(34).fork()).join();
|
|
1466
|
-
}
|
|
1467
|
-
if (message.agent !== undefined) {
|
|
1468
|
-
StringValue.encode({ value: message.agent }, writer.uint32(42).fork()).join();
|
|
1469
|
-
}
|
|
1470
|
-
return writer;
|
|
1471
|
-
},
|
|
1472
|
-
decode(input, length) {
|
|
1473
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1474
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1475
|
-
const message = createBaseOfferEventDetails();
|
|
1476
|
-
while (reader.pos < end) {
|
|
1477
|
-
const tag = reader.uint32();
|
|
1478
|
-
switch (tag >>> 3) {
|
|
1479
|
-
case 1: {
|
|
1480
|
-
if (tag !== 10) {
|
|
1481
|
-
break;
|
|
1482
|
-
}
|
|
1483
|
-
message.offerType = StringValue.decode(reader, reader.uint32()).value;
|
|
1484
|
-
continue;
|
|
1485
|
-
}
|
|
1486
|
-
case 2: {
|
|
1487
|
-
if (tag !== 18) {
|
|
1488
|
-
break;
|
|
1489
|
-
}
|
|
1490
|
-
message.price = Decimal.decode(reader, reader.uint32());
|
|
1491
|
-
continue;
|
|
1492
|
-
}
|
|
1493
|
-
case 3: {
|
|
1494
|
-
if (tag !== 26) {
|
|
1495
|
-
break;
|
|
1496
|
-
}
|
|
1497
|
-
message.startDate = DateMessage.decode(reader, reader.uint32());
|
|
1498
|
-
continue;
|
|
1499
|
-
}
|
|
1500
|
-
case 4: {
|
|
1501
|
-
if (tag !== 34) {
|
|
1502
|
-
break;
|
|
1503
|
-
}
|
|
1504
|
-
message.endDate = DateMessage.decode(reader, reader.uint32());
|
|
1505
|
-
continue;
|
|
1506
|
-
}
|
|
1507
|
-
case 5: {
|
|
1508
|
-
if (tag !== 42) {
|
|
1509
|
-
break;
|
|
1510
|
-
}
|
|
1511
|
-
message.agent = StringValue.decode(reader, reader.uint32()).value;
|
|
1512
|
-
continue;
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1516
|
-
break;
|
|
1517
|
-
}
|
|
1518
|
-
reader.skip(tag & 7);
|
|
1519
|
-
}
|
|
1520
|
-
return message;
|
|
1521
|
-
},
|
|
1522
|
-
fromJSON(object) {
|
|
1523
|
-
return {
|
|
1524
|
-
offerType: isSet(object.offerType)
|
|
1525
|
-
? String(object.offerType)
|
|
1526
|
-
: isSet(object.offer_type)
|
|
1527
|
-
? String(object.offer_type)
|
|
1528
|
-
: undefined,
|
|
1529
|
-
price: isSet(object.price) ? Decimal.fromJSON(object.price) : undefined,
|
|
1530
|
-
startDate: isSet(object.startDate)
|
|
1531
|
-
? DateMessage.fromJSON(object.startDate)
|
|
1532
|
-
: isSet(object.start_date)
|
|
1533
|
-
? DateMessage.fromJSON(object.start_date)
|
|
1534
|
-
: undefined,
|
|
1535
|
-
endDate: isSet(object.endDate)
|
|
1536
|
-
? DateMessage.fromJSON(object.endDate)
|
|
1537
|
-
: isSet(object.end_date)
|
|
1538
|
-
? DateMessage.fromJSON(object.end_date)
|
|
1539
|
-
: undefined,
|
|
1540
|
-
agent: isSet(object.agent) ? String(object.agent) : undefined,
|
|
523
|
+
splits: globalThis.Array.isArray(object?.splits) ? object.splits.map((e) => SplitInfo.fromJSON(e)) : [],
|
|
1541
524
|
};
|
|
1542
525
|
},
|
|
1543
526
|
toJSON(message) {
|
|
1544
527
|
const obj = {};
|
|
1545
|
-
if (message.
|
|
1546
|
-
obj.
|
|
1547
|
-
}
|
|
1548
|
-
if (message.price !== undefined) {
|
|
1549
|
-
obj.price = Decimal.toJSON(message.price);
|
|
1550
|
-
}
|
|
1551
|
-
if (message.startDate !== undefined) {
|
|
1552
|
-
obj.startDate = DateMessage.toJSON(message.startDate);
|
|
528
|
+
if (message.symbol !== "") {
|
|
529
|
+
obj.symbol = message.symbol;
|
|
1553
530
|
}
|
|
1554
|
-
if (message.
|
|
1555
|
-
obj.
|
|
531
|
+
if (message.pagination !== undefined) {
|
|
532
|
+
obj.pagination = Pagination.toJSON(message.pagination);
|
|
1556
533
|
}
|
|
1557
|
-
if (message.
|
|
1558
|
-
obj.
|
|
534
|
+
if (message.splits?.length) {
|
|
535
|
+
obj.splits = message.splits.map((e) => SplitInfo.toJSON(e));
|
|
1559
536
|
}
|
|
1560
537
|
return obj;
|
|
1561
538
|
},
|
|
1562
539
|
create(base) {
|
|
1563
|
-
return
|
|
540
|
+
return GetPastSplitsResponse.fromPartial(base ?? {});
|
|
1564
541
|
},
|
|
1565
542
|
fromPartial(object) {
|
|
1566
|
-
const message =
|
|
1567
|
-
message.
|
|
1568
|
-
message.
|
|
1569
|
-
?
|
|
1570
|
-
: undefined;
|
|
1571
|
-
message.startDate = (object.startDate !== undefined && object.startDate !== null)
|
|
1572
|
-
? DateMessage.fromPartial(object.startDate)
|
|
1573
|
-
: undefined;
|
|
1574
|
-
message.endDate = (object.endDate !== undefined && object.endDate !== null)
|
|
1575
|
-
? DateMessage.fromPartial(object.endDate)
|
|
543
|
+
const message = createBaseGetPastSplitsResponse();
|
|
544
|
+
message.symbol = object.symbol ?? "";
|
|
545
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
546
|
+
? Pagination.fromPartial(object.pagination)
|
|
1576
547
|
: undefined;
|
|
1577
|
-
message.
|
|
548
|
+
message.splits = object.splits?.map((e) => SplitInfo.fromPartial(e)) || [];
|
|
1578
549
|
return message;
|
|
1579
550
|
},
|
|
1580
551
|
};
|
|
@@ -2296,7 +1267,7 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2296
1267
|
name: "CorporateActionsService",
|
|
2297
1268
|
fullName: "grpc.tradeapi.v1.corporateactions.CorporateActionsService",
|
|
2298
1269
|
methods: {
|
|
2299
|
-
/** Get upcoming split events
|
|
1270
|
+
/** Get upcoming split events for an instrument */
|
|
2300
1271
|
getFutureSplits: {
|
|
2301
1272
|
name: "GetFutureSplits",
|
|
2302
1273
|
requestType: GetFutureSplitsRequest,
|
|
@@ -2358,7 +1329,7 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2358
1329
|
},
|
|
2359
1330
|
},
|
|
2360
1331
|
},
|
|
2361
|
-
/** Get the history
|
|
1332
|
+
/** Get the history split events for an instrument */
|
|
2362
1333
|
getPastSplits: {
|
|
2363
1334
|
name: "GetPastSplits",
|
|
2364
1335
|
requestType: GetPastSplitsRequest,
|
|
@@ -2418,109 +1389,7 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2418
1389
|
},
|
|
2419
1390
|
},
|
|
2420
1391
|
},
|
|
2421
|
-
/** Get a
|
|
2422
|
-
getFutureBondsEvents: {
|
|
2423
|
-
name: "GetFutureBondsEvents",
|
|
2424
|
-
requestType: GetFutureBondsEventsRequest,
|
|
2425
|
-
requestStream: false,
|
|
2426
|
-
responseType: GetFutureBondsEventsResponse,
|
|
2427
|
-
responseStream: false,
|
|
2428
|
-
options: {
|
|
2429
|
-
_unknownFields: {
|
|
2430
|
-
8338: [
|
|
2431
|
-
new Uint8Array([
|
|
2432
|
-
21,
|
|
2433
|
-
98,
|
|
2434
|
-
19,
|
|
2435
|
-
10,
|
|
2436
|
-
17,
|
|
2437
|
-
10,
|
|
2438
|
-
13,
|
|
2439
|
-
65,
|
|
2440
|
-
117,
|
|
2441
|
-
116,
|
|
2442
|
-
104,
|
|
2443
|
-
111,
|
|
2444
|
-
114,
|
|
2445
|
-
105,
|
|
2446
|
-
122,
|
|
2447
|
-
97,
|
|
2448
|
-
116,
|
|
2449
|
-
105,
|
|
2450
|
-
111,
|
|
2451
|
-
110,
|
|
2452
|
-
18,
|
|
2453
|
-
0,
|
|
2454
|
-
]),
|
|
2455
|
-
],
|
|
2456
|
-
578365826: [
|
|
2457
|
-
new Uint8Array([
|
|
2458
|
-
18,
|
|
2459
|
-
18,
|
|
2460
|
-
16,
|
|
2461
|
-
47,
|
|
2462
|
-
118,
|
|
2463
|
-
49,
|
|
2464
|
-
47,
|
|
2465
|
-
98,
|
|
2466
|
-
111,
|
|
2467
|
-
110,
|
|
2468
|
-
100,
|
|
2469
|
-
115,
|
|
2470
|
-
47,
|
|
2471
|
-
102,
|
|
2472
|
-
117,
|
|
2473
|
-
116,
|
|
2474
|
-
117,
|
|
2475
|
-
114,
|
|
2476
|
-
101,
|
|
2477
|
-
]),
|
|
2478
|
-
],
|
|
2479
|
-
},
|
|
2480
|
-
},
|
|
2481
|
-
},
|
|
2482
|
-
/** Get a calendar of historical bond events */
|
|
2483
|
-
getPastBondsEvents: {
|
|
2484
|
-
name: "GetPastBondsEvents",
|
|
2485
|
-
requestType: GetPastBondsEventsRequest,
|
|
2486
|
-
requestStream: false,
|
|
2487
|
-
responseType: GetPastBondsEventsResponse,
|
|
2488
|
-
responseStream: false,
|
|
2489
|
-
options: {
|
|
2490
|
-
_unknownFields: {
|
|
2491
|
-
8338: [
|
|
2492
|
-
new Uint8Array([
|
|
2493
|
-
21,
|
|
2494
|
-
98,
|
|
2495
|
-
19,
|
|
2496
|
-
10,
|
|
2497
|
-
17,
|
|
2498
|
-
10,
|
|
2499
|
-
13,
|
|
2500
|
-
65,
|
|
2501
|
-
117,
|
|
2502
|
-
116,
|
|
2503
|
-
104,
|
|
2504
|
-
111,
|
|
2505
|
-
114,
|
|
2506
|
-
105,
|
|
2507
|
-
122,
|
|
2508
|
-
97,
|
|
2509
|
-
116,
|
|
2510
|
-
105,
|
|
2511
|
-
111,
|
|
2512
|
-
110,
|
|
2513
|
-
18,
|
|
2514
|
-
0,
|
|
2515
|
-
]),
|
|
2516
|
-
],
|
|
2517
|
-
578365826: [
|
|
2518
|
-
new Uint8Array([16, 18, 14, 47, 118, 49, 47, 98, 111, 110, 100, 115, 47, 112, 97, 115, 116]),
|
|
2519
|
-
],
|
|
2520
|
-
},
|
|
2521
|
-
},
|
|
2522
|
-
},
|
|
2523
|
-
/** Get a list of upcoming (future) dividend payments for an instrument. */
|
|
1392
|
+
/** Get a list of upcoming (future) dividend payments for an instrument */
|
|
2524
1393
|
getFutureDividends: {
|
|
2525
1394
|
name: "GetFutureDividends",
|
|
2526
1395
|
requestType: GetFutureDividendsRequest,
|
|
@@ -2531,18 +1400,20 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2531
1400
|
_unknownFields: {
|
|
2532
1401
|
8338: [
|
|
2533
1402
|
new Uint8Array([
|
|
2534
|
-
|
|
1403
|
+
158,
|
|
1404
|
+
1,
|
|
2535
1405
|
74,
|
|
2536
|
-
|
|
1406
|
+
134,
|
|
1407
|
+
1,
|
|
2537
1408
|
10,
|
|
2538
1409
|
3,
|
|
2539
1410
|
52,
|
|
2540
1411
|
48,
|
|
2541
1412
|
48,
|
|
2542
1413
|
18,
|
|
2543
|
-
|
|
1414
|
+
127,
|
|
2544
1415
|
10,
|
|
2545
|
-
|
|
1416
|
+
125,
|
|
2546
1417
|
73,
|
|
2547
1418
|
110,
|
|
2548
1419
|
118,
|
|
@@ -2557,13 +1428,16 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2557
1428
|
98,
|
|
2558
1429
|
111,
|
|
2559
1430
|
108,
|
|
2560
|
-
46,
|
|
2561
1431
|
32,
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
1432
|
+
102,
|
|
1433
|
+
111,
|
|
1434
|
+
114,
|
|
1435
|
+
109,
|
|
1436
|
+
97,
|
|
1437
|
+
116,
|
|
1438
|
+
46,
|
|
2565
1439
|
32,
|
|
2566
|
-
|
|
1440
|
+
83,
|
|
2567
1441
|
121,
|
|
2568
1442
|
109,
|
|
2569
1443
|
98,
|
|
@@ -2575,10 +1449,12 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2575
1449
|
115,
|
|
2576
1450
|
116,
|
|
2577
1451
|
32,
|
|
2578
|
-
|
|
2579
|
-
115,
|
|
1452
|
+
98,
|
|
2580
1453
|
101,
|
|
2581
1454
|
32,
|
|
1455
|
+
105,
|
|
1456
|
+
110,
|
|
1457
|
+
32,
|
|
2582
1458
|
116,
|
|
2583
1459
|
105,
|
|
2584
1460
|
99,
|
|
@@ -2596,6 +1472,23 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2596
1472
|
109,
|
|
2597
1473
|
97,
|
|
2598
1474
|
116,
|
|
1475
|
+
46,
|
|
1476
|
+
32,
|
|
1477
|
+
87,
|
|
1478
|
+
104,
|
|
1479
|
+
101,
|
|
1480
|
+
114,
|
|
1481
|
+
101,
|
|
1482
|
+
32,
|
|
1483
|
+
116,
|
|
1484
|
+
105,
|
|
1485
|
+
99,
|
|
1486
|
+
107,
|
|
1487
|
+
101,
|
|
1488
|
+
114,
|
|
1489
|
+
32,
|
|
1490
|
+
105,
|
|
1491
|
+
115,
|
|
2599
1492
|
44,
|
|
2600
1493
|
32,
|
|
2601
1494
|
102,
|
|
@@ -2609,17 +1502,43 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2609
1502
|
112,
|
|
2610
1503
|
108,
|
|
2611
1504
|
101,
|
|
1505
|
+
44,
|
|
1506
|
+
32,
|
|
1507
|
+
65,
|
|
1508
|
+
65,
|
|
1509
|
+
80,
|
|
1510
|
+
76,
|
|
1511
|
+
44,
|
|
1512
|
+
32,
|
|
1513
|
+
97,
|
|
1514
|
+
110,
|
|
1515
|
+
100,
|
|
1516
|
+
32,
|
|
1517
|
+
109,
|
|
1518
|
+
105,
|
|
1519
|
+
99,
|
|
1520
|
+
32,
|
|
1521
|
+
105,
|
|
1522
|
+
115,
|
|
1523
|
+
44,
|
|
1524
|
+
32,
|
|
1525
|
+
102,
|
|
1526
|
+
111,
|
|
1527
|
+
114,
|
|
1528
|
+
32,
|
|
1529
|
+
101,
|
|
1530
|
+
120,
|
|
1531
|
+
97,
|
|
1532
|
+
109,
|
|
1533
|
+
112,
|
|
1534
|
+
108,
|
|
1535
|
+
101,
|
|
1536
|
+
44,
|
|
2612
1537
|
32,
|
|
2613
|
-
83,
|
|
2614
|
-
66,
|
|
2615
|
-
69,
|
|
2616
|
-
82,
|
|
2617
|
-
64,
|
|
2618
|
-
77,
|
|
2619
|
-
73,
|
|
2620
|
-
83,
|
|
2621
1538
|
88,
|
|
2622
|
-
|
|
1539
|
+
78,
|
|
1540
|
+
65,
|
|
1541
|
+
83,
|
|
2623
1542
|
98,
|
|
2624
1543
|
19,
|
|
2625
1544
|
10,
|
|
@@ -2673,7 +1592,7 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2673
1592
|
},
|
|
2674
1593
|
},
|
|
2675
1594
|
},
|
|
2676
|
-
/** Get historical data on dividends
|
|
1595
|
+
/** Get historical data on paid dividends for an instrument */
|
|
2677
1596
|
getPastDividends: {
|
|
2678
1597
|
name: "GetPastDividends",
|
|
2679
1598
|
requestType: GetPastDividendsRequest,
|
|
@@ -2684,18 +1603,20 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2684
1603
|
_unknownFields: {
|
|
2685
1604
|
8338: [
|
|
2686
1605
|
new Uint8Array([
|
|
2687
|
-
|
|
1606
|
+
158,
|
|
1607
|
+
1,
|
|
2688
1608
|
74,
|
|
2689
|
-
|
|
1609
|
+
134,
|
|
1610
|
+
1,
|
|
2690
1611
|
10,
|
|
2691
1612
|
3,
|
|
2692
1613
|
52,
|
|
2693
1614
|
48,
|
|
2694
1615
|
48,
|
|
2695
1616
|
18,
|
|
2696
|
-
|
|
1617
|
+
127,
|
|
2697
1618
|
10,
|
|
2698
|
-
|
|
1619
|
+
125,
|
|
2699
1620
|
73,
|
|
2700
1621
|
110,
|
|
2701
1622
|
118,
|
|
@@ -2711,24 +1632,15 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2711
1632
|
111,
|
|
2712
1633
|
108,
|
|
2713
1634
|
32,
|
|
1635
|
+
102,
|
|
2714
1636
|
111,
|
|
2715
1637
|
114,
|
|
2716
|
-
|
|
2717
|
-
105,
|
|
2718
|
-
110,
|
|
2719
|
-
116,
|
|
2720
|
-
101,
|
|
2721
|
-
114,
|
|
2722
|
-
118,
|
|
1638
|
+
109,
|
|
2723
1639
|
97,
|
|
2724
|
-
|
|
1640
|
+
116,
|
|
2725
1641
|
46,
|
|
2726
1642
|
32,
|
|
2727
|
-
|
|
2728
|
-
104,
|
|
2729
|
-
101,
|
|
2730
|
-
32,
|
|
2731
|
-
115,
|
|
1643
|
+
83,
|
|
2732
1644
|
121,
|
|
2733
1645
|
109,
|
|
2734
1646
|
98,
|
|
@@ -2740,10 +1652,12 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2740
1652
|
115,
|
|
2741
1653
|
116,
|
|
2742
1654
|
32,
|
|
2743
|
-
|
|
2744
|
-
115,
|
|
1655
|
+
98,
|
|
2745
1656
|
101,
|
|
2746
1657
|
32,
|
|
1658
|
+
105,
|
|
1659
|
+
110,
|
|
1660
|
+
32,
|
|
2747
1661
|
116,
|
|
2748
1662
|
105,
|
|
2749
1663
|
99,
|
|
@@ -2761,6 +1675,23 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2761
1675
|
109,
|
|
2762
1676
|
97,
|
|
2763
1677
|
116,
|
|
1678
|
+
46,
|
|
1679
|
+
32,
|
|
1680
|
+
87,
|
|
1681
|
+
104,
|
|
1682
|
+
101,
|
|
1683
|
+
114,
|
|
1684
|
+
101,
|
|
1685
|
+
32,
|
|
1686
|
+
116,
|
|
1687
|
+
105,
|
|
1688
|
+
99,
|
|
1689
|
+
107,
|
|
1690
|
+
101,
|
|
1691
|
+
114,
|
|
1692
|
+
32,
|
|
1693
|
+
105,
|
|
1694
|
+
115,
|
|
2764
1695
|
44,
|
|
2765
1696
|
32,
|
|
2766
1697
|
102,
|
|
@@ -2774,17 +1705,43 @@ export const CorporateActionsServiceDefinition = {
|
|
|
2774
1705
|
112,
|
|
2775
1706
|
108,
|
|
2776
1707
|
101,
|
|
1708
|
+
44,
|
|
1709
|
+
32,
|
|
1710
|
+
65,
|
|
1711
|
+
65,
|
|
1712
|
+
80,
|
|
1713
|
+
76,
|
|
1714
|
+
44,
|
|
1715
|
+
32,
|
|
1716
|
+
97,
|
|
1717
|
+
110,
|
|
1718
|
+
100,
|
|
1719
|
+
32,
|
|
1720
|
+
109,
|
|
1721
|
+
105,
|
|
1722
|
+
99,
|
|
1723
|
+
32,
|
|
1724
|
+
105,
|
|
1725
|
+
115,
|
|
1726
|
+
44,
|
|
1727
|
+
32,
|
|
1728
|
+
102,
|
|
1729
|
+
111,
|
|
1730
|
+
114,
|
|
1731
|
+
32,
|
|
1732
|
+
101,
|
|
1733
|
+
120,
|
|
1734
|
+
97,
|
|
1735
|
+
109,
|
|
1736
|
+
112,
|
|
1737
|
+
108,
|
|
1738
|
+
101,
|
|
1739
|
+
44,
|
|
2777
1740
|
32,
|
|
2778
|
-
83,
|
|
2779
|
-
66,
|
|
2780
|
-
69,
|
|
2781
|
-
82,
|
|
2782
|
-
64,
|
|
2783
|
-
77,
|
|
2784
|
-
73,
|
|
2785
|
-
83,
|
|
2786
1741
|
88,
|
|
2787
|
-
|
|
1742
|
+
78,
|
|
1743
|
+
65,
|
|
1744
|
+
83,
|
|
2788
1745
|
98,
|
|
2789
1746
|
19,
|
|
2790
1747
|
10,
|