@ariva-mds/mds 2.42.0 → 2.46.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 (193) hide show
  1. package/lib/cjs/api/MdsConnection.js +125 -51
  2. package/lib/cjs/models/AfuCompanyProfile.js +144 -0
  3. package/lib/cjs/models/AfuCompanyProfileAppointmentsInner.js +52 -0
  4. package/lib/cjs/models/AfuCompanyProfileCalendar.js +51 -0
  5. package/lib/cjs/models/AfuCompanyProfileCalendarEndFiscalYear.js +52 -0
  6. package/lib/cjs/models/AfuCompanyProfileCashflow.js +59 -0
  7. package/lib/cjs/models/AfuCompanyProfileContact.js +58 -0
  8. package/lib/cjs/models/AfuCompanyProfileEmployeeInformations.js +53 -0
  9. package/lib/cjs/models/AfuCompanyProfileFinancialStatement.js +59 -0
  10. package/lib/cjs/models/AfuCompanyProfileFinancialStatementAssets.js +89 -0
  11. package/lib/cjs/models/AfuCompanyProfileFinancialStatementAssetsBank.js +93 -0
  12. package/lib/cjs/models/AfuCompanyProfileFinancialStatementAssetsCapitalAssets.js +65 -0
  13. package/lib/cjs/models/AfuCompanyProfileFinancialStatementAssetsCurrentAssets.js +61 -0
  14. package/lib/cjs/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquity.js +59 -0
  15. package/lib/cjs/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.js +61 -0
  16. package/lib/cjs/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilities.js +89 -0
  17. package/lib/cjs/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesCurrentLiabilities.js +59 -0
  18. package/lib/cjs/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesLongtermLiabilities.js +59 -0
  19. package/lib/cjs/models/AfuCompanyProfileIncomeStatement.js +102 -0
  20. package/lib/cjs/models/AfuCompanyProfileIncomeStatementIncome.js +63 -0
  21. package/lib/cjs/models/AfuCompanyProfileIncomeStatementOtherOperatingResults.js +75 -0
  22. package/lib/cjs/models/AfuCompanyProfileIncomeStatementRevenue.js +57 -0
  23. package/lib/cjs/models/AfuCompanyProfileKeyData.js +90 -0
  24. package/lib/cjs/models/AfuCompanyProfileKeyFigures.js +66 -0
  25. package/lib/cjs/models/AfuCompanyProfileLastupdate.js +54 -0
  26. package/lib/cjs/models/AfuCompanyProfileLinkedSharesInner.js +56 -0
  27. package/lib/cjs/models/AfuCompanyProfileManagementInner.js +56 -0
  28. package/lib/cjs/models/AfuCompanyProfilePerShare.js +58 -0
  29. package/lib/cjs/models/AfuCompanyProfilePerShareEarningsPerShare.js +55 -0
  30. package/lib/cjs/models/AfuCompanyProfileShareholdersInner.js +52 -0
  31. package/lib/cjs/models/AfuCompanyProfileStockInformations.js +55 -0
  32. package/lib/cjs/models/AfuCompanyProfileSupervisoryBoardInner.js +54 -0
  33. package/lib/cjs/models/AfuCompanyYearlyAmount.js +52 -0
  34. package/lib/cjs/models/AfuCompanyYearlyPercent.js +52 -0
  35. package/lib/cjs/models/FeedsAfuCompanyInitialLoadGet200Response.js +147 -0
  36. package/lib/cjs/models/InstrumentsInstrumentIdAfuCompanyGet200Response.js +51 -0
  37. package/lib/cjs/models/List.js +51 -0
  38. package/lib/cjs/models/ListEntry.js +50 -0
  39. package/lib/cjs/models/TickHistoryData.js +0 -2
  40. package/lib/cjs/models/WebSocketCommandGetAfuCompanyProfile.js +50 -0
  41. package/lib/cjs/models/WebSocketCommandListBidAskHistory.js +57 -0
  42. package/lib/cjs/models/WebSocketCommandListPerformance.js +56 -0
  43. package/lib/cjs/models/WebSocketCommandListTickHistory.js +59 -0
  44. package/lib/cjs/models/WebSocketCommandSubscribeMarketdepth.js +53 -0
  45. package/lib/cjs/models/WebSocketCommandSubscribeSourceTradeticker.js +0 -2
  46. package/lib/cjs/models/WebSocketMessage.js +18 -0
  47. package/lib/cjs/models/WebSocketRequest.js +15 -0
  48. package/lib/cjs/models/index.js +42 -0
  49. package/lib/esm/api/MdsConnection.js +126 -52
  50. package/lib/esm/models/AfuCompanyProfile.js +137 -0
  51. package/lib/esm/models/AfuCompanyProfileAppointmentsInner.js +45 -0
  52. package/lib/esm/models/AfuCompanyProfileCalendar.js +44 -0
  53. package/lib/esm/models/AfuCompanyProfileCalendarEndFiscalYear.js +45 -0
  54. package/lib/esm/models/AfuCompanyProfileCashflow.js +52 -0
  55. package/lib/esm/models/AfuCompanyProfileContact.js +51 -0
  56. package/lib/esm/models/AfuCompanyProfileEmployeeInformations.js +46 -0
  57. package/lib/esm/models/AfuCompanyProfileFinancialStatement.js +52 -0
  58. package/lib/esm/models/AfuCompanyProfileFinancialStatementAssets.js +82 -0
  59. package/lib/esm/models/AfuCompanyProfileFinancialStatementAssetsBank.js +86 -0
  60. package/lib/esm/models/AfuCompanyProfileFinancialStatementAssetsCapitalAssets.js +58 -0
  61. package/lib/esm/models/AfuCompanyProfileFinancialStatementAssetsCurrentAssets.js +54 -0
  62. package/lib/esm/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquity.js +52 -0
  63. package/lib/esm/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.js +54 -0
  64. package/lib/esm/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilities.js +82 -0
  65. package/lib/esm/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesCurrentLiabilities.js +52 -0
  66. package/lib/esm/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesLongtermLiabilities.js +52 -0
  67. package/lib/esm/models/AfuCompanyProfileIncomeStatement.js +95 -0
  68. package/lib/esm/models/AfuCompanyProfileIncomeStatementIncome.js +56 -0
  69. package/lib/esm/models/AfuCompanyProfileIncomeStatementOtherOperatingResults.js +68 -0
  70. package/lib/esm/models/AfuCompanyProfileIncomeStatementRevenue.js +50 -0
  71. package/lib/esm/models/AfuCompanyProfileKeyData.js +83 -0
  72. package/lib/esm/models/AfuCompanyProfileKeyFigures.js +59 -0
  73. package/lib/esm/models/AfuCompanyProfileLastupdate.js +47 -0
  74. package/lib/esm/models/AfuCompanyProfileLinkedSharesInner.js +49 -0
  75. package/lib/esm/models/AfuCompanyProfileManagementInner.js +49 -0
  76. package/lib/esm/models/AfuCompanyProfilePerShare.js +51 -0
  77. package/lib/esm/models/AfuCompanyProfilePerShareEarningsPerShare.js +48 -0
  78. package/lib/esm/models/AfuCompanyProfileShareholdersInner.js +45 -0
  79. package/lib/esm/models/AfuCompanyProfileStockInformations.js +48 -0
  80. package/lib/esm/models/AfuCompanyProfileSupervisoryBoardInner.js +47 -0
  81. package/lib/esm/models/AfuCompanyYearlyAmount.js +45 -0
  82. package/lib/esm/models/AfuCompanyYearlyPercent.js +45 -0
  83. package/lib/esm/models/FeedsAfuCompanyInitialLoadGet200Response.js +140 -0
  84. package/lib/esm/models/InstrumentsInstrumentIdAfuCompanyGet200Response.js +44 -0
  85. package/lib/esm/models/List.js +44 -0
  86. package/lib/esm/models/ListEntry.js +43 -0
  87. package/lib/esm/models/TickHistoryData.js +0 -2
  88. package/lib/esm/models/WebSocketCommandGetAfuCompanyProfile.js +43 -0
  89. package/lib/esm/models/WebSocketCommandListBidAskHistory.js +50 -0
  90. package/lib/esm/models/WebSocketCommandListPerformance.js +49 -0
  91. package/lib/esm/models/WebSocketCommandListTickHistory.js +52 -0
  92. package/lib/esm/models/WebSocketCommandSubscribeMarketdepth.js +46 -0
  93. package/lib/esm/models/WebSocketCommandSubscribeSourceTradeticker.js +0 -2
  94. package/lib/esm/models/WebSocketMessage.js +18 -0
  95. package/lib/esm/models/WebSocketRequest.js +15 -0
  96. package/lib/esm/models/index.js +42 -0
  97. package/lib/types/api/MdsConnection.d.ts +56 -20
  98. package/lib/types/api/MdsConnection.d.ts.map +1 -1
  99. package/lib/types/models/AfuCompanyProfile.d.ts +296 -0
  100. package/lib/types/models/AfuCompanyProfile.d.ts.map +1 -0
  101. package/lib/types/models/AfuCompanyProfileAppointmentsInner.d.ts +38 -0
  102. package/lib/types/models/AfuCompanyProfileAppointmentsInner.d.ts.map +1 -0
  103. package/lib/types/models/AfuCompanyProfileCalendar.d.ts +33 -0
  104. package/lib/types/models/AfuCompanyProfileCalendar.d.ts.map +1 -0
  105. package/lib/types/models/AfuCompanyProfileCalendarEndFiscalYear.d.ts +38 -0
  106. package/lib/types/models/AfuCompanyProfileCalendarEndFiscalYear.d.ts.map +1 -0
  107. package/lib/types/models/AfuCompanyProfileCashflow.d.ts +57 -0
  108. package/lib/types/models/AfuCompanyProfileCashflow.d.ts.map +1 -0
  109. package/lib/types/models/AfuCompanyProfileContact.d.ts +56 -0
  110. package/lib/types/models/AfuCompanyProfileContact.d.ts.map +1 -0
  111. package/lib/types/models/AfuCompanyProfileEmployeeInformations.d.ts +39 -0
  112. package/lib/types/models/AfuCompanyProfileEmployeeInformations.d.ts.map +1 -0
  113. package/lib/types/models/AfuCompanyProfileFinancialStatement.d.ts +53 -0
  114. package/lib/types/models/AfuCompanyProfileFinancialStatement.d.ts.map +1 -0
  115. package/lib/types/models/AfuCompanyProfileFinancialStatementAssets.d.ts +143 -0
  116. package/lib/types/models/AfuCompanyProfileFinancialStatementAssets.d.ts.map +1 -0
  117. package/lib/types/models/AfuCompanyProfileFinancialStatementAssetsBank.d.ts +155 -0
  118. package/lib/types/models/AfuCompanyProfileFinancialStatementAssetsBank.d.ts.map +1 -0
  119. package/lib/types/models/AfuCompanyProfileFinancialStatementAssetsCapitalAssets.d.ts +75 -0
  120. package/lib/types/models/AfuCompanyProfileFinancialStatementAssetsCapitalAssets.d.ts.map +1 -0
  121. package/lib/types/models/AfuCompanyProfileFinancialStatementAssetsCurrentAssets.d.ts +63 -0
  122. package/lib/types/models/AfuCompanyProfileFinancialStatementAssetsCurrentAssets.d.ts.map +1 -0
  123. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquity.d.ts +53 -0
  124. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquity.d.ts.map +1 -0
  125. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.d.ts +63 -0
  126. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityEquity.d.ts.map +1 -0
  127. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilities.d.ts +143 -0
  128. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilities.d.ts.map +1 -0
  129. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesCurrentLiabilities.d.ts +57 -0
  130. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesCurrentLiabilities.d.ts.map +1 -0
  131. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesLongtermLiabilities.d.ts +57 -0
  132. package/lib/types/models/AfuCompanyProfileFinancialStatementLiabilitiesAndEquityLiabilitiesLongtermLiabilities.d.ts.map +1 -0
  133. package/lib/types/models/AfuCompanyProfileIncomeStatement.d.ts +180 -0
  134. package/lib/types/models/AfuCompanyProfileIncomeStatement.d.ts.map +1 -0
  135. package/lib/types/models/AfuCompanyProfileIncomeStatementIncome.d.ts +69 -0
  136. package/lib/types/models/AfuCompanyProfileIncomeStatementIncome.d.ts.map +1 -0
  137. package/lib/types/models/AfuCompanyProfileIncomeStatementOtherOperatingResults.d.ts +105 -0
  138. package/lib/types/models/AfuCompanyProfileIncomeStatementOtherOperatingResults.d.ts.map +1 -0
  139. package/lib/types/models/AfuCompanyProfileIncomeStatementRevenue.d.ts +51 -0
  140. package/lib/types/models/AfuCompanyProfileIncomeStatementRevenue.d.ts.map +1 -0
  141. package/lib/types/models/AfuCompanyProfileKeyData.d.ts +148 -0
  142. package/lib/types/models/AfuCompanyProfileKeyData.d.ts.map +1 -0
  143. package/lib/types/models/AfuCompanyProfileKeyFigures.d.ts +76 -0
  144. package/lib/types/models/AfuCompanyProfileKeyFigures.d.ts.map +1 -0
  145. package/lib/types/models/AfuCompanyProfileLastupdate.d.ts +44 -0
  146. package/lib/types/models/AfuCompanyProfileLastupdate.d.ts.map +1 -0
  147. package/lib/types/models/AfuCompanyProfileLinkedSharesInner.d.ts +50 -0
  148. package/lib/types/models/AfuCompanyProfileLinkedSharesInner.d.ts.map +1 -0
  149. package/lib/types/models/AfuCompanyProfileManagementInner.d.ts +52 -0
  150. package/lib/types/models/AfuCompanyProfileManagementInner.d.ts.map +1 -0
  151. package/lib/types/models/AfuCompanyProfilePerShare.d.ts +52 -0
  152. package/lib/types/models/AfuCompanyProfilePerShare.d.ts.map +1 -0
  153. package/lib/types/models/AfuCompanyProfilePerShareEarningsPerShare.d.ts +45 -0
  154. package/lib/types/models/AfuCompanyProfilePerShareEarningsPerShare.d.ts.map +1 -0
  155. package/lib/types/models/AfuCompanyProfileShareholdersInner.d.ts +38 -0
  156. package/lib/types/models/AfuCompanyProfileShareholdersInner.d.ts.map +1 -0
  157. package/lib/types/models/AfuCompanyProfileStockInformations.d.ts +45 -0
  158. package/lib/types/models/AfuCompanyProfileStockInformations.d.ts.map +1 -0
  159. package/lib/types/models/AfuCompanyProfileSupervisoryBoardInner.d.ts +46 -0
  160. package/lib/types/models/AfuCompanyProfileSupervisoryBoardInner.d.ts.map +1 -0
  161. package/lib/types/models/AfuCompanyYearlyAmount.d.ts +38 -0
  162. package/lib/types/models/AfuCompanyYearlyAmount.d.ts.map +1 -0
  163. package/lib/types/models/AfuCompanyYearlyPercent.d.ts +38 -0
  164. package/lib/types/models/AfuCompanyYearlyPercent.d.ts.map +1 -0
  165. package/lib/types/models/FeedsAfuCompanyInitialLoadGet200Response.d.ts +302 -0
  166. package/lib/types/models/FeedsAfuCompanyInitialLoadGet200Response.d.ts.map +1 -0
  167. package/lib/types/models/InstrumentsInstrumentIdAfuCompanyGet200Response.d.ts +33 -0
  168. package/lib/types/models/InstrumentsInstrumentIdAfuCompanyGet200Response.d.ts.map +1 -0
  169. package/lib/types/models/List.d.ts +33 -0
  170. package/lib/types/models/List.d.ts.map +1 -0
  171. package/lib/types/models/ListEntry.d.ts +32 -0
  172. package/lib/types/models/ListEntry.d.ts.map +1 -0
  173. package/lib/types/models/TickHistoryData.d.ts +0 -6
  174. package/lib/types/models/TickHistoryData.d.ts.map +1 -1
  175. package/lib/types/models/WebSocketCommandGetAfuCompanyProfile.d.ts +32 -0
  176. package/lib/types/models/WebSocketCommandGetAfuCompanyProfile.d.ts.map +1 -0
  177. package/lib/types/models/WebSocketCommandListBidAskHistory.d.ts +52 -0
  178. package/lib/types/models/WebSocketCommandListBidAskHistory.d.ts.map +1 -0
  179. package/lib/types/models/WebSocketCommandListPerformance.d.ts +47 -0
  180. package/lib/types/models/WebSocketCommandListPerformance.d.ts.map +1 -0
  181. package/lib/types/models/WebSocketCommandListTickHistory.d.ts +58 -0
  182. package/lib/types/models/WebSocketCommandListTickHistory.d.ts.map +1 -0
  183. package/lib/types/models/WebSocketCommandSubscribeMarketdepth.d.ts +40 -0
  184. package/lib/types/models/WebSocketCommandSubscribeMarketdepth.d.ts.map +1 -0
  185. package/lib/types/models/WebSocketCommandSubscribeSourceTradeticker.d.ts +0 -6
  186. package/lib/types/models/WebSocketCommandSubscribeSourceTradeticker.d.ts.map +1 -1
  187. package/lib/types/models/WebSocketMessage.d.ts +37 -2
  188. package/lib/types/models/WebSocketMessage.d.ts.map +1 -1
  189. package/lib/types/models/WebSocketRequest.d.ts +35 -0
  190. package/lib/types/models/WebSocketRequest.d.ts.map +1 -1
  191. package/lib/types/models/index.d.ts +42 -0
  192. package/lib/types/models/index.d.ts.map +1 -1
  193. package/package.json +1 -1
