@ariva-mds/mds 2.54.0 → 2.55.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 (103) hide show
  1. package/lib/cjs/api/MdsConnection.js +16 -12
  2. package/lib/cjs/models/FeedsListingsSourceIdInitialLoadGet200Response.js +5 -0
  3. package/lib/cjs/models/FeedsMarketstatesSourceIdInitialLoadGet200Response.js +3 -0
  4. package/lib/cjs/models/InstrumentsGet200Response1.js +5 -0
  5. package/lib/cjs/models/InstrumentsInstrumentIdMarketstatesGet200Response1.js +6 -0
  6. package/lib/cjs/models/Listingdata.js +5 -0
  7. package/lib/cjs/models/ListingdataWithId.js +5 -0
  8. package/lib/cjs/models/ListingdataWithIdAndQuality.js +5 -0
  9. package/lib/cjs/models/Marketstate.js +6 -0
  10. package/lib/cjs/models/MarketstateQuote.js +2 -0
  11. package/lib/cjs/models/MarketstateResponseSearch.js +6 -0
  12. package/lib/cjs/models/MarketstateTick.js +2 -0
  13. package/lib/cjs/models/MarketstateWithId.js +6 -0
  14. package/lib/cjs/models/MarketstatesGet200Response1.js +6 -0
  15. package/lib/cjs/models/Masterdata.js +5 -0
  16. package/lib/cjs/models/MasterdataEntryFromSource.js +7 -2
  17. package/lib/cjs/models/MasterdataMergedSummaryWithId.js +5 -0
  18. package/lib/cjs/models/OfficialSymbols.js +14 -6
  19. package/lib/cjs/models/OfficialSymbolsEurexOption.js +2 -0
  20. package/lib/cjs/models/OrderBookVariant.js +35 -0
  21. package/lib/cjs/models/WebSocketCommandGetReference.js +50 -0
  22. package/lib/cjs/models/WebSocketCommandSubscribeMarketdepth.js +3 -0
  23. package/lib/cjs/models/WebSocketMessage.js +3 -0
  24. package/lib/cjs/models/WebSocketRequest.js +3 -0
  25. package/lib/cjs/models/index.js +1 -0
  26. package/lib/esm/api/MdsConnection.js +16 -12
  27. package/lib/esm/models/FeedsListingsSourceIdInitialLoadGet200Response.js +5 -0
  28. package/lib/esm/models/FeedsMarketstatesSourceIdInitialLoadGet200Response.js +3 -0
  29. package/lib/esm/models/InstrumentsGet200Response1.js +5 -0
  30. package/lib/esm/models/InstrumentsInstrumentIdMarketstatesGet200Response1.js +6 -0
  31. package/lib/esm/models/Listingdata.js +5 -0
  32. package/lib/esm/models/ListingdataWithId.js +5 -0
  33. package/lib/esm/models/ListingdataWithIdAndQuality.js +5 -0
  34. package/lib/esm/models/Marketstate.js +6 -0
  35. package/lib/esm/models/MarketstateQuote.js +2 -0
  36. package/lib/esm/models/MarketstateResponseSearch.js +6 -0
  37. package/lib/esm/models/MarketstateTick.js +2 -0
  38. package/lib/esm/models/MarketstateWithId.js +6 -0
  39. package/lib/esm/models/MarketstatesGet200Response1.js +6 -0
  40. package/lib/esm/models/Masterdata.js +5 -0
  41. package/lib/esm/models/MasterdataEntryFromSource.js +7 -2
  42. package/lib/esm/models/MasterdataMergedSummaryWithId.js +5 -0
  43. package/lib/esm/models/OfficialSymbols.js +14 -6
  44. package/lib/esm/models/OfficialSymbolsEurexOption.js +2 -0
  45. package/lib/esm/models/OrderBookVariant.js +29 -0
  46. package/lib/esm/models/WebSocketCommandGetReference.js +43 -0
  47. package/lib/esm/models/WebSocketCommandSubscribeMarketdepth.js +3 -0
  48. package/lib/esm/models/WebSocketMessage.js +3 -0
  49. package/lib/esm/models/WebSocketRequest.js +3 -0
  50. package/lib/esm/models/index.js +1 -0
  51. package/lib/types/api/MdsConnection.d.ts +2 -2
  52. package/lib/types/api/MdsConnection.d.ts.map +1 -1
  53. package/lib/types/models/FeedsListingsSourceIdInitialLoadGet200Response.d.ts +13 -0
  54. package/lib/types/models/FeedsListingsSourceIdInitialLoadGet200Response.d.ts.map +1 -1
  55. package/lib/types/models/FeedsMarketstatesSourceIdInitialLoadGet200Response.d.ts +18 -0
  56. package/lib/types/models/FeedsMarketstatesSourceIdInitialLoadGet200Response.d.ts.map +1 -1
  57. package/lib/types/models/InstrumentsGet200Response1.d.ts +13 -0
  58. package/lib/types/models/InstrumentsGet200Response1.d.ts.map +1 -1
  59. package/lib/types/models/InstrumentsInstrumentIdMarketstatesGet200Response1.d.ts +18 -0
  60. package/lib/types/models/InstrumentsInstrumentIdMarketstatesGet200Response1.d.ts.map +1 -1
  61. package/lib/types/models/Listingdata.d.ts +13 -0
  62. package/lib/types/models/Listingdata.d.ts.map +1 -1
  63. package/lib/types/models/ListingdataWithId.d.ts +13 -0
  64. package/lib/types/models/ListingdataWithId.d.ts.map +1 -1
  65. package/lib/types/models/ListingdataWithIdAndQuality.d.ts +13 -0
  66. package/lib/types/models/ListingdataWithIdAndQuality.d.ts.map +1 -1
  67. package/lib/types/models/Marketstate.d.ts +18 -0
  68. package/lib/types/models/Marketstate.d.ts.map +1 -1
  69. package/lib/types/models/MarketstateQuote.d.ts +6 -0
  70. package/lib/types/models/MarketstateQuote.d.ts.map +1 -1
  71. package/lib/types/models/MarketstateResponseSearch.d.ts +18 -0
  72. package/lib/types/models/MarketstateResponseSearch.d.ts.map +1 -1
  73. package/lib/types/models/MarketstateTick.d.ts +6 -0
  74. package/lib/types/models/MarketstateTick.d.ts.map +1 -1
  75. package/lib/types/models/MarketstateWithId.d.ts +18 -0
  76. package/lib/types/models/MarketstateWithId.d.ts.map +1 -1
  77. package/lib/types/models/MarketstatesGet200Response1.d.ts +18 -0
  78. package/lib/types/models/MarketstatesGet200Response1.d.ts.map +1 -1
  79. package/lib/types/models/Masterdata.d.ts +14 -1
  80. package/lib/types/models/Masterdata.d.ts.map +1 -1
  81. package/lib/types/models/MasterdataEntryFromSource.d.ts +19 -6
  82. package/lib/types/models/MasterdataEntryFromSource.d.ts.map +1 -1
  83. package/lib/types/models/MasterdataMergedSummaryWithId.d.ts +13 -0
  84. package/lib/types/models/MasterdataMergedSummaryWithId.d.ts.map +1 -1
  85. package/lib/types/models/OfficialSymbols.d.ts +37 -13
  86. package/lib/types/models/OfficialSymbols.d.ts.map +1 -1
  87. package/lib/types/models/OfficialSymbolsEurexFuture.d.ts +2 -2
  88. package/lib/types/models/OfficialSymbolsEurexOption.d.ts +10 -4
  89. package/lib/types/models/OfficialSymbolsEurexOption.d.ts.map +1 -1
  90. package/lib/types/models/OrderBookVariant.d.ts +23 -0
  91. package/lib/types/models/OrderBookVariant.d.ts.map +1 -0
  92. package/lib/types/models/SomethingWithOfficialSymbols.d.ts +1 -1
  93. package/lib/types/models/WebSocketCommandGetReference.d.ts +32 -0
  94. package/lib/types/models/WebSocketCommandGetReference.d.ts.map +1 -0
  95. package/lib/types/models/WebSocketCommandSubscribeMarketdepth.d.ts +7 -0
  96. package/lib/types/models/WebSocketCommandSubscribeMarketdepth.d.ts.map +1 -1
  97. package/lib/types/models/WebSocketMessage.d.ts +7 -0
  98. package/lib/types/models/WebSocketMessage.d.ts.map +1 -1
  99. package/lib/types/models/WebSocketRequest.d.ts +7 -0
  100. package/lib/types/models/WebSocketRequest.d.ts.map +1 -1
  101. package/lib/types/models/index.d.ts +1 -0
  102. package/lib/types/models/index.d.ts.map +1 -1
  103. package/package.json +1 -1
