@ariva-mds/mds 2.59.0 → 2.61.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/lib/cjs/api/MdsConnection.js +54 -18
- package/lib/cjs/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.js +2 -0
- package/lib/cjs/models/CorporateAction.js +80 -0
- package/lib/cjs/models/CorporateActions.js +51 -0
- package/lib/cjs/models/KpiData.js +184 -0
- package/lib/cjs/models/KpiDataAllOf.js +174 -0
- package/lib/cjs/models/TimeseriesBidAskData.js +54 -0
- package/lib/cjs/models/TimeseriesData.js +2 -0
- package/lib/cjs/models/WebSocketCommandGetKpi.js +58 -0
- package/lib/cjs/models/WebSocketCommandGetTradingtimeAnalysis.js +37 -0
- package/lib/cjs/models/WebSocketCommandListTimeseriesBidAsk.js +60 -0
- package/lib/cjs/models/WebSocketCommandSubscribeTimeseriesBidAsk.js +60 -0
- package/lib/cjs/models/WebSocketMessage.js +6 -0
- package/lib/cjs/models/WebSocketRequest.js +117 -0
- package/lib/cjs/models/index.js +8 -0
- package/lib/esm/api/MdsConnection.js +55 -19
- package/lib/esm/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.js +2 -0
- package/lib/esm/models/CorporateAction.js +73 -0
- package/lib/esm/models/CorporateActions.js +44 -0
- package/lib/esm/models/KpiData.js +177 -0
- package/lib/esm/models/KpiDataAllOf.js +167 -0
- package/lib/esm/models/TimeseriesBidAskData.js +47 -0
- package/lib/esm/models/TimeseriesData.js +2 -0
- package/lib/esm/models/WebSocketCommandGetKpi.js +51 -0
- package/lib/esm/models/WebSocketCommandGetTradingtimeAnalysis.js +32 -1
- package/lib/esm/models/WebSocketCommandListTimeseriesBidAsk.js +53 -0
- package/lib/esm/models/WebSocketCommandSubscribeTimeseriesBidAsk.js +53 -0
- package/lib/esm/models/WebSocketMessage.js +6 -0
- package/lib/esm/models/WebSocketRequest.js +112 -1
- package/lib/esm/models/index.js +8 -0
- package/lib/types/api/MdsConnection.d.ts +12 -7
- package/lib/types/api/MdsConnection.d.ts.map +1 -1
- package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.d.ts +6 -0
- package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.d.ts.map +1 -1
- package/lib/types/models/CorporateAction.d.ts +99 -0
- package/lib/types/models/CorporateAction.d.ts.map +1 -0
- package/lib/types/models/CorporateActions.d.ts +33 -0
- package/lib/types/models/CorporateActions.d.ts.map +1 -0
- package/lib/types/models/KpiData.d.ts +435 -0
- package/lib/types/models/KpiData.d.ts.map +1 -0
- package/lib/types/models/KpiDataAllOf.d.ts +404 -0
- package/lib/types/models/KpiDataAllOf.d.ts.map +1 -0
- package/lib/types/models/TimeseriesBidAskData.d.ts +44 -0
- package/lib/types/models/TimeseriesBidAskData.d.ts.map +1 -0
- package/lib/types/models/TimeseriesData.d.ts +6 -0
- package/lib/types/models/TimeseriesData.d.ts.map +1 -1
- package/lib/types/models/WebSocketCommandGetKpi.d.ts +56 -0
- package/lib/types/models/WebSocketCommandGetKpi.d.ts.map +1 -0
- package/lib/types/models/WebSocketCommandGetTradingtimeAnalysis.d.ts +7 -0
- package/lib/types/models/WebSocketCommandGetTradingtimeAnalysis.d.ts.map +1 -1
- package/lib/types/models/WebSocketCommandListTimeseriesBidAsk.d.ts +59 -0
- package/lib/types/models/WebSocketCommandListTimeseriesBidAsk.d.ts.map +1 -0
- package/lib/types/models/WebSocketCommandSubscribeTimeseriesBidAsk.d.ts +59 -0
- package/lib/types/models/WebSocketCommandSubscribeTimeseriesBidAsk.d.ts.map +1 -0
- package/lib/types/models/WebSocketMessage.d.ts +14 -0
- package/lib/types/models/WebSocketMessage.d.ts.map +1 -1
- package/lib/types/models/WebSocketRequest.d.ts +28 -0
- package/lib/types/models/WebSocketRequest.d.ts.map +1 -1
- package/lib/types/models/index.d.ts +8 -0
- package/lib/types/models/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13,3 +13,120 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WebSocketRequestToJSON = exports.WebSocketRequestFromJSONTyped = exports.WebSocketRequestFromJSON = exports.instanceOfWebSocketRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const WebSocketCommandAuthenticate_1 = require("./WebSocketCommandAuthenticate");
|
|
19
|
+
const WebSocketCommandCancel_1 = require("./WebSocketCommandCancel");
|
|
20
|
+
const WebSocketCommandGetAfuCompanyProfile_1 = require("./WebSocketCommandGetAfuCompanyProfile");
|
|
21
|
+
const WebSocketCommandGetFwwFundsProfile_1 = require("./WebSocketCommandGetFwwFundsProfile");
|
|
22
|
+
const WebSocketCommandGetInstrumentMasterdata_1 = require("./WebSocketCommandGetInstrumentMasterdata");
|
|
23
|
+
const WebSocketCommandGetKpi_1 = require("./WebSocketCommandGetKpi");
|
|
24
|
+
const WebSocketCommandGetReference_1 = require("./WebSocketCommandGetReference");
|
|
25
|
+
const WebSocketCommandGetSource_1 = require("./WebSocketCommandGetSource");
|
|
26
|
+
const WebSocketCommandGetTradingtime_1 = require("./WebSocketCommandGetTradingtime");
|
|
27
|
+
const WebSocketCommandGetTradingtimeAnalysis_1 = require("./WebSocketCommandGetTradingtimeAnalysis");
|
|
28
|
+
const WebSocketCommandHeartbeat_1 = require("./WebSocketCommandHeartbeat");
|
|
29
|
+
const WebSocketCommandListBidAskHistory_1 = require("./WebSocketCommandListBidAskHistory");
|
|
30
|
+
const WebSocketCommandListCharts_1 = require("./WebSocketCommandListCharts");
|
|
31
|
+
const WebSocketCommandListInstrumentListings_1 = require("./WebSocketCommandListInstrumentListings");
|
|
32
|
+
const WebSocketCommandListMarketstates_1 = require("./WebSocketCommandListMarketstates");
|
|
33
|
+
const WebSocketCommandListPerformance_1 = require("./WebSocketCommandListPerformance");
|
|
34
|
+
const WebSocketCommandListTickHistory_1 = require("./WebSocketCommandListTickHistory");
|
|
35
|
+
const WebSocketCommandListTimeseries_1 = require("./WebSocketCommandListTimeseries");
|
|
36
|
+
const WebSocketCommandListTimeseriesBidAsk_1 = require("./WebSocketCommandListTimeseriesBidAsk");
|
|
37
|
+
const WebSocketCommandPriority_1 = require("./WebSocketCommandPriority");
|
|
38
|
+
const WebSocketCommandSubscribeListTopflop_1 = require("./WebSocketCommandSubscribeListTopflop");
|
|
39
|
+
const WebSocketCommandSubscribeMarketdepth_1 = require("./WebSocketCommandSubscribeMarketdepth");
|
|
40
|
+
const WebSocketCommandSubscribeMarketstates_1 = require("./WebSocketCommandSubscribeMarketstates");
|
|
41
|
+
const WebSocketCommandSubscribeSourceTradeticker_1 = require("./WebSocketCommandSubscribeSourceTradeticker");
|
|
42
|
+
const WebSocketCommandSubscribeTimeseries_1 = require("./WebSocketCommandSubscribeTimeseries");
|
|
43
|
+
const WebSocketCommandSubscribeTimeseriesBidAsk_1 = require("./WebSocketCommandSubscribeTimeseriesBidAsk");
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the WebSocketRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
function instanceOfWebSocketRequest(value) {
|
|
48
|
+
let isInstance = true;
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
exports.instanceOfWebSocketRequest = instanceOfWebSocketRequest;
|
|
52
|
+
function WebSocketRequestFromJSON(json) {
|
|
53
|
+
return WebSocketRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
exports.WebSocketRequestFromJSON = WebSocketRequestFromJSON;
|
|
56
|
+
function WebSocketRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'requestId': !(0, runtime_1.exists)(json, 'requestId') ? undefined : json['requestId'],
|
|
62
|
+
'cancel': !(0, runtime_1.exists)(json, 'cancel') ? undefined : (0, WebSocketCommandCancel_1.WebSocketCommandCancelFromJSON)(json['cancel']),
|
|
63
|
+
'priority': !(0, runtime_1.exists)(json, 'priority') ? undefined : (0, WebSocketCommandPriority_1.WebSocketCommandPriorityFromJSON)(json['priority']),
|
|
64
|
+
'heartbeat': !(0, runtime_1.exists)(json, 'heartbeat') ? undefined : (0, WebSocketCommandHeartbeat_1.WebSocketCommandHeartbeatFromJSON)(json['heartbeat']),
|
|
65
|
+
'authenticate': !(0, runtime_1.exists)(json, 'authenticate') ? undefined : (0, WebSocketCommandAuthenticate_1.WebSocketCommandAuthenticateFromJSON)(json['authenticate']),
|
|
66
|
+
'subscribeAuthentication': !(0, runtime_1.exists)(json, 'subscribeAuthentication') ? undefined : (0, WebSocketCommandAuthenticate_1.WebSocketCommandAuthenticateFromJSON)(json['subscribeAuthentication']),
|
|
67
|
+
'subscribeMarketstates': !(0, runtime_1.exists)(json, 'subscribeMarketstates') ? undefined : (0, WebSocketCommandSubscribeMarketstates_1.WebSocketCommandSubscribeMarketstatesFromJSON)(json['subscribeMarketstates']),
|
|
68
|
+
'subscribeMarketdepth': !(0, runtime_1.exists)(json, 'subscribeMarketdepth') ? undefined : (0, WebSocketCommandSubscribeMarketdepth_1.WebSocketCommandSubscribeMarketdepthFromJSON)(json['subscribeMarketdepth']),
|
|
69
|
+
'listPerformance': !(0, runtime_1.exists)(json, 'listPerformance') ? undefined : (0, WebSocketCommandListPerformance_1.WebSocketCommandListPerformanceFromJSON)(json['listPerformance']),
|
|
70
|
+
'listBidAskHistory': !(0, runtime_1.exists)(json, 'listBidAskHistory') ? undefined : (0, WebSocketCommandListBidAskHistory_1.WebSocketCommandListBidAskHistoryFromJSON)(json['listBidAskHistory']),
|
|
71
|
+
'listInstrumentListings': !(0, runtime_1.exists)(json, 'listInstrumentListings') ? undefined : (0, WebSocketCommandListInstrumentListings_1.WebSocketCommandListInstrumentListingsFromJSON)(json['listInstrumentListings']),
|
|
72
|
+
'listTimeseries': !(0, runtime_1.exists)(json, 'listTimeseries') ? undefined : (0, WebSocketCommandListTimeseries_1.WebSocketCommandListTimeseriesFromJSON)(json['listTimeseries']),
|
|
73
|
+
'listTimeseriesBidAsk': !(0, runtime_1.exists)(json, 'listTimeseriesBidAsk') ? undefined : (0, WebSocketCommandListTimeseriesBidAsk_1.WebSocketCommandListTimeseriesBidAskFromJSON)(json['listTimeseriesBidAsk']),
|
|
74
|
+
'listCharts': !(0, runtime_1.exists)(json, 'listCharts') ? undefined : (0, WebSocketCommandListCharts_1.WebSocketCommandListChartsFromJSON)(json['listCharts']),
|
|
75
|
+
'listTickHistory': !(0, runtime_1.exists)(json, 'listTickHistory') ? undefined : (0, WebSocketCommandListTickHistory_1.WebSocketCommandListTickHistoryFromJSON)(json['listTickHistory']),
|
|
76
|
+
'listMarketstates': !(0, runtime_1.exists)(json, 'listMarketstates') ? undefined : (0, WebSocketCommandListMarketstates_1.WebSocketCommandListMarketstatesFromJSON)(json['listMarketstates']),
|
|
77
|
+
'subscribeTimeseries': !(0, runtime_1.exists)(json, 'subscribeTimeseries') ? undefined : (0, WebSocketCommandSubscribeTimeseries_1.WebSocketCommandSubscribeTimeseriesFromJSON)(json['subscribeTimeseries']),
|
|
78
|
+
'subscribeTimeseriesBidAsk': !(0, runtime_1.exists)(json, 'subscribeTimeseriesBidAsk') ? undefined : (0, WebSocketCommandSubscribeTimeseriesBidAsk_1.WebSocketCommandSubscribeTimeseriesBidAskFromJSON)(json['subscribeTimeseriesBidAsk']),
|
|
79
|
+
'getInstrumentMasterdata': !(0, runtime_1.exists)(json, 'getInstrumentMasterdata') ? undefined : (0, WebSocketCommandGetInstrumentMasterdata_1.WebSocketCommandGetInstrumentMasterdataFromJSON)(json['getInstrumentMasterdata']),
|
|
80
|
+
'getAfuCompanyProfile': !(0, runtime_1.exists)(json, 'getAfuCompanyProfile') ? undefined : (0, WebSocketCommandGetAfuCompanyProfile_1.WebSocketCommandGetAfuCompanyProfileFromJSON)(json['getAfuCompanyProfile']),
|
|
81
|
+
'getFwwFundsProfile': !(0, runtime_1.exists)(json, 'getFwwFundsProfile') ? undefined : (0, WebSocketCommandGetFwwFundsProfile_1.WebSocketCommandGetFwwFundsProfileFromJSON)(json['getFwwFundsProfile']),
|
|
82
|
+
'getReference': !(0, runtime_1.exists)(json, 'getReference') ? undefined : (0, WebSocketCommandGetReference_1.WebSocketCommandGetReferenceFromJSON)(json['getReference']),
|
|
83
|
+
'getSource': !(0, runtime_1.exists)(json, 'getSource') ? undefined : (0, WebSocketCommandGetSource_1.WebSocketCommandGetSourceFromJSON)(json['getSource']),
|
|
84
|
+
'getKpi': !(0, runtime_1.exists)(json, 'getKpi') ? undefined : (0, WebSocketCommandGetKpi_1.WebSocketCommandGetKpiFromJSON)(json['getKpi']),
|
|
85
|
+
'getTradingtime': !(0, runtime_1.exists)(json, 'getTradingtime') ? undefined : (0, WebSocketCommandGetTradingtime_1.WebSocketCommandGetTradingtimeFromJSON)(json['getTradingtime']),
|
|
86
|
+
'getTradingtimeAnalysis': !(0, runtime_1.exists)(json, 'getTradingtimeAnalysis') ? undefined : (0, WebSocketCommandGetTradingtimeAnalysis_1.WebSocketCommandGetTradingtimeAnalysisFromJSON)(json['getTradingtimeAnalysis']),
|
|
87
|
+
'subscribeSourceTradeticker': !(0, runtime_1.exists)(json, 'subscribeSourceTradeticker') ? undefined : (0, WebSocketCommandSubscribeSourceTradeticker_1.WebSocketCommandSubscribeSourceTradetickerFromJSON)(json['subscribeSourceTradeticker']),
|
|
88
|
+
'subscribeListTopflop': !(0, runtime_1.exists)(json, 'subscribeListTopflop') ? undefined : (0, WebSocketCommandSubscribeListTopflop_1.WebSocketCommandSubscribeListTopflopFromJSON)(json['subscribeListTopflop']),
|
|
89
|
+
'rateLimitStatistics': !(0, runtime_1.exists)(json, 'rateLimitStatistics') ? undefined : json['rateLimitStatistics'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
exports.WebSocketRequestFromJSONTyped = WebSocketRequestFromJSONTyped;
|
|
93
|
+
function WebSocketRequestToJSON(value) {
|
|
94
|
+
if (value === undefined) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
if (value === null) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
'requestId': value.requestId,
|
|
102
|
+
'cancel': (0, WebSocketCommandCancel_1.WebSocketCommandCancelToJSON)(value.cancel),
|
|
103
|
+
'priority': (0, WebSocketCommandPriority_1.WebSocketCommandPriorityToJSON)(value.priority),
|
|
104
|
+
'heartbeat': (0, WebSocketCommandHeartbeat_1.WebSocketCommandHeartbeatToJSON)(value.heartbeat),
|
|
105
|
+
'authenticate': (0, WebSocketCommandAuthenticate_1.WebSocketCommandAuthenticateToJSON)(value.authenticate),
|
|
106
|
+
'subscribeAuthentication': (0, WebSocketCommandAuthenticate_1.WebSocketCommandAuthenticateToJSON)(value.subscribeAuthentication),
|
|
107
|
+
'subscribeMarketstates': (0, WebSocketCommandSubscribeMarketstates_1.WebSocketCommandSubscribeMarketstatesToJSON)(value.subscribeMarketstates),
|
|
108
|
+
'subscribeMarketdepth': (0, WebSocketCommandSubscribeMarketdepth_1.WebSocketCommandSubscribeMarketdepthToJSON)(value.subscribeMarketdepth),
|
|
109
|
+
'listPerformance': (0, WebSocketCommandListPerformance_1.WebSocketCommandListPerformanceToJSON)(value.listPerformance),
|
|
110
|
+
'listBidAskHistory': (0, WebSocketCommandListBidAskHistory_1.WebSocketCommandListBidAskHistoryToJSON)(value.listBidAskHistory),
|
|
111
|
+
'listInstrumentListings': (0, WebSocketCommandListInstrumentListings_1.WebSocketCommandListInstrumentListingsToJSON)(value.listInstrumentListings),
|
|
112
|
+
'listTimeseries': (0, WebSocketCommandListTimeseries_1.WebSocketCommandListTimeseriesToJSON)(value.listTimeseries),
|
|
113
|
+
'listTimeseriesBidAsk': (0, WebSocketCommandListTimeseriesBidAsk_1.WebSocketCommandListTimeseriesBidAskToJSON)(value.listTimeseriesBidAsk),
|
|
114
|
+
'listCharts': (0, WebSocketCommandListCharts_1.WebSocketCommandListChartsToJSON)(value.listCharts),
|
|
115
|
+
'listTickHistory': (0, WebSocketCommandListTickHistory_1.WebSocketCommandListTickHistoryToJSON)(value.listTickHistory),
|
|
116
|
+
'listMarketstates': (0, WebSocketCommandListMarketstates_1.WebSocketCommandListMarketstatesToJSON)(value.listMarketstates),
|
|
117
|
+
'subscribeTimeseries': (0, WebSocketCommandSubscribeTimeseries_1.WebSocketCommandSubscribeTimeseriesToJSON)(value.subscribeTimeseries),
|
|
118
|
+
'subscribeTimeseriesBidAsk': (0, WebSocketCommandSubscribeTimeseriesBidAsk_1.WebSocketCommandSubscribeTimeseriesBidAskToJSON)(value.subscribeTimeseriesBidAsk),
|
|
119
|
+
'getInstrumentMasterdata': (0, WebSocketCommandGetInstrumentMasterdata_1.WebSocketCommandGetInstrumentMasterdataToJSON)(value.getInstrumentMasterdata),
|
|
120
|
+
'getAfuCompanyProfile': (0, WebSocketCommandGetAfuCompanyProfile_1.WebSocketCommandGetAfuCompanyProfileToJSON)(value.getAfuCompanyProfile),
|
|
121
|
+
'getFwwFundsProfile': (0, WebSocketCommandGetFwwFundsProfile_1.WebSocketCommandGetFwwFundsProfileToJSON)(value.getFwwFundsProfile),
|
|
122
|
+
'getReference': (0, WebSocketCommandGetReference_1.WebSocketCommandGetReferenceToJSON)(value.getReference),
|
|
123
|
+
'getSource': (0, WebSocketCommandGetSource_1.WebSocketCommandGetSourceToJSON)(value.getSource),
|
|
124
|
+
'getKpi': (0, WebSocketCommandGetKpi_1.WebSocketCommandGetKpiToJSON)(value.getKpi),
|
|
125
|
+
'getTradingtime': (0, WebSocketCommandGetTradingtime_1.WebSocketCommandGetTradingtimeToJSON)(value.getTradingtime),
|
|
126
|
+
'getTradingtimeAnalysis': (0, WebSocketCommandGetTradingtimeAnalysis_1.WebSocketCommandGetTradingtimeAnalysisToJSON)(value.getTradingtimeAnalysis),
|
|
127
|
+
'subscribeSourceTradeticker': (0, WebSocketCommandSubscribeSourceTradeticker_1.WebSocketCommandSubscribeSourceTradetickerToJSON)(value.subscribeSourceTradeticker),
|
|
128
|
+
'subscribeListTopflop': (0, WebSocketCommandSubscribeListTopflop_1.WebSocketCommandSubscribeListTopflopToJSON)(value.subscribeListTopflop),
|
|
129
|
+
'rateLimitStatistics': value.rateLimitStatistics,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
exports.WebSocketRequestToJSON = WebSocketRequestToJSON;
|
package/lib/cjs/models/index.js
CHANGED
|
@@ -66,6 +66,8 @@ __exportStar(require("./BidAskTimeseriesItem"), exports);
|
|
|
66
66
|
__exportStar(require("./ChartData"), exports);
|
|
67
67
|
__exportStar(require("./ChartDataAllOf"), exports);
|
|
68
68
|
__exportStar(require("./ContinuationToken"), exports);
|
|
69
|
+
__exportStar(require("./CorporateAction"), exports);
|
|
70
|
+
__exportStar(require("./CorporateActions"), exports);
|
|
69
71
|
__exportStar(require("./DayMarkData"), exports);
|
|
70
72
|
__exportStar(require("./DayMarkDataEod"), exports);
|
|
71
73
|
__exportStar(require("./EodExtract"), exports);
|
|
@@ -84,6 +86,8 @@ __exportStar(require("./InstrumentsInstrumentIdFwwFundsGet200Response"), exports
|
|
|
84
86
|
__exportStar(require("./InstrumentsInstrumentIdListingsGet200Response"), exports);
|
|
85
87
|
__exportStar(require("./InstrumentsInstrumentIdMarketstatesGet200Response"), exports);
|
|
86
88
|
__exportStar(require("./InstrumentsInstrumentIdMarketstatesGet200Response1"), exports);
|
|
89
|
+
__exportStar(require("./KpiData"), exports);
|
|
90
|
+
__exportStar(require("./KpiDataAllOf"), exports);
|
|
87
91
|
__exportStar(require("./List"), exports);
|
|
88
92
|
__exportStar(require("./ListEntry"), exports);
|
|
89
93
|
__exportStar(require("./ListTotalResultCount"), exports);
|
|
@@ -150,6 +154,7 @@ __exportStar(require("./TickHistoryData"), exports);
|
|
|
150
154
|
__exportStar(require("./TimeRange"), exports);
|
|
151
155
|
__exportStar(require("./Timeseries"), exports);
|
|
152
156
|
__exportStar(require("./TimeseriesAllOf"), exports);
|
|
157
|
+
__exportStar(require("./TimeseriesBidAskData"), exports);
|
|
153
158
|
__exportStar(require("./TimeseriesData"), exports);
|
|
154
159
|
__exportStar(require("./TopflopEntry"), exports);
|
|
155
160
|
__exportStar(require("./TopflopEntryAllOf"), exports);
|
|
@@ -170,6 +175,7 @@ __exportStar(require("./WebSocketCommandCancel"), exports);
|
|
|
170
175
|
__exportStar(require("./WebSocketCommandGetAfuCompanyProfile"), exports);
|
|
171
176
|
__exportStar(require("./WebSocketCommandGetFwwFundsProfile"), exports);
|
|
172
177
|
__exportStar(require("./WebSocketCommandGetInstrumentMasterdata"), exports);
|
|
178
|
+
__exportStar(require("./WebSocketCommandGetKpi"), exports);
|
|
173
179
|
__exportStar(require("./WebSocketCommandGetReference"), exports);
|
|
174
180
|
__exportStar(require("./WebSocketCommandGetSource"), exports);
|
|
175
181
|
__exportStar(require("./WebSocketCommandGetTradingtime"), exports);
|
|
@@ -182,11 +188,13 @@ __exportStar(require("./WebSocketCommandListMarketstates"), exports);
|
|
|
182
188
|
__exportStar(require("./WebSocketCommandListPerformance"), exports);
|
|
183
189
|
__exportStar(require("./WebSocketCommandListTickHistory"), exports);
|
|
184
190
|
__exportStar(require("./WebSocketCommandListTimeseries"), exports);
|
|
191
|
+
__exportStar(require("./WebSocketCommandListTimeseriesBidAsk"), exports);
|
|
185
192
|
__exportStar(require("./WebSocketCommandPriority"), exports);
|
|
186
193
|
__exportStar(require("./WebSocketCommandSubscribeListTopflop"), exports);
|
|
187
194
|
__exportStar(require("./WebSocketCommandSubscribeMarketdepth"), exports);
|
|
188
195
|
__exportStar(require("./WebSocketCommandSubscribeMarketstates"), exports);
|
|
189
196
|
__exportStar(require("./WebSocketCommandSubscribeSourceTradeticker"), exports);
|
|
190
197
|
__exportStar(require("./WebSocketCommandSubscribeTimeseries"), exports);
|
|
198
|
+
__exportStar(require("./WebSocketCommandSubscribeTimeseriesBidAsk"), exports);
|
|
191
199
|
__exportStar(require("./WebSocketMessage"), exports);
|
|
192
200
|
__exportStar(require("./WebSocketRequest"), exports);
|
|
@@ -3,7 +3,7 @@ import { MdsConnectionState } from './MdsConnectionState';
|
|
|
3
3
|
import { RunningRequest } from './RunningRequest';
|
|
4
4
|
import { Observable, map, retry, repeat } from 'rxjs';
|
|
5
5
|
import { MarketstateUpdate } from './MarketstateUpdate';
|
|
6
|
-
import { AfuCompanyProfileFromJSON, BidAskHistoryDataFromJSON, ListingdataWithIdAndQualityFromJSON, MarketdepthWithIdFromJSON, MarketstateResponseSearchFromJSON, MarketstateResponseSearchToJSON, MasterdataMergedSummaryWithIdFromJSON, PerformanceDataForTimeRangeFromJSON, SourcedataFromJSON, TickHistoryDataFromJSON, TimeseriesDataFromJSON, TradetickerEventFromJSON, TradingtimeFromJSON, TradingtimeInfoReplyFromJSON } from '../models';
|
|
6
|
+
import { AfuCompanyProfileFromJSON, BidAskHistoryDataFromJSON, ListingdataWithIdAndQualityFromJSON, MarketdepthWithIdFromJSON, MarketstateResponseSearchFromJSON, MarketstateResponseSearchToJSON, MasterdataMergedSummaryWithIdFromJSON, PerformanceDataForTimeRangeFromJSON, SourcedataFromJSON, TickHistoryDataFromJSON, TimeseriesBidAskDataFromJSON, TimeseriesDataFromJSON, TradetickerEventFromJSON, TradingtimeFromJSON, TradingtimeInfoReplyFromJSON } from '../models';
|
|
7
7
|
import { LruCache } from '../lrucache';
|
|
8
8
|
export class MdsConnection {
|
|
9
9
|
/**
|
|
@@ -67,7 +67,7 @@ export class MdsConnection {
|
|
|
67
67
|
this.stayAuthenticated();
|
|
68
68
|
this.reconnectTimer = setInterval(() => {
|
|
69
69
|
if (!outer.state.isTimedOut()) {
|
|
70
|
-
outer.debug(
|
|
70
|
+
outer.debug('websocket timed out, calling reconnect');
|
|
71
71
|
outer.state.forcedDisconnect();
|
|
72
72
|
outer.websocket.reconnect();
|
|
73
73
|
}
|
|
@@ -83,8 +83,7 @@ export class MdsConnection {
|
|
|
83
83
|
* create a hearbeat observable that can be subscribed to
|
|
84
84
|
*/
|
|
85
85
|
heartbeat() {
|
|
86
|
-
return this.observable({ heartbeat: {} })
|
|
87
|
-
.pipe(map((x) => x.dataHeartbeat));
|
|
86
|
+
return this.observable({ heartbeat: {} }).pipe(map((x) => x.dataHeartbeat));
|
|
88
87
|
}
|
|
89
88
|
/**
|
|
90
89
|
* sets the priority for sources
|
|
@@ -165,8 +164,7 @@ export class MdsConnection {
|
|
|
165
164
|
*/
|
|
166
165
|
marketstates(marketstateQueries, quality) {
|
|
167
166
|
const full = new Map();
|
|
168
|
-
return this.marketstateUpdates(marketstateQueries, quality)
|
|
169
|
-
.pipe(map((update) => {
|
|
167
|
+
return this.marketstateUpdates(marketstateQueries, quality).pipe(map((update) => {
|
|
170
168
|
let existingEntry = update.marketstateId ? full.get(update.marketstateId) : undefined;
|
|
171
169
|
if (update.marketstateId) {
|
|
172
170
|
if (existingEntry) {
|
|
@@ -184,15 +182,23 @@ export class MdsConnection {
|
|
|
184
182
|
* create a Marketstate for a snapshot request
|
|
185
183
|
*/
|
|
186
184
|
marketstateSnapshot(marketstateQueries, quality) {
|
|
187
|
-
return this.observable({
|
|
188
|
-
|
|
185
|
+
return this.observable({
|
|
186
|
+
listMarketstates: {
|
|
187
|
+
marketstateQueries: marketstateQueries,
|
|
188
|
+
quality: quality
|
|
189
|
+
}
|
|
190
|
+
}).pipe(map((x) => MarketstateResponseSearchFromJSON(x.dataMarketstate)));
|
|
189
191
|
}
|
|
190
192
|
/**
|
|
191
193
|
* create a Marketstate observable that can be subscribed to, contains only delta for every marketstate
|
|
192
194
|
*/
|
|
193
195
|
marketstateUpdates(marketstateQueries, quality) {
|
|
194
|
-
return this.observable({
|
|
195
|
-
|
|
196
|
+
return this.observable({
|
|
197
|
+
subscribeMarketstates: {
|
|
198
|
+
marketstateQueries: marketstateQueries,
|
|
199
|
+
quality: quality
|
|
200
|
+
}
|
|
201
|
+
}).pipe(map((x) => MarketstateResponseSearchFromJSON(x.dataMarketstate)));
|
|
196
202
|
}
|
|
197
203
|
/**
|
|
198
204
|
* create a Marketstate observable that can be subscribed to, contains only full state for every marketstate
|
|
@@ -237,8 +243,8 @@ export class MdsConnection {
|
|
|
237
243
|
}).pipe(map(state => TimeseriesDataFromJSON(state.dataTimeseries)));
|
|
238
244
|
}
|
|
239
245
|
/**
|
|
240
|
-
|
|
241
|
-
|
|
246
|
+
* Returns the Orderbook for the specified Marketstate.
|
|
247
|
+
* */
|
|
242
248
|
marketdepth(marketstateId, quality, orderBookVariant) {
|
|
243
249
|
return this.observable({
|
|
244
250
|
subscribeMarketdepth: {
|
|
@@ -299,6 +305,31 @@ export class MdsConnection {
|
|
|
299
305
|
return tickHistory;
|
|
300
306
|
}));
|
|
301
307
|
}
|
|
308
|
+
timeseriesBidAsk(marketstateId, resolution, start, end, quality) {
|
|
309
|
+
return this.observable({
|
|
310
|
+
subscribeTimeseriesBidAsk: {
|
|
311
|
+
resolution: resolution,
|
|
312
|
+
marketstateId: marketstateId,
|
|
313
|
+
start: start instanceof Date ? start?.toISOString() : start,
|
|
314
|
+
end: end instanceof Date ? end?.toISOString() : end,
|
|
315
|
+
quality: quality
|
|
316
|
+
}
|
|
317
|
+
}).pipe(map(state => TimeseriesBidAskDataFromJSON(state.dataTimeseriesBidAsk)));
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Returns the Open-High-Low-Close Timeseries for the specified Instrument on the Source.
|
|
321
|
+
* */
|
|
322
|
+
timeseriesBidAskSnapshot(marketstateId, resolution, start, end, quality) {
|
|
323
|
+
return this.observable({
|
|
324
|
+
listTimeseriesBidAsk: {
|
|
325
|
+
resolution: resolution,
|
|
326
|
+
marketstateId: marketstateId,
|
|
327
|
+
start: start instanceof Date ? start?.toISOString() : start,
|
|
328
|
+
end: end instanceof Date ? end?.toISOString() : end,
|
|
329
|
+
quality: quality
|
|
330
|
+
}
|
|
331
|
+
}).pipe(map(state => TimeseriesBidAskDataFromJSON(state.dataTimeseriesBidAsk)));
|
|
332
|
+
}
|
|
302
333
|
// #############################################################################################
|
|
303
334
|
updateExistingMarketstateWithDeltaUpdate(existingEntry, update) {
|
|
304
335
|
const existingJson = MarketstateResponseSearchToJSON(existingEntry);
|
|
@@ -347,15 +378,20 @@ export class MdsConnection {
|
|
|
347
378
|
outer.state.authenticationEnded();
|
|
348
379
|
subscriber.error(error);
|
|
349
380
|
});
|
|
350
|
-
}).pipe(retry({ delay: 2000 }), repeat({ delay: 2000 }))
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
381
|
+
}).pipe(retry({ delay: 2000 }), repeat({ delay: 2000 })).subscribe({
|
|
382
|
+
next(n) {
|
|
383
|
+
outer.debug(`auth outer ${JSON.stringify(n)}`);
|
|
384
|
+
},
|
|
385
|
+
error(e) {
|
|
386
|
+
outer.error(`auth error ${JSON.stringify(e)}`);
|
|
387
|
+
},
|
|
388
|
+
complete() {
|
|
389
|
+
outer.debug('auth completed');
|
|
390
|
+
}
|
|
355
391
|
});
|
|
356
392
|
}
|
|
357
393
|
generateNextRequestId() {
|
|
358
|
-
return
|
|
394
|
+
return 'request-' + this.nextGeneratedRequestId++;
|
|
359
395
|
}
|
|
360
396
|
observable(req) {
|
|
361
397
|
const requestId = this.generateNextRequestId();
|
|
@@ -388,7 +424,7 @@ export class MdsConnection {
|
|
|
388
424
|
processWebsocketMessageEvent(e) {
|
|
389
425
|
if (e?.data) {
|
|
390
426
|
const msg = JSON.parse(e.data);
|
|
391
|
-
this.debug(
|
|
427
|
+
this.debug('we received ' + JSON.stringify(msg));
|
|
392
428
|
this.state.messageReceived();
|
|
393
429
|
if (msg.requestId) {
|
|
394
430
|
const request = this.runningRequests.get(msg.requestId);
|
|
@@ -33,6 +33,7 @@ export function AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquityFro
|
|
|
33
33
|
'retainedEarnings': !exists(json, 'retainedEarnings') ? undefined : (json['retainedEarnings'].map(AfuCompanyYearlyAmountFromJSON)),
|
|
34
34
|
'treasuryStock': !exists(json, 'treasuryStock') ? undefined : (json['treasuryStock'].map(AfuCompanyYearlyAmountFromJSON)),
|
|
35
35
|
'otherCapital': !exists(json, 'otherCapital') ? undefined : (json['otherCapital'].map(AfuCompanyYearlyAmountFromJSON)),
|
|
36
|
+
'totalEquity': !exists(json, 'totalEquity') ? undefined : (json['totalEquity'].map(AfuCompanyYearlyAmountFromJSON)),
|
|
36
37
|
'preferredEquity': !exists(json, 'preferredEquity') ? undefined : (json['preferredEquity'].map(AfuCompanyYearlyAmountFromJSON)),
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -49,6 +50,7 @@ export function AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquityToJ
|
|
|
49
50
|
'retainedEarnings': value.retainedEarnings === undefined ? undefined : (value.retainedEarnings.map(AfuCompanyYearlyAmountToJSON)),
|
|
50
51
|
'treasuryStock': value.treasuryStock === undefined ? undefined : (value.treasuryStock.map(AfuCompanyYearlyAmountToJSON)),
|
|
51
52
|
'otherCapital': value.otherCapital === undefined ? undefined : (value.otherCapital.map(AfuCompanyYearlyAmountToJSON)),
|
|
53
|
+
'totalEquity': value.totalEquity === undefined ? undefined : (value.totalEquity.map(AfuCompanyYearlyAmountToJSON)),
|
|
52
54
|
'preferredEquity': value.preferredEquity === undefined ? undefined : (value.preferredEquity.map(AfuCompanyYearlyAmountToJSON)),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MDS API
|
|
5
|
+
* Please note the following definitions used throughout this API: **Source**: A source can be any kind of marketplace (exchange) or an entity that calculates prices/values for instruments. **Instrument**: An instrument is e.g. a stock, a bond, an index, a currency-pair, or a specific future/option contract. An instrument is identified by an InstrumentId. Some information in MDS is linked to instruments: Masterdata (names, instrument types,...), Fundamental stock data, News,... **Listing**: An instrument can be traded/calculated on multiple sources. Some sources even support multiple listings of the same instrument, e.g. lisings in different currencies. A listing is identified by a MarketstateId. Most information in MDS is linked to listings: Marketstate (prices/quotes), Tickdata (price/quote history), Performance data,... **Instrument** **vs** **Listing**: The Microsoft stock is an instrument identified by the InstrumentId \"US5949181045\". It is listed and traded on many exchanges. Each of these listings is identified by a unique MarketstateId, i.e. \"US5949181045@GAT\" (listing on Tradegate) or \"US5949181045,USD@SIX\" (USD-listing on SIX), or \"US5949181045,CHF@SIX\" (CHF-listing on SIX). **Marketstate** defines the current state of an instrument listed on a source. In our case besides open, close, post and pre market also latest trade and quote information... **MarketstateQuery**: When you request a price/quote in MDS, you have to select the listing(s) you wish to receive them for. Most API calls use a MarketstateQuery as a parameter to express a filter for one or more Marketstates. The query often takes the form of \"DE0007100000@ETR\" and can also utilize wildcards like \"*\" or \"?\". <br> See here for a full specification <a href=\"#model-MarketstateQuery\">MarketstateQuery</a> **Timestamps**: Most events covered in MDS have a known instant they refer to. A trade on an exchange usually has an exact time when it was executed. However depending on source and context some events can refer to a whole trading day without specifying a time of day. ECB currency rates for instance are determined for the whole day. In other cases an exact time is not part of the licensed data, e.g. when looking at the end-of-day quality of some exchanges. If an exact time is known, this is transmitted in a field \"datetime\". If only a date is given the field \"date\" is used. If you see \"00:00:00.000\" in a datetime field, this actually means something happened exactly at midnight, it is not a special value indicating \\\"no date available\\\". **SSE-NOTE**: Many endpoints support Server Sent Events (SSE) to get pushed updates. To receive SSE the client needs to request the content-type \"text/event-stream\" via the \"accept\" http request-header. <br>Unfortunately Swagger UI does not support SSE! To test SSE on an endpoint use the curl command shown in the snapshot response and modify the \"accept\" HTTP request-header as described above. **CURL-NOTE**: When use curl use the option -i to see the response headers. If the return status is 401 then you have to reauthorize. Otherwise you do not see whether the token is expired and wondering that there is no response.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.4.34
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const CorporateActionCorporateActionTypeEnum = {
|
|
19
|
+
Dividend: 'Dividend',
|
|
20
|
+
SubscriptionRight: 'SubscriptionRight',
|
|
21
|
+
Split: 'Split',
|
|
22
|
+
FreeShares: 'FreeShares',
|
|
23
|
+
Distributions: 'Distributions',
|
|
24
|
+
GeneralCorrection: 'GeneralCorrection',
|
|
25
|
+
EuroChangeover: 'EuroChangeover'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the CorporateAction interface.
|
|
29
|
+
*/
|
|
30
|
+
export function instanceOfCorporateAction(value) {
|
|
31
|
+
let isInstance = true;
|
|
32
|
+
return isInstance;
|
|
33
|
+
}
|
|
34
|
+
export function CorporateActionFromJSON(json) {
|
|
35
|
+
return CorporateActionFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CorporateActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if ((json === undefined) || (json === null)) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'comment': !exists(json, 'comment') ? undefined : json['comment'],
|
|
43
|
+
'date': !exists(json, 'date') ? undefined : (new Date(json['date'])),
|
|
44
|
+
'corporateActionType': !exists(json, 'corporateActionType') ? undefined : json['corporateActionType'],
|
|
45
|
+
'payoutCurrency': !exists(json, 'payoutCurrency') ? undefined : json['payoutCurrency'],
|
|
46
|
+
'payoutOrig': !exists(json, 'payoutOrig') ? undefined : json['payoutOrig'],
|
|
47
|
+
'payoutEur': !exists(json, 'payoutEur') ? undefined : json['payoutEur'],
|
|
48
|
+
'ratio1': !exists(json, 'ratio1') ? undefined : json['ratio1'],
|
|
49
|
+
'ratio2': !exists(json, 'ratio2') ? undefined : json['ratio2'],
|
|
50
|
+
'factor': !exists(json, 'factor') ? undefined : json['factor'],
|
|
51
|
+
'differingDate': !exists(json, 'differingDate') ? undefined : json['differingDate'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function CorporateActionToJSON(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'comment': value.comment,
|
|
63
|
+
'date': value.date === undefined ? undefined : (value.date.toISOString().substr(0, 10)),
|
|
64
|
+
'corporateActionType': value.corporateActionType,
|
|
65
|
+
'payoutCurrency': value.payoutCurrency,
|
|
66
|
+
'payoutOrig': value.payoutOrig,
|
|
67
|
+
'payoutEur': value.payoutEur,
|
|
68
|
+
'ratio1': value.ratio1,
|
|
69
|
+
'ratio2': value.ratio2,
|
|
70
|
+
'factor': value.factor,
|
|
71
|
+
'differingDate': value.differingDate,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MDS API
|
|
5
|
+
* Please note the following definitions used throughout this API: **Source**: A source can be any kind of marketplace (exchange) or an entity that calculates prices/values for instruments. **Instrument**: An instrument is e.g. a stock, a bond, an index, a currency-pair, or a specific future/option contract. An instrument is identified by an InstrumentId. Some information in MDS is linked to instruments: Masterdata (names, instrument types,...), Fundamental stock data, News,... **Listing**: An instrument can be traded/calculated on multiple sources. Some sources even support multiple listings of the same instrument, e.g. lisings in different currencies. A listing is identified by a MarketstateId. Most information in MDS is linked to listings: Marketstate (prices/quotes), Tickdata (price/quote history), Performance data,... **Instrument** **vs** **Listing**: The Microsoft stock is an instrument identified by the InstrumentId \"US5949181045\". It is listed and traded on many exchanges. Each of these listings is identified by a unique MarketstateId, i.e. \"US5949181045@GAT\" (listing on Tradegate) or \"US5949181045,USD@SIX\" (USD-listing on SIX), or \"US5949181045,CHF@SIX\" (CHF-listing on SIX). **Marketstate** defines the current state of an instrument listed on a source. In our case besides open, close, post and pre market also latest trade and quote information... **MarketstateQuery**: When you request a price/quote in MDS, you have to select the listing(s) you wish to receive them for. Most API calls use a MarketstateQuery as a parameter to express a filter for one or more Marketstates. The query often takes the form of \"DE0007100000@ETR\" and can also utilize wildcards like \"*\" or \"?\". <br> See here for a full specification <a href=\"#model-MarketstateQuery\">MarketstateQuery</a> **Timestamps**: Most events covered in MDS have a known instant they refer to. A trade on an exchange usually has an exact time when it was executed. However depending on source and context some events can refer to a whole trading day without specifying a time of day. ECB currency rates for instance are determined for the whole day. In other cases an exact time is not part of the licensed data, e.g. when looking at the end-of-day quality of some exchanges. If an exact time is known, this is transmitted in a field \"datetime\". If only a date is given the field \"date\" is used. If you see \"00:00:00.000\" in a datetime field, this actually means something happened exactly at midnight, it is not a special value indicating \\\"no date available\\\". **SSE-NOTE**: Many endpoints support Server Sent Events (SSE) to get pushed updates. To receive SSE the client needs to request the content-type \"text/event-stream\" via the \"accept\" http request-header. <br>Unfortunately Swagger UI does not support SSE! To test SSE on an endpoint use the curl command shown in the snapshot response and modify the \"accept\" HTTP request-header as described above. **CURL-NOTE**: When use curl use the option -i to see the response headers. If the return status is 401 then you have to reauthorize. Otherwise you do not see whether the token is expired and wondering that there is no response.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.4.34
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { CorporateActionFromJSON, CorporateActionToJSON, } from './CorporateAction';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CorporateActions interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCorporateActions(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
export function CorporateActionsFromJSON(json) {
|
|
24
|
+
return CorporateActionsFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function CorporateActionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'actions': !exists(json, 'actions') ? undefined : (json['actions'].map(CorporateActionFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function CorporateActionsToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'actions': value.actions === undefined ? undefined : (value.actions.map(CorporateActionToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|