@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.
Files changed (61) hide show
  1. package/lib/cjs/api/MdsConnection.js +54 -18
  2. package/lib/cjs/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.js +2 -0
  3. package/lib/cjs/models/CorporateAction.js +80 -0
  4. package/lib/cjs/models/CorporateActions.js +51 -0
  5. package/lib/cjs/models/KpiData.js +184 -0
  6. package/lib/cjs/models/KpiDataAllOf.js +174 -0
  7. package/lib/cjs/models/TimeseriesBidAskData.js +54 -0
  8. package/lib/cjs/models/TimeseriesData.js +2 -0
  9. package/lib/cjs/models/WebSocketCommandGetKpi.js +58 -0
  10. package/lib/cjs/models/WebSocketCommandGetTradingtimeAnalysis.js +37 -0
  11. package/lib/cjs/models/WebSocketCommandListTimeseriesBidAsk.js +60 -0
  12. package/lib/cjs/models/WebSocketCommandSubscribeTimeseriesBidAsk.js +60 -0
  13. package/lib/cjs/models/WebSocketMessage.js +6 -0
  14. package/lib/cjs/models/WebSocketRequest.js +117 -0
  15. package/lib/cjs/models/index.js +8 -0
  16. package/lib/esm/api/MdsConnection.js +55 -19
  17. package/lib/esm/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.js +2 -0
  18. package/lib/esm/models/CorporateAction.js +73 -0
  19. package/lib/esm/models/CorporateActions.js +44 -0
  20. package/lib/esm/models/KpiData.js +177 -0
  21. package/lib/esm/models/KpiDataAllOf.js +167 -0
  22. package/lib/esm/models/TimeseriesBidAskData.js +47 -0
  23. package/lib/esm/models/TimeseriesData.js +2 -0
  24. package/lib/esm/models/WebSocketCommandGetKpi.js +51 -0
  25. package/lib/esm/models/WebSocketCommandGetTradingtimeAnalysis.js +32 -1
  26. package/lib/esm/models/WebSocketCommandListTimeseriesBidAsk.js +53 -0
  27. package/lib/esm/models/WebSocketCommandSubscribeTimeseriesBidAsk.js +53 -0
  28. package/lib/esm/models/WebSocketMessage.js +6 -0
  29. package/lib/esm/models/WebSocketRequest.js +112 -1
  30. package/lib/esm/models/index.js +8 -0
  31. package/lib/types/api/MdsConnection.d.ts +12 -7
  32. package/lib/types/api/MdsConnection.d.ts.map +1 -1
  33. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.d.ts +6 -0
  34. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.d.ts.map +1 -1
  35. package/lib/types/models/CorporateAction.d.ts +99 -0
  36. package/lib/types/models/CorporateAction.d.ts.map +1 -0
  37. package/lib/types/models/CorporateActions.d.ts +33 -0
  38. package/lib/types/models/CorporateActions.d.ts.map +1 -0
  39. package/lib/types/models/KpiData.d.ts +435 -0
  40. package/lib/types/models/KpiData.d.ts.map +1 -0
  41. package/lib/types/models/KpiDataAllOf.d.ts +404 -0
  42. package/lib/types/models/KpiDataAllOf.d.ts.map +1 -0
  43. package/lib/types/models/TimeseriesBidAskData.d.ts +44 -0
  44. package/lib/types/models/TimeseriesBidAskData.d.ts.map +1 -0
  45. package/lib/types/models/TimeseriesData.d.ts +6 -0
  46. package/lib/types/models/TimeseriesData.d.ts.map +1 -1
  47. package/lib/types/models/WebSocketCommandGetKpi.d.ts +56 -0
  48. package/lib/types/models/WebSocketCommandGetKpi.d.ts.map +1 -0
  49. package/lib/types/models/WebSocketCommandGetTradingtimeAnalysis.d.ts +7 -0
  50. package/lib/types/models/WebSocketCommandGetTradingtimeAnalysis.d.ts.map +1 -1
  51. package/lib/types/models/WebSocketCommandListTimeseriesBidAsk.d.ts +59 -0
  52. package/lib/types/models/WebSocketCommandListTimeseriesBidAsk.d.ts.map +1 -0
  53. package/lib/types/models/WebSocketCommandSubscribeTimeseriesBidAsk.d.ts +59 -0
  54. package/lib/types/models/WebSocketCommandSubscribeTimeseriesBidAsk.d.ts.map +1 -0
  55. package/lib/types/models/WebSocketMessage.d.ts +14 -0
  56. package/lib/types/models/WebSocketMessage.d.ts.map +1 -1
  57. package/lib/types/models/WebSocketRequest.d.ts +28 -0
  58. package/lib/types/models/WebSocketRequest.d.ts.map +1 -1
  59. package/lib/types/models/index.d.ts +8 -0
  60. package/lib/types/models/index.d.ts.map +1 -1
  61. package/package.json +1 -1