@@ -0,0 +1,35 @@
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.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.OrderBookVariantToJSON = exports.OrderBookVariantFromJSONTyped = exports.OrderBookVariantFromJSON = exports.OrderBookVariant = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ */
21
+ exports.OrderBookVariant = {
22
+ Retail: 'RETAIL'
23
+ };
24
+ function OrderBookVariantFromJSON(json) {
25
+ return OrderBookVariantFromJSONTyped(json, false);
26
+ }
27
+ exports.OrderBookVariantFromJSON = OrderBookVariantFromJSON;
28
+ function OrderBookVariantFromJSONTyped(json, ignoreDiscriminator) {
29
+ return json;
30
+ }
31
+ exports.OrderBookVariantFromJSONTyped = OrderBookVariantFromJSONTyped;
32
+ function OrderBookVariantToJSON(value) {
33
+ return value;
34
+ }
35
+ exports.OrderBookVariantToJSON = OrderBookVariantToJSON;
@@ -0,0 +1,50 @@
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.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.WebSocketCommandGetReferenceToJSON = exports.WebSocketCommandGetReferenceFromJSONTyped = exports.WebSocketCommandGetReferenceFromJSON = exports.instanceOfWebSocketCommandGetReference = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the WebSocketCommandGetReference interface.
20
+ */
21
+ function instanceOfWebSocketCommandGetReference(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfWebSocketCommandGetReference = instanceOfWebSocketCommandGetReference;
26
+ function WebSocketCommandGetReferenceFromJSON(json) {
27
+ return WebSocketCommandGetReferenceFromJSONTyped(json, false);
28
+ }
29
+ exports.WebSocketCommandGetReferenceFromJSON = WebSocketCommandGetReferenceFromJSON;
30
+ function WebSocketCommandGetReferenceFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'referenceId': !(0, runtime_1.exists)(json, 'referenceId') ? undefined : json['referenceId'],
36
+ };
37
+ }
38
+ exports.WebSocketCommandGetReferenceFromJSONTyped = WebSocketCommandGetReferenceFromJSONTyped;
39
+ function WebSocketCommandGetReferenceToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'referenceId': value.referenceId,
48
+ };
49
+ }
50
+ exports.WebSocketCommandGetReferenceToJSON = WebSocketCommandGetReferenceToJSON;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WebSocketCommandSubscribeMarketdepthToJSON = exports.WebSocketCommandSubscribeMarketdepthFromJSONTyped = exports.WebSocketCommandSubscribeMarketdepthFromJSON = exports.instanceOfWebSocketCommandSubscribeMarketdepth = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const OrderBookVariant_1 = require("./OrderBookVariant");
18
19
  const Quality_1 = require("./Quality");
