@ariva-mds/mds
Version:
Stock market data
55 lines (54 loc) • 3.58 kB
JavaScript
/* 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.
*/
import { exists } from '../runtime';
import { OfficialSymbolsFromJSON, OfficialSymbolsToJSON, } from './OfficialSymbols';
/**
* Check if a given object implements the MasterdataWithId interface.
*/
export function instanceOfMasterdataWithId(value) {
let isInstance = true;
return isInstance;
}
export function MasterdataWithIdFromJSON(json) {
return MasterdataWithIdFromJSONTyped(json, false);
}
export function MasterdataWithIdFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'instrumentId': !exists(json, 'instrumentId') ? undefined : json['instrumentId'],
'officialSymbols': !exists(json, 'officialSymbols') ? undefined : OfficialSymbolsFromJSON(json['officialSymbols']),
'nameLong': !exists(json, 'nameLong') ? undefined : json['nameLong'],
'nameShort': !exists(json, 'nameShort') ? undefined : json['nameShort'],
'nominal': !exists(json, 'nominal') ? undefined : json['nominal'],
'interestRate': !exists(json, 'interestRate') ? undefined : json['interestRate'],
};
}
export function MasterdataWithIdToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'instrumentId': value.instrumentId,
'officialSymbols': OfficialSymbolsToJSON(value.officialSymbols),
'nameLong': value.nameLong,
'nameShort': value.nameShort,
'nominal': value.nominal,
'interestRate': value.interestRate,
};
}