@@ -73,7 +73,7 @@ class MdsConnection {
73
73
  this.stayAuthenticated();
74
74
  this.reconnectTimer = setInterval(() => {
75
75
  if (!outer.state.isTimedOut()) {
76
- outer.debug("websocket timed out, calling reconnect");
76
+ outer.debug('websocket timed out, calling reconnect');
77
77
  outer.state.forcedDisconnect();
78
78
  outer.websocket.reconnect();
79
79
  }
@@ -89,8 +89,7 @@ class MdsConnection {
89
89
  * create a hearbeat observable that can be subscribed to
90
90
  */
91
91
  heartbeat() {
92
- return this.observable({ heartbeat: {} })
93
- .pipe((0, rxjs_1.map)((x) => x.dataHeartbeat));
92
+ return this.observable({ heartbeat: {} }).pipe((0, rxjs_1.map)((x) => x.dataHeartbeat));
94
93
  }
95
94
  /**
96
95
  * sets the priority for sources
@@ -171,8 +170,7 @@ class MdsConnection {
171
170
  */
172
171
  marketstates(marketstateQueries, quality) {
173
172
  const full = new Map();
174
- return this.marketstateUpdates(marketstateQueries, quality)
175
- .pipe((0, rxjs_1.map)((update) => {
173
+ return this.marketstateUpdates(marketstateQueries, quality).pipe((0, rxjs_1.map)((update) => {
176
174
  let existingEntry = update.marketstateId ? full.get(update.marketstateId) : undefined;
177
175
  if (update.marketstateId) {
178
176
  if (existingEntry) {
@@ -190,15 +188,23 @@ class MdsConnection {
190
188
  * create a Marketstate for a snapshot request
191
189
  */
192
190
  marketstateSnapshot(marketstateQueries, quality) {
193
- return this.observable({ listMarketstates: { marketstateQueries: marketstateQueries, quality: quality } })
194
- .pipe((0, rxjs_1.map)((x) => (0, models_1.MarketstateResponseSearchFromJSON)(x.dataMarketstate)));
191
+ return this.observable({
192
+ listMarketstates: {
193
+ marketstateQueries: marketstateQueries,
194
+ quality: quality
195
+ }
196
+ }).pipe((0, rxjs_1.map)((x) => (0, models_1.MarketstateResponseSearchFromJSON)(x.dataMarketstate)));
195
197
  }
196
198
  /**
197
199
  * create a Marketstate observable that can be subscribed to, contains only delta for every marketstate
198
200
  */
199
201
  marketstateUpdates(marketstateQueries, quality) {
200
- return this.observable({ subscribeMarketstates: { marketstateQueries: marketstateQueries, quality: quality } })
201
- .pipe((0, rxjs_1.map)((x) => (0, models_1.MarketstateResponseSearchFromJSON)(x.dataMarketstate)));
202
+ return this.observable({
203
+ subscribeMarketstates: {
204
+ marketstateQueries: marketstateQueries,
205
+ quality: quality
206
+ }
207
+ }).pipe((0, rxjs_1.map)((x) => (0, models_1.MarketstateResponseSearchFromJSON)(x.dataMarketstate)));
202
208
  }
203
209
  /**
204
210
  * create a Marketstate observable that can be subscribed to, contains only full state for every marketstate
@@ -243,8 +249,8 @@ class MdsConnection {
243
249
  }).pipe((0, rxjs_1.map)(state => (0, models_1.TimeseriesDataFromJSON)(state.dataTimeseries)));
244
250
  }
245
251
  /**
246
- * Returns the Orderbook for the specified Marketstate.
247
- * */
252
+ * Returns the Orderbook for the specified Marketstate.
253
+ * */
248
254
  marketdepth(marketstateId, quality, orderBookVariant) {
249
255
  return this.observable({
250
256
  subscribeMarketdepth: {
@@ -305,6 +311,31 @@ class MdsConnection {
305
311
  return tickHistory;
306
312
  }));
307
313
  }
314
+ timeseriesBidAsk(marketstateId, resolution, start, end, quality) {
315
+ return this.observable({
316
+ subscribeTimeseriesBidAsk: {
317
+ resolution: resolution,
318
+ marketstateId: marketstateId,
319
+ start: start instanceof Date ? start?.toISOString() : start,
320
+ end: end instanceof Date ? end?.toISOString() : end,
321
+ quality: quality
322
+ }
323
+ }).pipe((0, rxjs_1.map)(state => (0, models_1.TimeseriesBidAskDataFromJSON)(state.dataTimeseriesBidAsk)));
324
+ }
325
+ /**
326
+ * Returns the Open-High-Low-Close Timeseries for the specified Instrument on the Source.
327
+ * */
328
+ timeseriesBidAskSnapshot(marketstateId, resolution, start, end, quality) {
329
+ return this.observable({
330
+ listTimeseriesBidAsk: {
331
+ resolution: resolution,
332
+ marketstateId: marketstateId,
333
+ start: start instanceof Date ? start?.toISOString() : start,
334
+ end: end instanceof Date ? end?.toISOString() : end,
335
+ quality: quality
336
+ }
337
+ }).pipe((0, rxjs_1.map)(state => (0, models_1.TimeseriesBidAskDataFromJSON)(state.dataTimeseriesBidAsk)));
338
+ }
308
339
  // #############################################################################################
309
340
  updateExistingMarketstateWithDeltaUpdate(existingEntry, update) {
310
341
  const existingJson = (0, models_1.MarketstateResponseSearchToJSON)(existingEntry);
@@ -353,15 +384,20 @@ class MdsConnection {
353
384
  outer.state.authenticationEnded();
354
385
  subscriber.error(error);
355
386
  });
356
- }).pipe((0, rxjs_1.retry)({ delay: 2000 }), (0, rxjs_1.repeat)({ delay: 2000 }))
357
- .subscribe({
358
- next(n) { outer.debug(`auth outer ${JSON.stringify(n)}`); },
359
- error(e) { outer.error(`auth error ${JSON.stringify(e)}`); },
360
- complete() { outer.debug("auth completed"); }
387
+ }).pipe((0, rxjs_1.retry)({ delay: 2000 }), (0, rxjs_1.repeat)({ delay: 2000 })).subscribe({
388
+ next(n) {
389
+ outer.debug(`auth outer ${JSON.stringify(n)}`);
390
+ },
391
+ error(e) {
392
+ outer.error(`auth error ${JSON.stringify(e)}`);
393
+ },
394
+ complete() {
395
+ outer.debug('auth completed');
396
+ }
361
397
  });
362
398
  }
363
399
  generateNextRequestId() {
364
- return "request-" + this.nextGeneratedRequestId++;
400
+ return 'request-' + this.nextGeneratedRequestId++;
365
401
  }
366
402
  observable(req) {
367
403
  const requestId = this.generateNextRequestId();
@@ -394,7 +430,7 @@ class MdsConnection {
394
430
  processWebsocketMessageEvent(e) {
395
431
  if (e?.data) {
396
432
  const msg = JSON.parse(e.data);
397
- this.debug("we received " + JSON.stringify(msg));
433
+ this.debug('we received ' + JSON.stringify(msg));
398
434
  this.state.messageReceived();
399
435
  if (msg.requestId) {
400
436
  const request = this.runningRequests.get(msg.requestId);
@@ -38,6 +38,7 @@ function AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquityFromJSONTy
38
38
  'retainedEarnings': !(0, runtime_1.exists)(json, 'retainedEarnings') ? undefined : (json['retainedEarnings'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
39
39
  'treasuryStock': !(0, runtime_1.exists)(json, 'treasuryStock') ? undefined : (json['treasuryStock'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
40
40
  'otherCapital': !(0, runtime_1.exists)(json, 'otherCapital') ? undefined : (json['otherCapital'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
41
+ 'totalEquity': !(0, runtime_1.exists)(json, 'totalEquity') ? undefined : (json['totalEquity'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
41
42
  'preferredEquity': !(0, runtime_1.exists)(json, 'preferredEquity') ? undefined : (json['preferredEquity'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
42
43
  };
43
44
  }
@@ -55,6 +56,7 @@ function AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquityToJSON(val
55
56
  'retainedEarnings': value.retainedEarnings === undefined ? undefined : (value.retainedEarnings.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
56
57
  'treasuryStock': value.treasuryStock === undefined ? undefined : (value.treasuryStock.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
57
58
  'otherCapital': value.otherCapital === undefined ? undefined : (value.otherCapital.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
59
+ 'totalEquity': value.totalEquity === undefined ? undefined : (value.totalEquity.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
58
60
  'preferredEquity': value.preferredEquity === undefined ? undefined : (value.preferredEquity.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
59
61
  };
60
62
  }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MDS API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 0.4.34
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CorporateActionToJSON = exports.CorporateActionFromJSONTyped = exports.CorporateActionFromJSON = exports.instanceOfCorporateAction = exports.CorporateActionCorporateActionTypeEnum = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.CorporateActionCorporateActionTypeEnum = {
22
+ Dividend: 'Dividend',
23
+ SubscriptionRight: 'SubscriptionRight',
24
+ Split: 'Split',
25
+ FreeShares: 'FreeShares',
26
+ Distributions: 'Distributions',
27
+ GeneralCorrection: 'GeneralCorrection',
28
+ EuroChangeover: 'EuroChangeover'
29
+ };
30
+ /**
31
+ * Check if a given object implements the CorporateAction interface.
32
+ */
33
+ function instanceOfCorporateAction(value) {
34
+ let isInstance = true;
35
+ return isInstance;
36
+ }
37
+ exports.instanceOfCorporateAction = instanceOfCorporateAction;
38
+ function CorporateActionFromJSON(json) {
39
+ return CorporateActionFromJSONTyped(json, false);
40
+ }
41
+ exports.CorporateActionFromJSON = CorporateActionFromJSON;
42
+ function CorporateActionFromJSONTyped(json, ignoreDiscriminator) {
43
+ if ((json === undefined) || (json === null)) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
48
+ 'date': !(0, runtime_1.exists)(json, 'date') ? undefined : (new Date(json['date'])),
49
+ 'corporateActionType': !(0, runtime_1.exists)(json, 'corporateActionType') ? undefined : json['corporateActionType'],
50
+ 'payoutCurrency': !(0, runtime_1.exists)(json, 'payoutCurrency') ? undefined : json['payoutCurrency'],
51
+ 'payoutOrig': !(0, runtime_1.exists)(json, 'payoutOrig') ? undefined : json['payoutOrig'],
52
+ 'payoutEur': !(0, runtime_1.exists)(json, 'payoutEur') ? undefined : json['payoutEur'],
53
+ 'ratio1': !(0, runtime_1.exists)(json, 'ratio1') ? undefined : json['ratio1'],
54
+ 'ratio2': !(0, runtime_1.exists)(json, 'ratio2') ? undefined : json['ratio2'],
55
+ 'factor': !(0, runtime_1.exists)(json, 'factor') ? undefined : json['factor'],
56
+ 'differingDate': !(0, runtime_1.exists)(json, 'differingDate') ? undefined : json['differingDate'],
57
+ };
58
+ }
59
+ exports.CorporateActionFromJSONTyped = CorporateActionFromJSONTyped;
60
+ function CorporateActionToJSON(value) {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+ 'comment': value.comment,
69
+ 'date': value.date === undefined ? undefined : (value.date.toISOString().substr(0, 10)),
70
+ 'corporateActionType': value.corporateActionType,
71
+ 'payoutCurrency': value.payoutCurrency,
72
+ 'payoutOrig': value.payoutOrig,
73
+ 'payoutEur': value.payoutEur,
74
+ 'ratio1': value.ratio1,
75
+ 'ratio2': value.ratio2,
76
+ 'factor': value.factor,
77
+ 'differingDate': value.differingDate,
78
+ };
79
+ }
80
+ exports.CorporateActionToJSON = CorporateActionToJSON;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MDS API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 0.4.34
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CorporateActionsToJSON = exports.CorporateActionsFromJSONTyped = exports.CorporateActionsFromJSON = exports.instanceOfCorporateActions = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const CorporateAction_1 = require("./CorporateAction");
19
+ /**
20
+ * Check if a given object implements the CorporateActions interface.
21
+ */
22
+ function instanceOfCorporateActions(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfCorporateActions = instanceOfCorporateActions;
27
+ function CorporateActionsFromJSON(json) {
28
+ return CorporateActionsFromJSONTyped(json, false);
29
+ }
30
+ exports.CorporateActionsFromJSON = CorporateActionsFromJSON;
31
+ function CorporateActionsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'actions': !(0, runtime_1.exists)(json, 'actions') ? undefined : (json['actions'].map(CorporateAction_1.CorporateActionFromJSON)),
37
+ };
38
+ }
39
+ exports.CorporateActionsFromJSONTyped = CorporateActionsFromJSONTyped;
40
+ function CorporateActionsToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'actions': value.actions === undefined ? undefined : (value.actions.map(CorporateAction_1.CorporateActionToJSON)),
49
+ };
50
+ }
51
+ exports.CorporateActionsToJSON = CorporateActionsToJSON;
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MDS API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 0.4.34
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.KpiDataToJSON = exports.KpiDataFromJSONTyped = exports.KpiDataFromJSON = exports.instanceOfKpiData = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the KpiData interface.
20
+ */
21
+ function instanceOfKpiData(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfKpiData = instanceOfKpiData;
26
+ function KpiDataFromJSON(json) {
27
+ return KpiDataFromJSONTyped(json, false);
28
+ }
29
+ exports.KpiDataFromJSON = KpiDataFromJSON;
30
+ function KpiDataFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'marketstateId': !(0, runtime_1.exists)(json, 'marketstateId') ? undefined : json['marketstateId'],
36
+ 'instrumentId': !(0, runtime_1.exists)(json, 'instrumentId') ? undefined : json['instrumentId'],
37
+ 'sourceId': !(0, runtime_1.exists)(json, 'sourceId') ? undefined : json['sourceId'],
38
+ 'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
39
+ 'listingVariant': !(0, runtime_1.exists)(json, 'listingVariant') ? undefined : json['listingVariant'],
40
+ 'kpiSourceId': !(0, runtime_1.exists)(json, 'kpiSourceId') ? undefined : json['kpiSourceId'],
41
+ 'divYield': !(0, runtime_1.exists)(json, 'divYield') ? undefined : json['divYield'],
42
+ 'divYield5': !(0, runtime_1.exists)(json, 'divYield5') ? undefined : json['divYield5'],
43
+ 'divYield10': !(0, runtime_1.exists)(json, 'divYield10') ? undefined : json['divYield10'],
44
+ 'divYieldPercentage': !(0, runtime_1.exists)(json, 'divYieldPercentage') ? undefined : json['divYieldPercentage'],
45
+ 'dpsGrowthYoy': !(0, runtime_1.exists)(json, 'dpsGrowthYoy') ? undefined : json['dpsGrowthYoy'],
46
+ 'dpsGrowthYoy5': !(0, runtime_1.exists)(json, 'dpsGrowthYoy5') ? undefined : json['dpsGrowthYoy5'],
47
+ 'dpsGrowthYoy10': !(0, runtime_1.exists)(json, 'dpsGrowthYoy10') ? undefined : json['dpsGrowthYoy10'],
48
+ 'contDivPayment': !(0, runtime_1.exists)(json, 'contDivPayment') ? undefined : json['contDivPayment'],
49
+ 'contDivGrowth': !(0, runtime_1.exists)(json, 'contDivGrowth') ? undefined : json['contDivGrowth'],
50
+ 'divPayoutRatio': !(0, runtime_1.exists)(json, 'divPayoutRatio') ? undefined : json['divPayoutRatio'],
51
+ 'marketCap': !(0, runtime_1.exists)(json, 'marketCap') ? undefined : json['marketCap'],
52
+ 'volatility1': !(0, runtime_1.exists)(json, 'volatility1') ? undefined : json['volatility1'],
53
+ 'volatility3': !(0, runtime_1.exists)(json, 'volatility3') ? undefined : json['volatility3'],
54
+ 'avgTradingVolume': !(0, runtime_1.exists)(json, 'avgTradingVolume') ? undefined : json['avgTradingVolume'],
55
+ 'avgTradingVolume3m': !(0, runtime_1.exists)(json, 'avgTradingVolume3m') ? undefined : json['avgTradingVolume3m'],
56
+ 'priceToEarningsRatio': !(0, runtime_1.exists)(json, 'priceToEarningsRatio') ? undefined : json['priceToEarningsRatio'],
57
+ 'priceToEarningsGrowthRatio': !(0, runtime_1.exists)(json, 'priceToEarningsGrowthRatio') ? undefined : json['priceToEarningsGrowthRatio'],
58
+ 'priceToGrowthRatio4': !(0, runtime_1.exists)(json, 'priceToGrowthRatio4') ? undefined : json['priceToGrowthRatio4'],
59
+ 'priceToCashFlowRatio': !(0, runtime_1.exists)(json, 'priceToCashFlowRatio') ? undefined : json['priceToCashFlowRatio'],
60
+ 'cashDebtRatio': !(0, runtime_1.exists)(json, 'cashDebtRatio') ? undefined : json['cashDebtRatio'],
61
+ 'operatingMargin': !(0, runtime_1.exists)(json, 'operatingMargin') ? undefined : json['operatingMargin'],
62
+ 'ebitdaGrowth': !(0, runtime_1.exists)(json, 'ebitdaGrowth') ? undefined : json['ebitdaGrowth'],
63
+ 'epsGrowth': !(0, runtime_1.exists)(json, 'epsGrowth') ? undefined : json['epsGrowth'],
64
+ 'freeCashFlowGrowth': !(0, runtime_1.exists)(json, 'freeCashFlowGrowth') ? undefined : json['freeCashFlowGrowth'],
65
+ 'grossProfitGrowth': !(0, runtime_1.exists)(json, 'grossProfitGrowth') ? undefined : json['grossProfitGrowth'],
66
+ 'revenueGrowth': !(0, runtime_1.exists)(json, 'revenueGrowth') ? undefined : json['revenueGrowth'],
67
+ 'totalDebtGrowth': !(0, runtime_1.exists)(json, 'totalDebtGrowth') ? undefined : json['totalDebtGrowth'],
68
+ 'pretaxMargin': !(0, runtime_1.exists)(json, 'pretaxMargin') ? undefined : json['pretaxMargin'],
69
+ 'cfRatio': !(0, runtime_1.exists)(json, 'cfRatio') ? undefined : json['cfRatio'],
70
+ 'fcfMargin': !(0, runtime_1.exists)(json, 'fcfMargin') ? undefined : json['fcfMargin'],
71
+ 'roa': !(0, runtime_1.exists)(json, 'roa') ? undefined : json['roa'],
72
+ 'roe': !(0, runtime_1.exists)(json, 'roe') ? undefined : json['roe'],
73
+ 'roic': !(0, runtime_1.exists)(json, 'roic') ? undefined : json['roic'],
74
+ 'rdRatio': !(0, runtime_1.exists)(json, 'rdRatio') ? undefined : json['rdRatio'],
75
+ 'sgARatio': !(0, runtime_1.exists)(json, 'sgARatio') ? undefined : json['sgARatio'],
76
+ 'stockPricePerformance3m': !(0, runtime_1.exists)(json, 'stockPricePerformance3m') ? undefined : json['stockPricePerformance3m'],
77
+ 'stockPricePerformance6m': !(0, runtime_1.exists)(json, 'stockPricePerformance6m') ? undefined : json['stockPricePerformance6m'],
78
+ 'stockPricePerformance1y': !(0, runtime_1.exists)(json, 'stockPricePerformance1y') ? undefined : json['stockPricePerformance1y'],
79
+ 'stockPricePerformance3y': !(0, runtime_1.exists)(json, 'stockPricePerformance3y') ? undefined : json['stockPricePerformance3y'],
80
+ 'marketCapPerformance6m': !(0, runtime_1.exists)(json, 'marketCapPerformance6m') ? undefined : json['marketCapPerformance6m'],
81
+ 'marketCapPerformance1y': !(0, runtime_1.exists)(json, 'marketCapPerformance1y') ? undefined : json['marketCapPerformance1y'],
82
+ 'marketCapPerformance3y': !(0, runtime_1.exists)(json, 'marketCapPerformance3y') ? undefined : json['marketCapPerformance3y'],
83
+ 'quickRatio': !(0, runtime_1.exists)(json, 'quickRatio') ? undefined : json['quickRatio'],
84
+ 'debtToEquityRatio': !(0, runtime_1.exists)(json, 'debtToEquityRatio') ? undefined : json['debtToEquityRatio'],
85
+ 'grossProfitMargin': !(0, runtime_1.exists)(json, 'grossProfitMargin') ? undefined : json['grossProfitMargin'],
86
+ 'priceToSalesRatio': !(0, runtime_1.exists)(json, 'priceToSalesRatio') ? undefined : json['priceToSalesRatio'],
87
+ 'priceToBookRatio': !(0, runtime_1.exists)(json, 'priceToBookRatio') ? undefined : json['priceToBookRatio'],
88
+ 'priceToFreeCashFlowRatio': !(0, runtime_1.exists)(json, 'priceToFreeCashFlowRatio') ? undefined : json['priceToFreeCashFlowRatio'],
89
+ 'priceToCashRatio': !(0, runtime_1.exists)(json, 'priceToCashRatio') ? undefined : json['priceToCashRatio'],
90
+ 'rsi': !(0, runtime_1.exists)(json, 'rsi') ? undefined : json['rsi'],
91
+ 'stochastic': !(0, runtime_1.exists)(json, 'stochastic') ? undefined : json['stochastic'],
92
+ 'commodityChannelIndex': !(0, runtime_1.exists)(json, 'commodityChannelIndex') ? undefined : json['commodityChannelIndex'],
93
+ 'averageDirectionalIndex': !(0, runtime_1.exists)(json, 'averageDirectionalIndex') ? undefined : json['averageDirectionalIndex'],
94
+ 'awesomeOscillator': !(0, runtime_1.exists)(json, 'awesomeOscillator') ? undefined : json['awesomeOscillator'],
95
+ 'momentum': !(0, runtime_1.exists)(json, 'momentum') ? undefined : json['momentum'],
96
+ 'macd': !(0, runtime_1.exists)(json, 'macd') ? undefined : json['macd'],
97
+ 'stochasticRsi': !(0, runtime_1.exists)(json, 'stochasticRsi') ? undefined : json['stochasticRsi'],
98
+ 'williamsPercentRange': !(0, runtime_1.exists)(json, 'williamsPercentRange') ? undefined : json['williamsPercentRange'],
99
+ 'bullsPower': !(0, runtime_1.exists)(json, 'bullsPower') ? undefined : json['bullsPower'],
100
+ 'bearsPower': !(0, runtime_1.exists)(json, 'bearsPower') ? undefined : json['bearsPower'],
101
+ 'ultimateOscillator': !(0, runtime_1.exists)(json, 'ultimateOscillator') ? undefined : json['ultimateOscillator'],
102
+ 'oscillatorAverage': !(0, runtime_1.exists)(json, 'oscillatorAverage') ? undefined : json['oscillatorAverage'],
103
+ };
104
+ }
105
+ exports.KpiDataFromJSONTyped = KpiDataFromJSONTyped;
106
+ function KpiDataToJSON(value) {
107
+ if (value === undefined) {
108
+ return undefined;
109
+ }
110
+ if (value === null) {
111
+ return null;
112
+ }
113
+ return {
114
+ 'marketstateId': value.marketstateId,
115
+ 'instrumentId': value.instrumentId,
116
+ 'sourceId': value.sourceId,
117
+ 'currency': value.currency,
118
+ 'listingVariant': value.listingVariant,
119
+ 'kpiSourceId': value.kpiSourceId,
120
+ 'divYield': value.divYield,
121
+ 'divYield5': value.divYield5,
122
+ 'divYield10': value.divYield10,
123
+ 'divYieldPercentage': value.divYieldPercentage,
124
+ 'dpsGrowthYoy': value.dpsGrowthYoy,
125
+ 'dpsGrowthYoy5': value.dpsGrowthYoy5,
126
+ 'dpsGrowthYoy10': value.dpsGrowthYoy10,
127
+ 'contDivPayment': value.contDivPayment,
128
+ 'contDivGrowth': value.contDivGrowth,
129
+ 'divPayoutRatio': value.divPayoutRatio,
130
+ 'marketCap': value.marketCap,
131
+ 'volatility1': value.volatility1,
132
+ 'volatility3': value.volatility3,
133
+ 'avgTradingVolume': value.avgTradingVolume,
134
+ 'avgTradingVolume3m': value.avgTradingVolume3m,
135
+ 'priceToEarningsRatio': value.priceToEarningsRatio,
136
+ 'priceToEarningsGrowthRatio': value.priceToEarningsGrowthRatio,
137
+ 'priceToGrowthRatio4': value.priceToGrowthRatio4,
138
+ 'priceToCashFlowRatio': value.priceToCashFlowRatio,
139
+ 'cashDebtRatio': value.cashDebtRatio,
140
+ 'operatingMargin': value.operatingMargin,
141
+ 'ebitdaGrowth': value.ebitdaGrowth,
142
+ 'epsGrowth': value.epsGrowth,
143
+ 'freeCashFlowGrowth': value.freeCashFlowGrowth,
144
+ 'grossProfitGrowth': value.grossProfitGrowth,
145
+ 'revenueGrowth': value.revenueGrowth,
146
+ 'totalDebtGrowth': value.totalDebtGrowth,
147
+ 'pretaxMargin': value.pretaxMargin,
148
+ 'cfRatio': value.cfRatio,
149
+ 'fcfMargin': value.fcfMargin,
150
+ 'roa': value.roa,
151
+ 'roe': value.roe,
152
+ 'roic': value.roic,
153
+ 'rdRatio': value.rdRatio,
154
+ 'sgARatio': value.sgARatio,
155
+ 'stockPricePerformance3m': value.stockPricePerformance3m,
156
+ 'stockPricePerformance6m': value.stockPricePerformance6m,
157
+ 'stockPricePerformance1y': value.stockPricePerformance1y,
158
+ 'stockPricePerformance3y': value.stockPricePerformance3y,
159
+ 'marketCapPerformance6m': value.marketCapPerformance6m,
160
+ 'marketCapPerformance1y': value.marketCapPerformance1y,
161
+ 'marketCapPerformance3y': value.marketCapPerformance3y,
162
+ 'quickRatio': value.quickRatio,
163
+ 'debtToEquityRatio': value.debtToEquityRatio,
164
+ 'grossProfitMargin': value.grossProfitMargin,
165
+ 'priceToSalesRatio': value.priceToSalesRatio,
166
+ 'priceToBookRatio': value.priceToBookRatio,
167
+ 'priceToFreeCashFlowRatio': value.priceToFreeCashFlowRatio,
168
+ 'priceToCashRatio': value.priceToCashRatio,
169
+ 'rsi': value.rsi,
170
+ 'stochastic': value.stochastic,
171
+ 'commodityChannelIndex': value.commodityChannelIndex,
172
+ 'averageDirectionalIndex': value.averageDirectionalIndex,
173
+ 'awesomeOscillator': value.awesomeOscillator,
174
+ 'momentum': value.momentum,
175
+ 'macd': value.macd,
176
+ 'stochasticRsi': value.stochasticRsi,
177
+ 'williamsPercentRange': value.williamsPercentRange,
178
+ 'bullsPower': value.bullsPower,
179
+ 'bearsPower': value.bearsPower,
180
+ 'ultimateOscillator': value.ultimateOscillator,
181
+ 'oscillatorAverage': value.oscillatorAverage,
182
+ };
183
+ }
184
+ exports.KpiDataToJSON = KpiDataToJSON;