19
20
  /**
20
21
  * Check if a given object implements the WebSocketCommandSubscribeMarketdepth interface.
@@ -35,6 +36,7 @@ function WebSocketCommandSubscribeMarketdepthFromJSONTyped(json, ignoreDiscrimin
35
36
  return {
36
37
  'marketstateId': !(0, runtime_1.exists)(json, 'marketstateId') ? undefined : json['marketstateId'],
37
38
  'quality': !(0, runtime_1.exists)(json, 'quality') ? undefined : (0, Quality_1.QualityFromJSON)(json['quality']),
39
+ 'orderBookVariant': !(0, runtime_1.exists)(json, 'orderBookVariant') ? undefined : (0, OrderBookVariant_1.OrderBookVariantFromJSON)(json['orderBookVariant']),
38
40
  };
39
41
  }
40
42
  exports.WebSocketCommandSubscribeMarketdepthFromJSONTyped = WebSocketCommandSubscribeMarketdepthFromJSONTyped;
@@ -48,6 +50,7 @@ function WebSocketCommandSubscribeMarketdepthToJSON(value) {
48
50
  return {
49
51
  'marketstateId': value.marketstateId,
50
52
  'quality': (0, Quality_1.QualityToJSON)(value.quality),
53
+ 'orderBookVariant': (0, OrderBookVariant_1.OrderBookVariantToJSON)(value.orderBookVariant),
51
54
  };
52
55
  }
53
56
  exports.WebSocketCommandSubscribeMarketdepthToJSON = WebSocketCommandSubscribeMarketdepthToJSON;
@@ -23,6 +23,7 @@ const MarketdepthWithId_1 = require("./MarketdepthWithId");
23
23
  const MarketstateResponseSearch_1 = require("./MarketstateResponseSearch");
24
24
  const MasterdataMergedSummaryWithId_1 = require("./MasterdataMergedSummaryWithId");
25
25
  const PerformanceDataForTimeRange_1 = require("./PerformanceDataForTimeRange");
26
+ const ReferenceTable_1 = require("./ReferenceTable");
26
27
  const Sourcedata_1 = require("./Sourcedata");
27
28
  const TickHistoryData_1 = require("./TickHistoryData");
28
29
  const TimeseriesData_1 = require("./TimeseriesData");
@@ -57,6 +58,7 @@ function WebSocketMessageFromJSONTyped(json, ignoreDiscriminator) {
57
58
  'dataListing': !(0, runtime_1.exists)(json, 'dataListing') ? undefined : (0, ListingdataWithIdAndQuality_1.ListingdataWithIdAndQualityFromJSON)(json['dataListing']),
58
59
  'dataTradeticker': !(0, runtime_1.exists)(json, 'dataTradeticker') ? undefined : (0, TradetickerEvent_1.TradetickerEventFromJSON)(json['dataTradeticker']),
59
60
  'dataTopflopList': !(0, runtime_1.exists)(json, 'dataTopflopList') ? undefined : (0, TopflopList_1.TopflopListFromJSON)(json['dataTopflopList']),
61
+ 'dataReference': !(0, runtime_1.exists)(json, 'dataReference') ? undefined : (0, ReferenceTable_1.ReferenceTableFromJSON)(json['dataReference']),
60
62
  'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : (0, Sourcedata_1.SourcedataFromJSON)(json['dataSource']),
61
63
  'dataMasterdata': !(0, runtime_1.exists)(json, 'dataMasterdata') ? undefined : (0, MasterdataMergedSummaryWithId_1.MasterdataMergedSummaryWithIdFromJSON)(json['dataMasterdata']),
62
64
  'dataAuthentication': !(0, runtime_1.exists)(json, 'dataAuthentication') ? undefined : (0, AuthenticationState_1.AuthenticationStateFromJSON)(json['dataAuthentication']),
@@ -90,6 +92,7 @@ function WebSocketMessageToJSON(value) {
90
92
  'dataListing': (0, ListingdataWithIdAndQuality_1.ListingdataWithIdAndQualityToJSON)(value.dataListing),
91
93
  'dataTradeticker': (0, TradetickerEvent_1.TradetickerEventToJSON)(value.dataTradeticker),
92
94
  'dataTopflopList': (0, TopflopList_1.TopflopListToJSON)(value.dataTopflopList),
95
+ 'dataReference': (0, ReferenceTable_1.ReferenceTableToJSON)(value.dataReference),
93
96
  'dataSource': (0, Sourcedata_1.SourcedataToJSON)(value.dataSource),
94
97
  'dataMasterdata': (0, MasterdataMergedSummaryWithId_1.MasterdataMergedSummaryWithIdToJSON)(value.dataMasterdata),
95
98
  'dataAuthentication': (0, AuthenticationState_1.AuthenticationStateToJSON)(value.dataAuthentication),
@@ -19,6 +19,7 @@ const WebSocketCommandAuthenticate_1 = require("./WebSocketCommandAuthenticate")
19
19
  const WebSocketCommandCancel_1 = require("./WebSocketCommandCancel");
20
20
  const WebSocketCommandGetAfuCompanyProfile_1 = require("./WebSocketCommandGetAfuCompanyProfile");
21
21
  const WebSocketCommandGetInstrumentMasterdata_1 = require("./WebSocketCommandGetInstrumentMasterdata");
22
+ const WebSocketCommandGetReference_1 = require("./WebSocketCommandGetReference");
22
23
  const WebSocketCommandGetSource_1 = require("./WebSocketCommandGetSource");
23
24
  const WebSocketCommandGetTradingtime_1 = require("./WebSocketCommandGetTradingtime");
24
25
  const WebSocketCommandGetTradingtimeAnalysis_1 = require("./WebSocketCommandGetTradingtimeAnalysis");
@@ -67,6 +68,7 @@ function WebSocketRequestFromJSONTyped(json, ignoreDiscriminator) {
67
68
  'subscribeTimeseries': !(0, runtime_1.exists)(json, 'subscribeTimeseries') ? undefined : (0, WebSocketCommandSubscribeTimeseries_1.WebSocketCommandSubscribeTimeseriesFromJSON)(json['subscribeTimeseries']),
68
69
  'getInstrumentMasterdata': !(0, runtime_1.exists)(json, 'getInstrumentMasterdata') ? undefined : (0, WebSocketCommandGetInstrumentMasterdata_1.WebSocketCommandGetInstrumentMasterdataFromJSON)(json['getInstrumentMasterdata']),
69
70
  'getAfuCompanyProfile': !(0, runtime_1.exists)(json, 'getAfuCompanyProfile') ? undefined : (0, WebSocketCommandGetAfuCompanyProfile_1.WebSocketCommandGetAfuCompanyProfileFromJSON)(json['getAfuCompanyProfile']),
71
+ 'getReference': !(0, runtime_1.exists)(json, 'getReference') ? undefined : (0, WebSocketCommandGetReference_1.WebSocketCommandGetReferenceFromJSON)(json['getReference']),
70
72
  'getSource': !(0, runtime_1.exists)(json, 'getSource') ? undefined : (0, WebSocketCommandGetSource_1.WebSocketCommandGetSourceFromJSON)(json['getSource']),
71
73
  'getTradingtime': !(0, runtime_1.exists)(json, 'getTradingtime') ? undefined : (0, WebSocketCommandGetTradingtime_1.WebSocketCommandGetTradingtimeFromJSON)(json['getTradingtime']),
72
74
  'getTradingtimeAnalysis': !(0, runtime_1.exists)(json, 'getTradingtimeAnalysis') ? undefined : (0, WebSocketCommandGetTradingtimeAnalysis_1.WebSocketCommandGetTradingtimeAnalysisFromJSON)(json['getTradingtimeAnalysis']),
@@ -99,6 +101,7 @@ function WebSocketRequestToJSON(value) {
99
101
  'subscribeTimeseries': (0, WebSocketCommandSubscribeTimeseries_1.WebSocketCommandSubscribeTimeseriesToJSON)(value.subscribeTimeseries),
100
102
  'getInstrumentMasterdata': (0, WebSocketCommandGetInstrumentMasterdata_1.WebSocketCommandGetInstrumentMasterdataToJSON)(value.getInstrumentMasterdata),
101
103
  'getAfuCompanyProfile': (0, WebSocketCommandGetAfuCompanyProfile_1.WebSocketCommandGetAfuCompanyProfileToJSON)(value.getAfuCompanyProfile),
104
+ 'getReference': (0, WebSocketCommandGetReference_1.WebSocketCommandGetReferenceToJSON)(value.getReference),
102
105
  'getSource': (0, WebSocketCommandGetSource_1.WebSocketCommandGetSourceToJSON)(value.getSource),
103
106
  'getTradingtime': (0, WebSocketCommandGetTradingtime_1.WebSocketCommandGetTradingtimeToJSON)(value.getTradingtime),
104
107
  'getTradingtimeAnalysis': (0, WebSocketCommandGetTradingtimeAnalysis_1.WebSocketCommandGetTradingtimeAnalysisToJSON)(value.getTradingtimeAnalysis),
@@ -116,6 +116,7 @@ __exportStar(require("./OfficialSymbolsCrypto"), exports);
116
116
  __exportStar(require("./OfficialSymbolsCurrency"), exports);
117
117
  __exportStar(require("./OfficialSymbolsEurexFuture"), exports);
118
118
  __exportStar(require("./OfficialSymbolsEurexOption"), exports);
119
+ __exportStar(require("./OrderBookVariant"), exports);
119
120
  __exportStar(require("./Performance"), exports);
120
121
  __exportStar(require("./PerformanceData"), exports);
121
122
  __exportStar(require("./PerformanceDataAllOf"), exports);
@@ -44,7 +44,7 @@ export class MdsConnection {
44
44
  */