@@ -23,14 +23,15 @@ class MdsConnection {
23
23
  this.runningRequests = new Map();
24
24
  this.isDebug = false;
25
25
  this.reconnectTimer = undefined;
26
+ // #############################################################################################
26
27
  /**
27
- * gets the basic information about a source
28
+ * Sources
29
+ * information about sources, access to other data that is linked to a source
28
30
  */
29
- this.sourceCache = undefined;
30
31
  /**
31
32
  * gets the basic information about a source
32
33
  */
33
- this.masterdataCache = undefined;
34
+ this.sourceCache = undefined;
34
35
  /**
35
36
  * gets the tradingtime for a source
36
37
  * */
@@ -39,6 +40,15 @@ class MdsConnection {
39
40
  * gets the tradingtime for a source
40
41
  * */
41
42
  this.tradingtimeAnalysisCache = undefined;
43
+ // #############################################################################################
44
+ /**
45
+ * Instruments
46
+ * information about instruments, access to other data that is linked to an instrument
47
+ */
48
+ /**
49
+ * Returns one Instrument
50
+ */
51
+ this.masterdataCache = undefined;
42
52
  this.authdataCallback = authdataCallback;
43
53
  this.isDebug = options.debug ? true : false;
44
54
  this.websocket = new reconnecting_websocket_1.default(websocketUrl, [], options.wsOptions);
@@ -82,6 +92,68 @@ class MdsConnection {
82
92
  return this.observable({ 'heartbeat': {} })
83
93
  .pipe((0, rxjs_1.map)((x) => x.dataHeartbeat));
84
94
  }
95
+ /**
96
+ * sets the priority for sources
97
+ */
98
+ priority(sources) {
99
+ return this.promise({ 'priority': { 'sources': sources } });
100
+ }
101
+ source(sourceId) {
102
+ if (this.sourceCache == undefined) {
103
+ const outer = this;
104
+ this.sourceCache = new lrucache_1.LruCache(sourceId => outer.promise({ 'getSource': { 'sourceId': sourceId } }).then(state => (0, models_1.SourcedataFromJSON)(state.dataSource)), 3000);
105
+ }
106
+ return this.sourceCache.get(sourceId);
107
+ }
108
+ tradingtime(sourceId) {
109
+ if (this.tradingtimeCache == undefined) {
110
+ const outer = this;
111
+ this.tradingtimeCache = new lrucache_1.LruCache(sourceId => outer.promise({ 'getTradingtime': { 'sourceId': sourceId } }).then(state => (0, models_1.TradingtimeFromJSON)(state.dataTradingtime)), 3000);
112
+ }
113
+ return this.tradingtimeCache.get(sourceId);
114
+ }
115
+ tradingtimeAnalysis(sourceId, date) {
116
+ if (this.tradingtimeAnalysisCache == undefined) {
117
+ const outer = this;
118
+ this.tradingtimeAnalysisCache = new lrucache_1.LruCache(parameter => outer.promise({ 'getTradingtimeAnalysis': { 'sourceId': parameter.sourceId, 'date': parameter.date } }).then(state => (0, models_1.TradingtimeInfoReplyFromJSON)(state.dataTradingtimeAnalysis)), 3000);
119
+ }
120
+ return this.tradingtimeAnalysisCache.get({ sourceId: sourceId, date: date });
121
+ }
122
+ /**
123
+ * Returns a list or stream of the current trades from this source.
124
+ * */
125
+ tradeticker(sourceId, preloadSize = undefined, onlyWithTurnover = undefined) {
126
+ const args = {
127
+ sourceId: sourceId,
128
+ preloadSize: preloadSize,
129
+ onlyWithTurnover: onlyWithTurnover
130
+ };
131
+ return this.observable({ 'subscribeSourceTradeticker': args }).pipe((0, rxjs_1.map)(state => (0, models_1.TradetickerEventFromJSON)(state.dataTradeticker)));
132
+ }
133
+ masterdata(instrumentId) {
134
+ if (this.masterdataCache == undefined) {
135
+ const outer = this;
136
+ this.masterdataCache = new lrucache_1.LruCache(instrumentId => outer.promise({ 'getInstrumentMasterdata': { 'instrumentId': instrumentId } }).then(state => (0, models_1.MasterdataMergedSummaryWithIdFromJSON)(state.dataMasterdata)), 3000);
137
+ }
138
+ return this.masterdataCache.get(instrumentId);
139
+ }
140
+ /**
141
+ * Returns a list of all Listings for the Instrument
142
+ * */
143
+ instrumentsListings(instrumentId, sourceId) {
144
+ return this.observable({ 'listInstrumentListings': { 'instrumentId': instrumentId, 'sourceId': sourceId } }).pipe((0, rxjs_1.map)(state => (0, models_1.ListingdataWithIdAndQualityFromJSON)(state.dataListing)));
145
+ }
146
+ /**
147
+ * Returns the AFU company profile
148
+ */
149
+ afuCompanyProfile(instrumentId) {
150
+ return this.promise({ 'getAfuCompanyProfile': { 'instrumentId': instrumentId } }).then(state => (0, models_1.AfuCompanyProfileFromJSON)(state.dataAfuCompanyProfile));
151
+ }
152
+ // #############################################################################################
153
+ /**
154
+ * Marketstates
155
+ * information about listings, access to other data that is linked to a listing
156
+ */
85
157
  /**
86
158
  * create a MarketstateUpdate observable that can be subscribed to, contains both full state and delta for every marketstate
87
159
  */
@@ -116,63 +188,65 @@ class MdsConnection {
116
188
  return this.marketstates(marketstateQueries).pipe((0, rxjs_1.map)((x) => x.state));
117
189
  }
118
190
  /**
119
- * sets the priority for sources
120
- */
121
- priority(sources) {
122
- return this.promise({ 'priority': { 'sources': sources } });
123
- }
124
- source(source) {
125
- if (this.sourceCache == undefined) {
126
- const outer = this;
127
- this.sourceCache = new lrucache_1.LruCache(source => outer.promise({ 'getSource': { 'sourceId': source } }).then(state => (0, models_1.SourcedataFromJSON)(state.dataSource)), 3000);
128
- }
129
- return this.sourceCache.get(source);
130
- }
131
- masterdata(instrumentId) {
132
- if (this.masterdataCache == undefined) {
133
- const outer = this;
134
- this.masterdataCache = new lrucache_1.LruCache(instrumentId => outer.promise({ 'getInstrumentMasterdata': { 'instrumentId': instrumentId } }).then(state => (0, models_1.MasterdataMergedSummaryWithIdFromJSON)(state.dataMasterdata)), 3000);
135
- }
136
- return this.masterdataCache.get(instrumentId);
191
+ * Returns the Open-High-Low-Close Timeseries for the specified Instrument on the Source.
192
+ * */
193
+ timeseries(marketstateId, resolution, start = undefined, end = undefined) {
194
+ const args = {
195
+ resolution: resolution,
196
+ marketstateId: marketstateId,
197
+ start: start instanceof Date ? start?.toISOString() : start,
198
+ end: end instanceof Date ? end?.toISOString() : end
199
+ };
200
+ return this.observable({ 'subscribeTimeseries': args }).pipe((0, rxjs_1.map)(state => (0, models_1.TimeseriesDataFromJSON)(state.dataTimeseries)));
137
201
  }
138
- tradingtime(sourceId) {
139
- if (this.tradingtimeCache == undefined) {
140
- const outer = this;
141
- this.tradingtimeCache = new lrucache_1.LruCache(sourceId => outer.promise({ 'getTradingtime': { 'sourceId': sourceId } }).then(state => (0, models_1.TradingtimeFromJSON)(state.dataTradingtime)), 3000);
142
- }
143
- return this.tradingtimeCache.get(sourceId);
202
+ /**
203
+ * Returns the Open-High-Low-Close Timeseries for the specified Instrument on the Source.
204
+ * */
205
+ timeseriesSnapshot(marketstateId, resolution, start = undefined, end = undefined) {
206
+ const args = {
207
+ resolution: resolution,
208
+ marketstateId: marketstateId,
209
+ start: start instanceof Date ? start?.toISOString() : start,
210
+ end: end instanceof Date ? end?.toISOString() : end
211
+ };
212
+ return this.observable({ 'listTimeseries': args }).pipe((0, rxjs_1.map)(state => (0, models_1.TimeseriesDataFromJSON)(state.dataTimeseries)));
144
213
  }
145
- tradingtimeAnalysis(sourceId, date) {
146
- if (this.tradingtimeAnalysisCache == undefined) {
147
- const outer = this;
148
- this.tradingtimeAnalysisCache = new lrucache_1.LruCache(parameter => outer.promise({ 'getTradingtimeAnalysis': { 'sourceId': parameter.sourceId, 'date': parameter.date } }).then(state => (0, models_1.TradingtimeInfoReplyFromJSON)(state.dataTradingtimeAnalysis)), 3000);
149
- }
150
- return this.tradingtimeAnalysisCache.get({ sourceId: sourceId, date: date });
214
+ /**
215
+ * Returns the Orderbook for the specified Marketstate.
216
+ * */
217
+ marketdepth(marketstateId) {
218
+ return this.observable({ 'subscribeMarketdepth': { marketstateId: marketstateId } }).pipe((0, rxjs_1.map)(state => (0, models_1.MarketdepthWithIdFromJSON)(state.dataMarketdepth)));
151
219
  }
152
220
  /**
153
- * Returns a list of all Listings for the Instrument
154
- * */
155
- instrumentsListings(instrumentId, sourceId) {
156
- return this.observable({ 'listInstrumentListings': { 'instrumentId': instrumentId, 'sourceId': sourceId } }).pipe((0, rxjs_1.map)(state => (0, models_1.ListingdataWithIdAndQualityFromJSON)(state.dataListing)));
221
+ * Returns the performance for a specified listing of an instrument.
222
+ */
223
+ performance(marketstateId, ...timeRanges) {
224
+ return this.observable({ 'listPerformance': { 'marketstateId': marketstateId, 'timeRange': timeRanges } }).pipe((0, rxjs_1.map)(state => (0, models_1.PerformanceDataForTimeRangeFromJSON)(state.dataPerformance)));
157
225
  }
158
226
  /**
159
- * Returns a list of all Trades for the Instrument
160
- * */
161
- timeseries(marketstateId, resolution, start = undefined, end = undefined) {
162
- const args = { resolution: resolution, marketstateId: marketstateId };
163
- args.start = start instanceof Date ? start?.toISOString() : start;
164
- args.end = end instanceof Date ? end?.toISOString() : end;
165
- return this.observable({ 'subscribeTimeseries': args }).pipe((0, rxjs_1.map)(state => (0, models_1.TimeseriesDataFromJSON)(state.timeseries)));
227
+ * Returns the bid/ask history for the specified Instrument on the Source.
228
+ */
229
+ bidAskHistory(marketstateId, start = undefined, end = undefined) {
230
+ const args = {
231
+ marketstateId: marketstateId,
232
+ start: start instanceof Date ? start?.toISOString() : start,
233
+ end: end instanceof Date ? end?.toISOString() : end
234
+ };
235
+ return this.observable({ 'listBidAskHistory': args }).pipe((0, rxjs_1.map)(state => (0, models_1.BidAskHistoryDataFromJSON)(state.dataBidAskHistory)));
166
236
  }
167
237
  /**
168
- * Returns a list of all Trades for the Instrument
169
- * */
170
- timeseriesSnapshot(marketstateId, resolution, start = undefined, end = undefined) {
171
- const args = { resolution: resolution, marketstateId: marketstateId };
172
- args.start = start instanceof Date ? start?.toISOString() : start;
173
- args.end = end instanceof Date ? end?.toISOString() : end;
174
- return this.observable({ 'listTimeseries': args }).pipe((0, rxjs_1.map)(state => (0, models_1.TimeseriesDataFromJSON)(state.timeseries)));
238
+ * Returns the tick history for the specified Instrument on the Source.
239
+ */
240
+ tickHistory(marketstateId, start = undefined, end = undefined, hasVolume = undefined) {
241
+ const args = {
242
+ marketstateId: marketstateId,
243
+ start: start instanceof Date ? start?.toISOString() : start,
244
+ end: end instanceof Date ? end?.toISOString() : end,
245
+ hasVolume: hasVolume
246
+ };
247
+ return this.observable({ 'listTickHistory': args }).pipe((0, rxjs_1.map)(state => (0, models_1.TickHistoryDataFromJSON)(state.dataTickHistory)));
175
248
  }
249
+ // #############################################################################################
176
250
  updateExistingMarketstateWithDeltaUpdate(existingEntry, update) {
177
251
  const existingJson = (0, models_1.MarketstateResponseSearchToJSON)(existingEntry);
178
252
  const updateJson = (0, models_1.MarketstateResponseSearchToJSON)(update);
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MDS API
6
+ * Please note the following definitions used throughout this API.<p> **Source**: A source can be any kind of marketplace (exchange) or an entity that calculates prices/values for instruments. <p> **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, ... <p> **Listing**: An instrument can be traded/calculated on multiple Sources. Some sources even support multiple listings of the same instrument (for example 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, ... <p> **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 und quote informations ... **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 \"?\". 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. E.g. ECB currency rates 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. I you see \"00:00:00.000\" in a datetime field, this actually means something happened exactly at midnight, it is not a 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 the 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.<p> **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.9
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.AfuCompanyProfileToJSON = exports.AfuCompanyProfileFromJSONTyped = exports.AfuCompanyProfileFromJSON = exports.instanceOfAfuCompanyProfile = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const AfuCompanyProfileAppointmentsInner_1 = require("./AfuCompanyProfileAppointmentsInner");
19
+ const AfuCompanyProfileCalendar_1 = require("./AfuCompanyProfileCalendar");
20
+ const AfuCompanyProfileCashflow_1 = require("./AfuCompanyProfileCashflow");
21
+ const AfuCompanyProfileContact_1 = require("./AfuCompanyProfileContact");
22
+ const AfuCompanyProfileEmployeeInformations_1 = require("./AfuCompanyProfileEmployeeInformations");
23
+ const AfuCompanyProfileFinancialStatement_1 = require("./AfuCompanyProfileFinancialStatement");
24
+ const AfuCompanyProfileIncomeStatement_1 = require("./AfuCompanyProfileIncomeStatement");
25
+ const AfuCompanyProfileKeyData_1 = require("./AfuCompanyProfileKeyData");
26
+ const AfuCompanyProfileKeyFigures_1 = require("./AfuCompanyProfileKeyFigures");
27
+ const AfuCompanyProfileLastupdate_1 = require("./AfuCompanyProfileLastupdate");
28
+ const AfuCompanyProfileLinkedSharesInner_1 = require("./AfuCompanyProfileLinkedSharesInner");
29
+ const AfuCompanyProfileManagementInner_1 = require("./AfuCompanyProfileManagementInner");
30
+ const AfuCompanyProfilePerShare_1 = require("./AfuCompanyProfilePerShare");
31
+ const AfuCompanyProfileShareholdersInner_1 = require("./AfuCompanyProfileShareholdersInner");
32
+ const AfuCompanyProfileStockInformations_1 = require("./AfuCompanyProfileStockInformations");
33
+ const AfuCompanyProfileSupervisoryBoardInner_1 = require("./AfuCompanyProfileSupervisoryBoardInner");
34
+ /**
35
+ * Check if a given object implements the AfuCompanyProfile interface.
36
+ */
37
+ function instanceOfAfuCompanyProfile(value) {
38
+ let isInstance = true;
39
+ return isInstance;
40
+ }
41
+ exports.instanceOfAfuCompanyProfile = instanceOfAfuCompanyProfile;
42
+ function AfuCompanyProfileFromJSON(json) {
43
+ return AfuCompanyProfileFromJSONTyped(json, false);
44
+ }
45
+ exports.AfuCompanyProfileFromJSON = AfuCompanyProfileFromJSON;
46
+ function AfuCompanyProfileFromJSONTyped(json, ignoreDiscriminator) {
47
+ if ((json === undefined) || (json === null)) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
52
+ 'stocktype': !(0, runtime_1.exists)(json, 'stocktype') ? undefined : json['stocktype'],
53
+ 'stocktypeTranslated': !(0, runtime_1.exists)(json, 'stocktypeTranslated') ? undefined : json['stocktypeTranslated'],
54
+ 'stockclass': !(0, runtime_1.exists)(json, 'stockclass') ? undefined : json['stockclass'],
55
+ 'stockclassTranslated': !(0, runtime_1.exists)(json, 'stockclassTranslated') ? undefined : json['stockclassTranslated'],
56
+ 'parvalue': !(0, runtime_1.exists)(json, 'parvalue') ? undefined : json['parvalue'],
57
+ 'ticker': !(0, runtime_1.exists)(json, 'ticker') ? undefined : json['ticker'],
58
+ 'sector': !(0, runtime_1.exists)(json, 'sector') ? undefined : json['sector'],
59
+ 'sectorTranslated': !(0, runtime_1.exists)(json, 'sectorTranslated') ? undefined : json['sectorTranslated'],
60
+ 'industrialsector': !(0, runtime_1.exists)(json, 'industrialsector') ? undefined : json['industrialsector'],
61
+ 'industrialSectorTranslated': !(0, runtime_1.exists)(json, 'industrialSectorTranslated') ? undefined : json['industrialSectorTranslated'],
62
+ 'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
63
+ 'countryTranslated': !(0, runtime_1.exists)(json, 'countryTranslated') ? undefined : json['countryTranslated'],
64
+ 'tradePlaces': !(0, runtime_1.exists)(json, 'tradePlaces') ? undefined : json['tradePlaces'],
65
+ 'founded': !(0, runtime_1.exists)(json, 'founded') ? undefined : json['founded'],
66
+ 'contact': !(0, runtime_1.exists)(json, 'contact') ? undefined : (0, AfuCompanyProfileContact_1.AfuCompanyProfileContactFromJSON)(json['contact']),
67
+ 'auditingCompany': !(0, runtime_1.exists)(json, 'auditingCompany') ? undefined : json['auditingCompany'],
68
+ 'profileTranslated': !(0, runtime_1.exists)(json, 'profileTranslated') ? undefined : json['profileTranslated'],
69
+ 'profile': !(0, runtime_1.exists)(json, 'profile') ? undefined : json['profile'],
70
+ 'profileLong': !(0, runtime_1.exists)(json, 'profileLong') ? undefined : json['profileLong'],
71
+ 'management': !(0, runtime_1.exists)(json, 'management') ? undefined : (json['management'].map(AfuCompanyProfileManagementInner_1.AfuCompanyProfileManagementInnerFromJSON)),
72
+ 'supervisoryBoard': !(0, runtime_1.exists)(json, 'supervisoryBoard') ? undefined : (json['supervisoryBoard'].map(AfuCompanyProfileSupervisoryBoardInner_1.AfuCompanyProfileSupervisoryBoardInnerFromJSON)),
73
+ 'calendar': !(0, runtime_1.exists)(json, 'calendar') ? undefined : (0, AfuCompanyProfileCalendar_1.AfuCompanyProfileCalendarFromJSON)(json['calendar']),
74
+ 'shareholders': !(0, runtime_1.exists)(json, 'shareholders') ? undefined : (json['shareholders'].map(AfuCompanyProfileShareholdersInner_1.AfuCompanyProfileShareholdersInnerFromJSON)),
75
+ 'stockInformations': !(0, runtime_1.exists)(json, 'stockInformations') ? undefined : (0, AfuCompanyProfileStockInformations_1.AfuCompanyProfileStockInformationsFromJSON)(json['stockInformations']),
76
+ 'perShare': !(0, runtime_1.exists)(json, 'perShare') ? undefined : (0, AfuCompanyProfilePerShare_1.AfuCompanyProfilePerShareFromJSON)(json['perShare']),
77
+ 'employeeInformations': !(0, runtime_1.exists)(json, 'employeeInformations') ? undefined : (0, AfuCompanyProfileEmployeeInformations_1.AfuCompanyProfileEmployeeInformationsFromJSON)(json['employeeInformations']),
78
+ 'noteFinancials': !(0, runtime_1.exists)(json, 'noteFinancials') ? undefined : json['noteFinancials'],
79
+ 'noteFinancialsTranslated': !(0, runtime_1.exists)(json, 'noteFinancialsTranslated') ? undefined : json['noteFinancialsTranslated'],
80
+ 'reportingCurrency': !(0, runtime_1.exists)(json, 'reportingCurrency') ? undefined : json['reportingCurrency'],
81
+ 'methodOfFinancing': !(0, runtime_1.exists)(json, 'methodOfFinancing') ? undefined : json['methodOfFinancing'],
82
+ 'financialStatement': !(0, runtime_1.exists)(json, 'financialStatement') ? undefined : (0, AfuCompanyProfileFinancialStatement_1.AfuCompanyProfileFinancialStatementFromJSON)(json['financialStatement']),
83
+ 'incomeStatement': !(0, runtime_1.exists)(json, 'incomeStatement') ? undefined : (0, AfuCompanyProfileIncomeStatement_1.AfuCompanyProfileIncomeStatementFromJSON)(json['incomeStatement']),
84
+ 'cashflow': !(0, runtime_1.exists)(json, 'cashflow') ? undefined : (0, AfuCompanyProfileCashflow_1.AfuCompanyProfileCashflowFromJSON)(json['cashflow']),
85
+ 'keyData': !(0, runtime_1.exists)(json, 'keyData') ? undefined : (0, AfuCompanyProfileKeyData_1.AfuCompanyProfileKeyDataFromJSON)(json['keyData']),
86
+ 'linkedShares': !(0, runtime_1.exists)(json, 'linkedShares') ? undefined : (json['linkedShares'].map(AfuCompanyProfileLinkedSharesInner_1.AfuCompanyProfileLinkedSharesInnerFromJSON)),
87
+ 'lastupdate': !(0, runtime_1.exists)(json, 'lastupdate') ? undefined : (0, AfuCompanyProfileLastupdate_1.AfuCompanyProfileLastupdateFromJSON)(json['lastupdate']),
88
+ 'copyright': !(0, runtime_1.exists)(json, 'copyright') ? undefined : json['copyright'],
89
+ 'keyFigures': !(0, runtime_1.exists)(json, 'keyFigures') ? undefined : (0, AfuCompanyProfileKeyFigures_1.AfuCompanyProfileKeyFiguresFromJSON)(json['keyFigures']),
90
+ 'appointments': !(0, runtime_1.exists)(json, 'appointments') ? undefined : (json['appointments'].map(AfuCompanyProfileAppointmentsInner_1.AfuCompanyProfileAppointmentsInnerFromJSON)),
91
+ };
92
+ }
93
+ exports.AfuCompanyProfileFromJSONTyped = AfuCompanyProfileFromJSONTyped;
94
+ function AfuCompanyProfileToJSON(value) {
95
+ if (value === undefined) {
96
+ return undefined;
97
+ }
98
+ if (value === null) {
99
+ return null;
100
+ }
101
+ return {
102
+ 'name': value.name,
103
+ 'stocktype': value.stocktype,
104
+ 'stocktypeTranslated': value.stocktypeTranslated,
105
+ 'stockclass': value.stockclass,
106
+ 'stockclassTranslated': value.stockclassTranslated,
107
+ 'parvalue': value.parvalue,
108
+ 'ticker': value.ticker,
109
+ 'sector': value.sector,
110
+ 'sectorTranslated': value.sectorTranslated,
111
+ 'industrialsector': value.industrialsector,
112
+ 'industrialSectorTranslated': value.industrialSectorTranslated,
113
+ 'country': value.country,
114
+ 'countryTranslated': value.countryTranslated,
115
+ 'tradePlaces': value.tradePlaces,
116
+ 'founded': value.founded,
117
+ 'contact': (0, AfuCompanyProfileContact_1.AfuCompanyProfileContactToJSON)(value.contact),
118
+ 'auditingCompany': value.auditingCompany,
119
+ 'profileTranslated': value.profileTranslated,
120
+ 'profile': value.profile,
121
+ 'profileLong': value.profileLong,
122
+ 'management': value.management === undefined ? undefined : (value.management.map(AfuCompanyProfileManagementInner_1.AfuCompanyProfileManagementInnerToJSON)),
123
+ 'supervisoryBoard': value.supervisoryBoard === undefined ? undefined : (value.supervisoryBoard.map(AfuCompanyProfileSupervisoryBoardInner_1.AfuCompanyProfileSupervisoryBoardInnerToJSON)),
124
+ 'calendar': (0, AfuCompanyProfileCalendar_1.AfuCompanyProfileCalendarToJSON)(value.calendar),
125
+ 'shareholders': value.shareholders === undefined ? undefined : (value.shareholders.map(AfuCompanyProfileShareholdersInner_1.AfuCompanyProfileShareholdersInnerToJSON)),
126
+ 'stockInformations': (0, AfuCompanyProfileStockInformations_1.AfuCompanyProfileStockInformationsToJSON)(value.stockInformations),
127
+ 'perShare': (0, AfuCompanyProfilePerShare_1.AfuCompanyProfilePerShareToJSON)(value.perShare),
128
+ 'employeeInformations': (0, AfuCompanyProfileEmployeeInformations_1.AfuCompanyProfileEmployeeInformationsToJSON)(value.employeeInformations),
129
+ 'noteFinancials': value.noteFinancials,
130
+ 'noteFinancialsTranslated': value.noteFinancialsTranslated,
131
+ 'reportingCurrency': value.reportingCurrency,
132
+ 'methodOfFinancing': value.methodOfFinancing,
133
+ 'financialStatement': (0, AfuCompanyProfileFinancialStatement_1.AfuCompanyProfileFinancialStatementToJSON)(value.financialStatement),
134
+ 'incomeStatement': (0, AfuCompanyProfileIncomeStatement_1.AfuCompanyProfileIncomeStatementToJSON)(value.incomeStatement),
135
+ 'cashflow': (0, AfuCompanyProfileCashflow_1.AfuCompanyProfileCashflowToJSON)(value.cashflow),
136
+ 'keyData': (0, AfuCompanyProfileKeyData_1.AfuCompanyProfileKeyDataToJSON)(value.keyData),
137
+ 'linkedShares': value.linkedShares === undefined ? undefined : (value.linkedShares.map(AfuCompanyProfileLinkedSharesInner_1.AfuCompanyProfileLinkedSharesInnerToJSON)),
138
+ 'lastupdate': (0, AfuCompanyProfileLastupdate_1.AfuCompanyProfileLastupdateToJSON)(value.lastupdate),
139
+ 'copyright': value.copyright,
140
+ 'keyFigures': (0, AfuCompanyProfileKeyFigures_1.AfuCompanyProfileKeyFiguresToJSON)(value.keyFigures),
141
+ 'appointments': value.appointments === undefined ? undefined : (value.appointments.map(AfuCompanyProfileAppointmentsInner_1.AfuCompanyProfileAppointmentsInnerToJSON)),
142
+ };
143
+ }
144
+ exports.AfuCompanyProfileToJSON = AfuCompanyProfileToJSON;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MDS API
6
+ * Please note the following definitions used throughout this API.<p> **Source**: A source can be any kind of marketplace (exchange) or an entity that calculates prices/values for instruments. <p> **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, ... <p> **Listing**: An instrument can be traded/calculated on multiple Sources. Some sources even support multiple listings of the same instrument (for example 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, ... <p> **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 und quote informations ... **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 \"?\". 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. E.g. ECB currency rates 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. I you see \"00:00:00.000\" in a datetime field, this actually means something happened exactly at midnight, it is not a 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 the 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.<p> **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.9
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.AfuCompanyProfileAppointmentsInnerToJSON = exports.AfuCompanyProfileAppointmentsInnerFromJSONTyped = exports.AfuCompanyProfileAppointmentsInnerFromJSON = exports.instanceOfAfuCompanyProfileAppointmentsInner = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the AfuCompanyProfileAppointmentsInner interface.
20
+ */
21
+ function instanceOfAfuCompanyProfileAppointmentsInner(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfAfuCompanyProfileAppointmentsInner = instanceOfAfuCompanyProfileAppointmentsInner;
26
+ function AfuCompanyProfileAppointmentsInnerFromJSON(json) {
27
+ return AfuCompanyProfileAppointmentsInnerFromJSONTyped(json, false);
28
+ }
29
+ exports.AfuCompanyProfileAppointmentsInnerFromJSON = AfuCompanyProfileAppointmentsInnerFromJSON;
30
+ function AfuCompanyProfileAppointmentsInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'dueDay': !(0, runtime_1.exists)(json, 'dueDay') ? undefined : (new Date(json['dueDay'])),
36
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
37
+ };
38
+ }
39
+ exports.AfuCompanyProfileAppointmentsInnerFromJSONTyped = AfuCompanyProfileAppointmentsInnerFromJSONTyped;
40
+ function AfuCompanyProfileAppointmentsInnerToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'dueDay': value.dueDay === undefined ? undefined : (value.dueDay.toISOString().substr(0, 10)),
49
+ 'description': value.description,
50
+ };
51
+ }
52
+ exports.AfuCompanyProfileAppointmentsInnerToJSON = AfuCompanyProfileAppointmentsInnerToJSON;
@@ -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.<p> **Source**: A source can be any kind of marketplace (exchange) or an entity that calculates prices/values for instruments. <p> **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, ... <p> **Listing**: An instrument can be traded/calculated on multiple Sources. Some sources even support multiple listings of the same instrument (for example 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, ... <p> **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 und quote informations ... **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 \"?\". 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. E.g. ECB currency rates 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. I you see \"00:00:00.000\" in a datetime field, this actually means something happened exactly at midnight, it is not a 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 the 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.<p> **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.9
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.AfuCompanyProfileCalendarToJSON = exports.AfuCompanyProfileCalendarFromJSONTyped = exports.AfuCompanyProfileCalendarFromJSON = exports.instanceOfAfuCompanyProfileCalendar = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const AfuCompanyProfileCalendarEndFiscalYear_1 = require("./AfuCompanyProfileCalendarEndFiscalYear");
19
+ /**
20
+ * Check if a given object implements the AfuCompanyProfileCalendar interface.
21
+ */
22
+ function instanceOfAfuCompanyProfileCalendar(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfAfuCompanyProfileCalendar = instanceOfAfuCompanyProfileCalendar;
27
+ function AfuCompanyProfileCalendarFromJSON(json) {
28
+ return AfuCompanyProfileCalendarFromJSONTyped(json, false);
29
+ }
30
+ exports.AfuCompanyProfileCalendarFromJSON = AfuCompanyProfileCalendarFromJSON;
31
+ function AfuCompanyProfileCalendarFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'endFiscalYear': !(0, runtime_1.exists)(json, 'endFiscalYear') ? undefined : (0, AfuCompanyProfileCalendarEndFiscalYear_1.AfuCompanyProfileCalendarEndFiscalYearFromJSON)(json['endFiscalYear']),
37
+ };
38
+ }
39
+ exports.AfuCompanyProfileCalendarFromJSONTyped = AfuCompanyProfileCalendarFromJSONTyped;
40
+ function AfuCompanyProfileCalendarToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'endFiscalYear': (0, AfuCompanyProfileCalendarEndFiscalYear_1.AfuCompanyProfileCalendarEndFiscalYearToJSON)(value.endFiscalYear),
49
+ };
50
+ }
51
+ exports.AfuCompanyProfileCalendarToJSON = AfuCompanyProfileCalendarToJSON;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MDS API
6
+ * Please note the following definitions used throughout this API.<p> **Source**: A source can be any kind of marketplace (exchange) or an entity that calculates prices/values for instruments. <p> **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, ... <p> **Listing**: An instrument can be traded/calculated on multiple Sources. Some sources even support multiple listings of the same instrument (for example 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, ... <p> **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 und quote informations ... **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 \"?\". 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. E.g. ECB currency rates 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. I you see \"00:00:00.000\" in a datetime field, this actually means something happened exactly at midnight, it is not a 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 the 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.<p> **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.9
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.AfuCompanyProfileCalendarEndFiscalYearToJSON = exports.AfuCompanyProfileCalendarEndFiscalYearFromJSONTyped = exports.AfuCompanyProfileCalendarEndFiscalYearFromJSON = exports.instanceOfAfuCompanyProfileCalendarEndFiscalYear = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the AfuCompanyProfileCalendarEndFiscalYear interface.
20
+ */
21
+ function instanceOfAfuCompanyProfileCalendarEndFiscalYear(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfAfuCompanyProfileCalendarEndFiscalYear = instanceOfAfuCompanyProfileCalendarEndFiscalYear;
26
+ function AfuCompanyProfileCalendarEndFiscalYearFromJSON(json) {
27
+ return AfuCompanyProfileCalendarEndFiscalYearFromJSONTyped(json, false);
28
+ }
29
+ exports.AfuCompanyProfileCalendarEndFiscalYearFromJSON = AfuCompanyProfileCalendarEndFiscalYearFromJSON;
30
+ function AfuCompanyProfileCalendarEndFiscalYearFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'dayOfMonth': !(0, runtime_1.exists)(json, 'dayOfMonth') ? undefined : json['dayOfMonth'],
36
+ 'month': !(0, runtime_1.exists)(json, 'month') ? undefined : json['month'],
37
+ };
38
+ }
39
+ exports.AfuCompanyProfileCalendarEndFiscalYearFromJSONTyped = AfuCompanyProfileCalendarEndFiscalYearFromJSONTyped;
40
+ function AfuCompanyProfileCalendarEndFiscalYearToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'dayOfMonth': value.dayOfMonth,
49
+ 'month': value.month,
50
+ };
51
+ }
52
+ exports.AfuCompanyProfileCalendarEndFiscalYearToJSON = AfuCompanyProfileCalendarEndFiscalYearToJSON;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MDS API
6
+ * Please note the following definitions used throughout this API.<p> **Source**: A source can be any kind of marketplace (exchange) or an entity that calculates prices/values for instruments. <p> **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, ... <p> **Listing**: An instrument can be traded/calculated on multiple Sources. Some sources even support multiple listings of the same instrument (for example 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, ... <p> **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 und quote informations ... **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 \"?\". 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. E.g. ECB currency rates 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. I you see \"00:00:00.000\" in a datetime field, this actually means something happened exactly at midnight, it is not a 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 the 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.<p> **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.9
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.AfuCompanyProfileCashflowToJSON = exports.AfuCompanyProfileCashflowFromJSONTyped = exports.AfuCompanyProfileCashflowFromJSON = exports.instanceOfAfuCompanyProfileCashflow = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const AfuCompanyYearlyAmount_1 = require("./AfuCompanyYearlyAmount");
19
+ /**
20
+ * Check if a given object implements the AfuCompanyProfileCashflow interface.
21
+ */
22
+ function instanceOfAfuCompanyProfileCashflow(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfAfuCompanyProfileCashflow = instanceOfAfuCompanyProfileCashflow;
27
+ function AfuCompanyProfileCashflowFromJSON(json) {
28
+ return AfuCompanyProfileCashflowFromJSONTyped(json, false);
29
+ }
30
+ exports.AfuCompanyProfileCashflowFromJSON = AfuCompanyProfileCashflowFromJSON;
31
+ function AfuCompanyProfileCashflowFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'operatingCashFlow': !(0, runtime_1.exists)(json, 'operatingCashFlow') ? undefined : (json['operatingCashFlow'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
37
+ 'financialCashFlow': !(0, runtime_1.exists)(json, 'financialCashFlow') ? undefined : (json['financialCashFlow'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
38
+ 'investingCashFlow': !(0, runtime_1.exists)(json, 'investingCashFlow') ? undefined : (json['investingCashFlow'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
39
+ 'cashEndOfPeriod': !(0, runtime_1.exists)(json, 'cashEndOfPeriod') ? undefined : (json['cashEndOfPeriod'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
40
+ 'netChangeCash': !(0, runtime_1.exists)(json, 'netChangeCash') ? undefined : (json['netChangeCash'].map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountFromJSON)),
41
+ };
42
+ }
43
+ exports.AfuCompanyProfileCashflowFromJSONTyped = AfuCompanyProfileCashflowFromJSONTyped;
44
+ function AfuCompanyProfileCashflowToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'operatingCashFlow': value.operatingCashFlow === undefined ? undefined : (value.operatingCashFlow.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
53
+ 'financialCashFlow': value.financialCashFlow === undefined ? undefined : (value.financialCashFlow.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
54
+ 'investingCashFlow': value.investingCashFlow === undefined ? undefined : (value.investingCashFlow.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
55
+ 'cashEndOfPeriod': value.cashEndOfPeriod === undefined ? undefined : (value.cashEndOfPeriod.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
56
+ 'netChangeCash': value.netChangeCash === undefined ? undefined : (value.netChangeCash.map(AfuCompanyYearlyAmount_1.AfuCompanyYearlyAmountToJSON)),
57
+ };
58
+ }
59
+ exports.AfuCompanyProfileCashflowToJSON = AfuCompanyProfileCashflowToJSON;