UNPKG

@ariva-mds/mds

Version:

Stock market data

75 lines (74 loc) 5.82 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * MDS API * **This is a early preview in state alpha for MDS API. This means breaking changes can occur in future releases. <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 ListingId. Most information in MDS is linked to listings: Marketstate (prices/quotes), Tickdata (price/quote history), Performance data, ... <p> **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 ... <p> **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. * * The version of the OpenAPI document: 0.2.18-alpha * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SourcesSourceIdListingsGet200Response1ToJSON = exports.SourcesSourceIdListingsGet200Response1FromJSONTyped = exports.SourcesSourceIdListingsGet200Response1FromJSON = exports.instanceOfSourcesSourceIdListingsGet200Response1 = void 0; const runtime_1 = require("../runtime"); const ListingdataCefFields_1 = require("./ListingdataCefFields"); const ListingdataT7Fields_1 = require("./ListingdataT7Fields"); /** * Check if a given object implements the SourcesSourceIdListingsGet200Response1 interface. */ function instanceOfSourcesSourceIdListingsGet200Response1(value) { let isInstance = true; return isInstance; } exports.instanceOfSourcesSourceIdListingsGet200Response1 = instanceOfSourcesSourceIdListingsGet200Response1; function SourcesSourceIdListingsGet200Response1FromJSON(json) { return SourcesSourceIdListingsGet200Response1FromJSONTyped(json, false); } exports.SourcesSourceIdListingsGet200Response1FromJSON = SourcesSourceIdListingsGet200Response1FromJSON; function SourcesSourceIdListingsGet200Response1FromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'marketstateId': !(0, runtime_1.exists)(json, 'marketstateId') ? undefined : json['marketstateId'], 'instrumentId': !(0, runtime_1.exists)(json, 'instrumentId') ? undefined : json['instrumentId'], 'sourceId': !(0, runtime_1.exists)(json, 'sourceId') ? undefined : json['sourceId'], 'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'], 'listingVariant': !(0, runtime_1.exists)(json, 'listingVariant') ? undefined : json['listingVariant'], 'startOfListing': !(0, runtime_1.exists)(json, 'startOfListing') ? undefined : (new Date(json['startOfListing'])), 'endOfListing': !(0, runtime_1.exists)(json, 'endOfListing') ? undefined : (new Date(json['endOfListing'])), 'changedAt': !(0, runtime_1.exists)(json, 'changedAt') ? undefined : (new Date(json['changedAt'])), 'mic': !(0, runtime_1.exists)(json, 'mic') ? undefined : json['mic'], 'segmentMic': !(0, runtime_1.exists)(json, 'segmentMic') ? undefined : json['segmentMic'], 'cefFields': !(0, runtime_1.exists)(json, 'cefFields') ? undefined : (0, ListingdataCefFields_1.ListingdataCefFieldsFromJSON)(json['cefFields']), 't7Fields': !(0, runtime_1.exists)(json, 't7Fields') ? undefined : (0, ListingdataT7Fields_1.ListingdataT7FieldsFromJSON)(json['t7Fields']), }; } exports.SourcesSourceIdListingsGet200Response1FromJSONTyped = SourcesSourceIdListingsGet200Response1FromJSONTyped; function SourcesSourceIdListingsGet200Response1ToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'marketstateId': value.marketstateId, 'instrumentId': value.instrumentId, 'sourceId': value.sourceId, 'currency': value.currency, 'listingVariant': value.listingVariant, 'startOfListing': value.startOfListing === undefined ? undefined : (value.startOfListing.toISOString().substr(0, 10)), 'endOfListing': value.endOfListing === undefined ? undefined : (value.endOfListing.toISOString().substr(0, 10)), 'changedAt': value.changedAt === undefined ? undefined : (value.changedAt.toISOString()), 'mic': value.mic, 'segmentMic': value.segmentMic, 'cefFields': (0, ListingdataCefFields_1.ListingdataCefFieldsToJSON)(value.cefFields), 't7Fields': (0, ListingdataT7Fields_1.ListingdataT7FieldsToJSON)(value.t7Fields), }; } exports.SourcesSourceIdListingsGet200Response1ToJSON = SourcesSourceIdListingsGet200Response1ToJSON;