45
45
  this.masterdataCache = undefined;
46
46
  this.authdataCallback = authdataCallback;
47
- this.isDebug = options.debug ? true : false;
47
+ this.isDebug = !!options.debug;
48
48
  this.websocket = new ReconnectingWebSocket(websocketUrl, [], options.wsOptions);
49
49
  const outer = this;
50
50
  // open-handler -> resend open requests from previous connection
@@ -232,8 +232,14 @@ export class MdsConnection {
232
232
  /**
233
233
  * Returns the Orderbook for the specified Marketstate.
234
234
  * */
235
- marketdepth(marketstateId, quality) {
236
- return this.observable({ subscribeMarketdepth: { marketstateId: marketstateId, quality: quality } }).pipe(map(state => MarketdepthWithIdFromJSON(state.dataMarketdepth)));
235
+ marketdepth(marketstateId, quality, orderBookVariant) {
236
+ return this.observable({
237
+ subscribeMarketdepth: {
238
+ marketstateId: marketstateId,
239
+ quality: quality,
240
+ orderBookVariant: orderBookVariant
241
+ }
242
+ }).pipe(map(state => MarketdepthWithIdFromJSON(state.dataMarketdepth)));
237
243
  }
238
244
  /**
239
245
  * Returns the performance for a specified listing of an instrument.
@@ -291,7 +297,7 @@ export class MdsConnection {
291
297
  const existingJson = MarketstateResponseSearchToJSON(existingEntry);
292
298
  const updateJson = MarketstateResponseSearchToJSON(update);
293
299
  for (const key in updateJson) {
294
- if (!(updateJson[key] == undefined)) {
300
+ if (updateJson[key]) {
295
301
  existingJson[key] = updateJson[key];
296
302
  }
297
303
  }
@@ -348,13 +354,13 @@ export class MdsConnection {
348
354
  const requestId = this.generateNextRequestId();
349
355
  req.requestId = requestId;
350
356
  const outer = this;
351
- const observable = new Observable((subscriber) => {
357
+ return new Observable((subscriber) => {
352
358
  outer.runningRequests.set(requestId, RunningRequest.withObservable(req, subscriber));
353
359
  outer.sendAsSoonAsAuthenticationPermits(req);
354
360
  // Provide a way of canceling and disposing the resources
355
361
  return function unsubscribe() {
356
362
  const runningRequest = outer.runningRequests.get(requestId);
357
- if (runningRequest && runningRequest.observableSubscriber) {
363
+ if (runningRequest?.observableSubscriber) {
358
364
  outer.runningRequests.delete(requestId);
359
365
  outer.websocket.send(JSON.stringify({
360
366
  cancel: { requestId: requestId }
@@ -362,17 +368,15 @@ export class MdsConnection {
362
368
  }
363
369
  };
364
370
  });
365
- return observable;
366
371
  }
367
372
  promise(req) {
368
373
  const requestId = this.generateNextRequestId();
369
374
  req.requestId = requestId;
370
375
  const outer = this;
371
- const promise = new Promise((resolve, reject) => {
376
+ return new Promise((resolve, reject) => {
372
377
  outer.runningRequests.set(requestId, RunningRequest.withPromise(req, resolve, reject));
373
378
  outer.sendAsSoonAsAuthenticationPermits(req);
374
379
  });
375
- return promise;
376
380
  }
377
381
  processWebsocketMessageEvent(e) {
378
382
  if (e?.data) {
@@ -387,7 +391,7 @@ export class MdsConnection {
387
391
  request.promiseReject(msg.errorMessage);
388
392
  this.runningRequests.delete(msg.requestId);
389
393
  }
390
- else if (msg.isComplete == true) {
394
+ else if (msg.isComplete) {
391
395
  request.promiseResolve(msg);
392
396
  this.runningRequests.delete(msg.requestId);
393
397
  }
@@ -397,11 +401,11 @@ export class MdsConnection {
397
401
  }
398
402
  }
399
403
  else if (request.observableSubscriber) {
400
- if (msg.isError == true) {
404
+ if (msg.isError) {
401
405
  this.runningRequests.delete(msg.requestId);
402
406
  request.observableSubscriber.error(msg.errorMessage);
403
407
  }
404
- else if (msg.isComplete == true) {
408
+ else if (msg.isComplete) {
405
409
  this.runningRequests.delete(msg.requestId);
406
410
  request.observableSubscriber.complete();
407
411
  }
@@ -14,6 +14,7 @@
14
14
  import { exists } from '../runtime';
15
15
  import { ListingdataCefFieldsFromJSON, ListingdataCefFieldsToJSON, } from './ListingdataCefFields';
16
16
  import { ListingdataT7FieldsFromJSON, ListingdataT7FieldsToJSON, } from './ListingdataT7Fields';
17
+ import { QuotationTypeFromJSON, QuotationTypeToJSON, } from './QuotationType';
17
18
  /**
18
19
  * Check if a given object implements the FeedsListingsSourceIdInitialLoadGet200Response interface.
19
20
  */
@@ -39,9 +40,11 @@ export function FeedsListingsSourceIdInitialLoadGet200ResponseFromJSONTyped(json
39
40
  'endOfListing': !exists(json, 'endOfListing') ? undefined : (new Date(json['endOfListing'])),
40
41
  'changedAt': !exists(json, 'changedAt') ? undefined : (new Date(json['changedAt'])),
41
42
  'mic': !exists(json, 'mic') ? undefined : json['mic'],
43
+ 'quotationType': !exists(json, 'quotationType') ? undefined : QuotationTypeFromJSON(json['quotationType']),
42
44
  'segmentMic': !exists(json, 'segmentMic') ? undefined : json['segmentMic'],
43
45
  'cefFields': !exists(json, 'cefFields') ? undefined : ListingdataCefFieldsFromJSON(json['cefFields']),
44
46
  't7Fields': !exists(json, 't7Fields') ? undefined : ListingdataT7FieldsFromJSON(json['t7Fields']),
47
+ 'hasNewMarketstate': !exists(json, 'hasNewMarketstate') ? undefined : json['hasNewMarketstate'],
45
48
  'continuationToken': json['continuationToken'],
46
49
  };
47
50
  }
@@ -62,9 +65,11 @@ export function FeedsListingsSourceIdInitialLoadGet200ResponseToJSON(value) {
62
65
  'endOfListing': value.endOfListing === undefined ? undefined : (value.endOfListing.toISOString().substr(0, 10)),
63
66
  'changedAt': value.changedAt === undefined ? undefined : (value.changedAt.toISOString()),
64
67
  'mic': value.mic,
68
+ 'quotationType': QuotationTypeToJSON(value.quotationType),
65
69
  'segmentMic': value.segmentMic,
66
70
  'cefFields': ListingdataCefFieldsToJSON(value.cefFields),
67
71
  't7Fields': ListingdataT7FieldsToJSON(value.t7Fields),
72
+ 'hasNewMarketstate': value.hasNewMarketstate,
68
73
  'continuationToken': value.continuationToken,
69
74
  };
70
75
  }
@@ -46,10 +46,13 @@ export function FeedsMarketstatesSourceIdInitialLoadGet200ResponseFromJSONTyped(
46
46
  'last': !exists(json, 'last') ? undefined : MarketstateTickFromJSON(json['last']),
47
47
  'bid': !exists(json, 'bid') ? undefined : MarketstateQuoteFromJSON(json['bid']),
48
48
  'ask': !exists(json, 'ask') ? undefined : MarketstateQuoteFromJSON(json['ask']),
49
+ 'retailBid': !exists(json, 'retailBid') ? undefined : MarketstateQuoteFromJSON(json['retailBid']),
50
+ 'retailAsk': !exists(json, 'retailAsk') ? undefined : MarketstateQuoteFromJSON(json['retailAsk']),
49
51
  'open': !exists(json, 'open') ? undefined : DayMarkDataFromJSON(json['open']),
50
52
  'high': !exists(json, 'high') ? undefined : DayMarkDataFromJSON(json['high']),
51
53
  'low': !exists(json, 'low') ? undefined : DayMarkDataFromJSON(json['low']),
52
54
  'close': !exists(json, 'close') ? undefined : DayMarkDataFromJSON(json['close']),
55
+ 'settlement': !exists(json, 'settlement') ? undefined : DayMarkDataFromJSON(json['settlement']),
53
56
  'previousClose': !exists(json, 'previousClose') ? undefined : DayMarkDataFromJSON(json['previousClose']),
54
57
  'officialClose': !exists(json, 'officialClose') ? undefined : DayMarkDataFromJSON(json['officialClose']),
55
58
  'previousOfficialClose': !exists(json, 'previousOfficialClose') ? undefined : DayMarkDataFromJSON(json['previousOfficialClose']),
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { LookupTableFromJSON, LookupTableToJSON, } from './LookupTable';
15
16
  import { MasterdataEntryFromSourceFromJSON, MasterdataEntryFromSourceToJSON, } from './MasterdataEntryFromSource';
16
17
  import { OfficialSymbolsFromJSON, OfficialSymbolsToJSON, } from './OfficialSymbols';
17
18
  /**
@@ -40,6 +41,8 @@ export function InstrumentsGet200Response1FromJSONTyped(json, ignoreDiscriminato
40
41
  'shortNameTranslated': !exists(json, 'shortNameTranslated') ? undefined : json['shortNameTranslated'],
41
42
  'nominal': !exists(json, 'nominal') ? undefined : json['nominal'],
42
43
  'interestRate': !exists(json, 'interestRate') ? undefined : json['interestRate'],
44
+ 'instrumentType': !exists(json, 'instrumentType') ? undefined : json['instrumentType'],
45
+ 'classification': !exists(json, 'classification') ? undefined : LookupTableFromJSON(json['classification']),
43
46
  'items': !exists(json, 'items') ? undefined : (json['items'].map(MasterdataEntryFromSourceFromJSON)),
44
47
  };
45
48
  }
@@ -61,6 +64,8 @@ export function InstrumentsGet200Response1ToJSON(value) {
61
64
  'shortNameTranslated': value.shortNameTranslated,
62
65
  'nominal': value.nominal,
63
66
  'interestRate': value.interestRate,
67
+ 'instrumentType': value.instrumentType,
68
+ 'classification': LookupTableToJSON(value.classification),
64
69
  'items': value.items === undefined ? undefined : (value.items.map(MasterdataEntryFromSourceToJSON)),
65
70
  };
66
71
  }
@@ -45,10 +45,13 @@ export function InstrumentsInstrumentIdMarketstatesGet200Response1FromJSONTyped(
45
45
  'last': !exists(json, 'last') ? undefined : MarketstateTickFromJSON(json['last']),
46
46
  'bid': !exists(json, 'bid') ? undefined : MarketstateQuoteFromJSON(json['bid']),
47
47
  'ask': !exists(json, 'ask') ? undefined : MarketstateQuoteFromJSON(json['ask']),
48
+ 'retailBid': !exists(json, 'retailBid') ? undefined : MarketstateQuoteFromJSON(json['retailBid']),
49
+ 'retailAsk': !exists(json, 'retailAsk') ? undefined : MarketstateQuoteFromJSON(json['retailAsk']),
48
50
  'open': !exists(json, 'open') ? undefined : DayMarkDataFromJSON(json['open']),
49
51
  'high': !exists(json, 'high') ? undefined : DayMarkDataFromJSON(json['high']),
50
52
  'low': !exists(json, 'low') ? undefined : DayMarkDataFromJSON(json['low']),
51
53
  'close': !exists(json, 'close') ? undefined : DayMarkDataFromJSON(json['close']),
54
+ 'settlement': !exists(json, 'settlement') ? undefined : DayMarkDataFromJSON(json['settlement']),
52
55
  'previousClose': !exists(json, 'previousClose') ? undefined : DayMarkDataFromJSON(json['previousClose']),
53
56
  'officialClose': !exists(json, 'officialClose') ? undefined : DayMarkDataFromJSON(json['officialClose']),
54
57
  'previousOfficialClose': !exists(json, 'previousOfficialClose') ? undefined : DayMarkDataFromJSON(json['previousOfficialClose']),
@@ -79,10 +82,13 @@ export function InstrumentsInstrumentIdMarketstatesGet200Response1ToJSON(value)
79
82
  'last': MarketstateTickToJSON(value.last),
80
83
  'bid': MarketstateQuoteToJSON(value.bid),
81
84
  'ask': MarketstateQuoteToJSON(value.ask),
85
+ 'retailBid': MarketstateQuoteToJSON(value.retailBid),
86
+ 'retailAsk': MarketstateQuoteToJSON(value.retailAsk),
82
87
  'open': DayMarkDataToJSON(value.open),
83
88
  'high': DayMarkDataToJSON(value.high),
84
89
  'low': DayMarkDataToJSON(value.low),
85
90
  'close': DayMarkDataToJSON(value.close),
91
+ 'settlement': DayMarkDataToJSON(value.settlement),
86
92
  'previousClose': DayMarkDataToJSON(value.previousClose),
87
93
  'officialClose': DayMarkDataToJSON(value.officialClose),
88
94
  'previousOfficialClose': DayMarkDataToJSON(value.previousOfficialClose),
@@ -14,6 +14,7 @@
14
14
  import { exists } from '../runtime';
15
15
  import { ListingdataCefFieldsFromJSON, ListingdataCefFieldsToJSON, } from './ListingdataCefFields';
16
16
  import { ListingdataT7FieldsFromJSON, ListingdataT7FieldsToJSON, } from './ListingdataT7Fields';
17
+ import { QuotationTypeFromJSON, QuotationTypeToJSON, } from './QuotationType';
17
18
  /**
18
19
  * Check if a given object implements the Listingdata interface.
19
20
  */
@@ -34,9 +35,11 @@ export function ListingdataFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'endOfListing': !exists(json, 'endOfListing') ? undefined : (new Date(json['endOfListing'])),
35
36
  'changedAt': !exists(json, 'changedAt') ? undefined : (new Date(json['changedAt'])),
36
37
  'mic': !exists(json, 'mic') ? undefined : json['mic'],
38
+ 'quotationType': !exists(json, 'quotationType') ? undefined : QuotationTypeFromJSON(json['quotationType']),
37
39
  'segmentMic': !exists(json, 'segmentMic') ? undefined : json['segmentMic'],
38
40
  'cefFields': !exists(json, 'cefFields') ? undefined : ListingdataCefFieldsFromJSON(json['cefFields']),
39
41
  't7Fields': !exists(json, 't7Fields') ? undefined : ListingdataT7FieldsFromJSON(json['t7Fields']),
42
+ 'hasNewMarketstate': !exists(json, 'hasNewMarketstate') ? undefined : json['hasNewMarketstate'],
40
43
  };
41
44
  }
42
45
  export function ListingdataToJSON(value) {
@@ -52,8 +55,10 @@ export function ListingdataToJSON(value) {
52
55
  'endOfListing': value.endOfListing === undefined ? undefined : (value.endOfListing.toISOString().substr(0, 10)),
53
56
  'changedAt': value.changedAt === undefined ? undefined : (value.changedAt.toISOString()),
54
57
  'mic': value.mic,
58
+ 'quotationType': QuotationTypeToJSON(value.quotationType),
55
59
  'segmentMic': value.segmentMic,
56
60
  'cefFields': ListingdataCefFieldsToJSON(value.cefFields),
57
61
  't7Fields': ListingdataT7FieldsToJSON(value.t7Fields),
62
+ 'hasNewMarketstate': value.hasNewMarketstate,
58
63
  };
59
64
  }
@@ -14,6 +14,7 @@
14
14
  import { exists } from '../runtime';
15
15
  import { ListingdataCefFieldsFromJSON, ListingdataCefFieldsToJSON, } from './ListingdataCefFields';
16
16
  import { ListingdataT7FieldsFromJSON, ListingdataT7FieldsToJSON, } from './ListingdataT7Fields';
17
+ import { QuotationTypeFromJSON, QuotationTypeToJSON, } from './QuotationType';
17
18
  /**
18
19
  * Check if a given object implements the ListingdataWithId interface.
19
20
  */
@@ -38,9 +39,11 @@ export function ListingdataWithIdFromJSONTyped(json, ignoreDiscriminator) {
38
39
  'endOfListing': !exists(json, 'endOfListing') ? undefined : (new Date(json['endOfListing'])),
39
40
  'changedAt': !exists(json, 'changedAt') ? undefined : (new Date(json['changedAt'])),
40
41
  'mic': !exists(json, 'mic') ? undefined : json['mic'],
42
+ 'quotationType': !exists(json, 'quotationType') ? undefined : QuotationTypeFromJSON(json['quotationType']),
41
43
  'segmentMic': !exists(json, 'segmentMic') ? undefined : json['segmentMic'],
42
44
  'cefFields': !exists(json, 'cefFields') ? undefined : ListingdataCefFieldsFromJSON(json['cefFields']),
43
45
  't7Fields': !exists(json, 't7Fields') ? undefined : ListingdataT7FieldsFromJSON(json['t7Fields']),
46
+ 'hasNewMarketstate': !exists(json, 'hasNewMarketstate') ? undefined : json['hasNewMarketstate'],
44
47
  };
45
48
  }
46
49
  export function ListingdataWithIdToJSON(value) {
@@ -60,8 +63,10 @@ export function ListingdataWithIdToJSON(value) {
60
63
  'endOfListing': value.endOfListing === undefined ? undefined : (value.endOfListing.toISOString().substr(0, 10)),
61
64
  'changedAt': value.changedAt === undefined ? undefined : (value.changedAt.toISOString()),
62
65
  'mic': value.mic,
66
+ 'quotationType': QuotationTypeToJSON(value.quotationType),
63
67
  'segmentMic': value.segmentMic,
64
68
  'cefFields': ListingdataCefFieldsToJSON(value.cefFields),
65
69
  't7Fields': ListingdataT7FieldsToJSON(value.t7Fields),
70
+ 'hasNewMarketstate': value.hasNewMarketstate,
66
71
  };
67
72
  }
@@ -15,6 +15,7 @@ import { exists } from '../runtime';
15
15
  import { ListingdataCefFieldsFromJSON, ListingdataCefFieldsToJSON, } from './ListingdataCefFields';
16
16
  import { ListingdataT7FieldsFromJSON, ListingdataT7FieldsToJSON, } from './ListingdataT7Fields';
17
17
  import { QualityFromJSON, QualityToJSON, } from './Quality';
18
+ import { QuotationTypeFromJSON, QuotationTypeToJSON, } from './QuotationType';
18
19
  /**
19
20
  * Check if a given object implements the ListingdataWithIdAndQuality interface.
20
21
  */
@@ -39,9 +40,11 @@ export function ListingdataWithIdAndQualityFromJSONTyped(json, ignoreDiscriminat
39
40
  'endOfListing': !exists(json, 'endOfListing') ? undefined : (new Date(json['endOfListing'])),
40
41
  'changedAt': !exists(json, 'changedAt') ? undefined : (new Date(json['changedAt'])),
41
42
  'mic': !exists(json, 'mic') ? undefined : json['mic'],
43
+ 'quotationType': !exists(json, 'quotationType') ? undefined : QuotationTypeFromJSON(json['quotationType']),
42
44
  'segmentMic': !exists(json, 'segmentMic') ? undefined : json['segmentMic'],
43
45
  'cefFields': !exists(json, 'cefFields') ? undefined : ListingdataCefFieldsFromJSON(json['cefFields']),
44
46
  't7Fields': !exists(json, 't7Fields') ? undefined : ListingdataT7FieldsFromJSON(json['t7Fields']),
47
+ 'hasNewMarketstate': !exists(json, 'hasNewMarketstate') ? undefined : json['hasNewMarketstate'],
45
48
  'licensedQuality': !exists(json, 'licensedQuality') ? undefined : QualityFromJSON(json['licensedQuality']),
46
49
  };
47
50
  }
@@ -62,9 +65,11 @@ export function ListingdataWithIdAndQualityToJSON(value) {
62
65
  'endOfListing': value.endOfListing === undefined ? undefined : (value.endOfListing.toISOString().substr(0, 10)),
63
66
  'changedAt': value.changedAt === undefined ? undefined : (value.changedAt.toISOString()),
64
67
  'mic': value.mic,
68
+ 'quotationType': QuotationTypeToJSON(value.quotationType),
65
69
  'segmentMic': value.segmentMic,
66
70
  'cefFields': ListingdataCefFieldsToJSON(value.cefFields),
67
71
  't7Fields': ListingdataT7FieldsToJSON(value.t7Fields),
72
+ 'hasNewMarketstate': value.hasNewMarketstate,
68
73
  'licensedQuality': QualityToJSON(value.licensedQuality),
69
74
  };
70
75
  }
@@ -41,10 +41,13 @@ export function MarketstateFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'last': !exists(json, 'last') ? undefined : MarketstateTickFromJSON(json['last']),
42
42
  'bid': !exists(json, 'bid') ? undefined : MarketstateQuoteFromJSON(json['bid']),
43
43
  'ask': !exists(json, 'ask') ? undefined : MarketstateQuoteFromJSON(json['ask']),
44
+ 'retailBid': !exists(json, 'retailBid') ? undefined : MarketstateQuoteFromJSON(json['retailBid']),
45
+ 'retailAsk': !exists(json, 'retailAsk') ? undefined : MarketstateQuoteFromJSON(json['retailAsk']),
44
46
  'open': !exists(json, 'open') ? undefined : DayMarkDataFromJSON(json['open']),
45
47
  'high': !exists(json, 'high') ? undefined : DayMarkDataFromJSON(json['high']),
46
48
  'low': !exists(json, 'low') ? undefined : DayMarkDataFromJSON(json['low']),
47
49
  'close': !exists(json, 'close') ? undefined : DayMarkDataFromJSON(json['close']),
50
+ 'settlement': !exists(json, 'settlement') ? undefined : DayMarkDataFromJSON(json['settlement']),
48
51
  'previousClose': !exists(json, 'previousClose') ? undefined : DayMarkDataFromJSON(json['previousClose']),
49
52
  'officialClose': !exists(json, 'officialClose') ? undefined : DayMarkDataFromJSON(json['officialClose']),
50
53
  'previousOfficialClose': !exists(json, 'previousOfficialClose') ? undefined : DayMarkDataFromJSON(json['previousOfficialClose']),
@@ -71,10 +74,13 @@ export function MarketstateToJSON(value) {
71
74
  'last': MarketstateTickToJSON(value.last),
72
75
  'bid': MarketstateQuoteToJSON(value.bid),
73
76
  'ask': MarketstateQuoteToJSON(value.ask),
77
+ 'retailBid': MarketstateQuoteToJSON(value.retailBid),
78
+ 'retailAsk': MarketstateQuoteToJSON(value.retailAsk),
74
79
  'open': DayMarkDataToJSON(value.open),
75
80
  'high': DayMarkDataToJSON(value.high),
76
81
  'low': DayMarkDataToJSON(value.low),
77
82
  'close': DayMarkDataToJSON(value.close),
83
+ 'settlement': DayMarkDataToJSON(value.settlement),
78
84
  'previousClose': DayMarkDataToJSON(value.previousClose),
79
85
  'officialClose': DayMarkDataToJSON(value.officialClose),
80
86
  'previousOfficialClose': DayMarkDataToJSON(value.previousOfficialClose),
@@ -32,6 +32,7 @@ export function MarketstateQuoteFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return {
33
33
  'value': json['value'],
34
34
  'quantity': !exists(json, 'quantity') ? undefined : json['quantity'],
35
+ 'orderNo': !exists(json, 'orderNo') ? undefined : json['orderNo'],
35
36
  'date': !exists(json, 'date') ? undefined : (new Date(json['date'])),
36
37
  'datetime': !exists(json, 'datetime') ? undefined : (new Date(json['datetime'])),
37
38
  'supplement': !exists(json, 'supplement') ? undefined : LookupTableFromJSON(json['supplement']),
@@ -49,6 +50,7 @@ export function MarketstateQuoteToJSON(value) {
49
50
  return {
50
51
  'value': value.value,
51
52
  'quantity': value.quantity,
53
+ 'orderNo': value.orderNo,
52
54
  'date': value.date === undefined ? undefined : (value.date.toISOString().substr(0, 10)),
53
55
  'datetime': value.datetime === undefined ? undefined : (value.datetime.toISOString()),
54
56
  'supplement': LookupTableToJSON(value.supplement),
@@ -46,10 +46,13 @@ export function MarketstateResponseSearchFromJSONTyped(json, ignoreDiscriminator
46
46
  'last': !exists(json, 'last') ? undefined : MarketstateTickFromJSON(json['last']),
47
47
  'bid': !exists(json, 'bid') ? undefined : MarketstateQuoteFromJSON(json['bid']),
48
48
  'ask': !exists(json, 'ask') ? undefined : MarketstateQuoteFromJSON(json['ask']),
49
+ 'retailBid': !exists(json, 'retailBid') ? undefined : MarketstateQuoteFromJSON(json['retailBid']),
50
+ 'retailAsk': !exists(json, 'retailAsk') ? undefined : MarketstateQuoteFromJSON(json['retailAsk']),
49
51
  'open': !exists(json, 'open') ? undefined : DayMarkDataFromJSON(json['open']),
50
52
  'high': !exists(json, 'high') ? undefined : DayMarkDataFromJSON(json['high']),
51
53
  'low': !exists(json, 'low') ? undefined : DayMarkDataFromJSON(json['low']),
52
54
  'close': !exists(json, 'close') ? undefined : DayMarkDataFromJSON(json['close']),
55
+ 'settlement': !exists(json, 'settlement') ? undefined : DayMarkDataFromJSON(json['settlement']),
53
56
  'previousClose': !exists(json, 'previousClose') ? undefined : DayMarkDataFromJSON(json['previousClose']),
54
57
  'officialClose': !exists(json, 'officialClose') ? undefined : DayMarkDataFromJSON(json['officialClose']),
55
58
  'previousOfficialClose': !exists(json, 'previousOfficialClose') ? undefined : DayMarkDataFromJSON(json['previousOfficialClose']),
@@ -81,10 +84,13 @@ export function MarketstateResponseSearchToJSON(value) {
81
84
  'last': MarketstateTickToJSON(value.last),
82
85
  'bid': MarketstateQuoteToJSON(value.bid),
83
86
  'ask': MarketstateQuoteToJSON(value.ask),
87
+ 'retailBid': MarketstateQuoteToJSON(value.retailBid),
88
+ 'retailAsk': MarketstateQuoteToJSON(value.retailAsk),
84
89
  'open': DayMarkDataToJSON(value.open),
85
90
  'high': DayMarkDataToJSON(value.high),
86
91
  'low': DayMarkDataToJSON(value.low),
87
92
  'close': DayMarkDataToJSON(value.close),
93
+ 'settlement': DayMarkDataToJSON(value.settlement),
88
94
  'previousClose': DayMarkDataToJSON(value.previousClose),
89
95
  'officialClose': DayMarkDataToJSON(value.officialClose),
90
96
  'previousOfficialClose': DayMarkDataToJSON(value.previousOfficialClose),
@@ -36,6 +36,7 @@ export function MarketstateTickFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'turnover': !exists(json, 'turnover') ? undefined : json['turnover'],
37
37
  'tradingPhase': !exists(json, 'tradingPhase') ? undefined : json['tradingPhase'],
38
38
  'tradingStatus': !exists(json, 'tradingStatus') ? undefined : LookupTableFromJSON(json['tradingStatus']),
39
+ 'tradeIndicator': !exists(json, 'tradeIndicator') ? undefined : LookupTableFromJSON(json['tradeIndicator']),
39
40
  'tradeType': !exists(json, 'tradeType') ? undefined : LookupTableFromJSON(json['tradeType']),
40
41
  'supplement': !exists(json, 'supplement') ? undefined : LookupTableFromJSON(json['supplement']),
41
42
  'isIndicative': !exists(json, 'isIndicative') ? undefined : json['isIndicative'],
@@ -56,6 +57,7 @@ export function MarketstateTickToJSON(value) {
56
57
  'turnover': value.turnover,
57
58
  'tradingPhase': value.tradingPhase,
58
59
  'tradingStatus': LookupTableToJSON(value.tradingStatus),
60
+ 'tradeIndicator': LookupTableToJSON(value.tradeIndicator),
59
61
  'tradeType': LookupTableToJSON(value.tradeType),
60
62
  'supplement': LookupTableToJSON(value.supplement),
61
63
  'isIndicative': value.isIndicative,
@@ -45,10 +45,13 @@ export function MarketstateWithIdFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'last': !exists(json, 'last') ? undefined : MarketstateTickFromJSON(json['last']),
46
46
  'bid': !exists(json, 'bid') ? undefined : MarketstateQuoteFromJSON(json['bid']),
47
47
  'ask': !exists(json, 'ask') ? undefined : MarketstateQuoteFromJSON(json['ask']),
48
+ 'retailBid': !exists(json, 'retailBid') ? undefined : MarketstateQuoteFromJSON(json['retailBid']),
49
+ 'retailAsk': !exists(json, 'retailAsk') ? undefined : MarketstateQuoteFromJSON(json['retailAsk']),
48
50
  'open': !exists(json, 'open') ? undefined : DayMarkDataFromJSON(json['open']),
49
51
  'high': !exists(json, 'high') ? undefined : DayMarkDataFromJSON(json['high']),
50
52
  'low': !exists(json, 'low') ? undefined : DayMarkDataFromJSON(json['low']),
51
53
  'close': !exists(json, 'close') ? undefined : DayMarkDataFromJSON(json['close']),
54
+ 'settlement': !exists(json, 'settlement') ? undefined : DayMarkDataFromJSON(json['settlement']),
52
55
  'previousClose': !exists(json, 'previousClose') ? undefined : DayMarkDataFromJSON(json['previousClose']),
53
56
  'officialClose': !exists(json, 'officialClose') ? undefined : DayMarkDataFromJSON(json['officialClose']),
54
57
  'previousOfficialClose': !exists(json, 'previousOfficialClose') ? undefined : DayMarkDataFromJSON(json['previousOfficialClose']),
@@ -79,10 +82,13 @@ export function MarketstateWithIdToJSON(value) {
79
82
  'last': MarketstateTickToJSON(value.last),
80
83
  'bid': MarketstateQuoteToJSON(value.bid),
81
84
  'ask': MarketstateQuoteToJSON(value.ask),
85
+ 'retailBid': MarketstateQuoteToJSON(value.retailBid),
86
+ 'retailAsk': MarketstateQuoteToJSON(value.retailAsk),
82
87
  'open': DayMarkDataToJSON(value.open),
83
88
  'high': DayMarkDataToJSON(value.high),
84
89
  'low': DayMarkDataToJSON(value.low),
85
90
  'close': DayMarkDataToJSON(value.close),
91
+ 'settlement': DayMarkDataToJSON(value.settlement),
86
92
  'previousClose': DayMarkDataToJSON(value.previousClose),
87
93
  'officialClose': DayMarkDataToJSON(value.officialClose),
88
94
  'previousOfficialClose': DayMarkDataToJSON(value.previousOfficialClose),