/* tslint:disable */ /* eslint-disable */ /** * Finnhub API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from './configuration' import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios' // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common' // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base' /** * * @export * @interface AggregateIndicators */ export interface AggregateIndicators { /** * * @type {TechnicalAnalysis} * @memberof AggregateIndicators */ technicalAnalysis?: TechnicalAnalysis /** * * @type {Trend} * @memberof AggregateIndicators */ trend?: Trend } /** * * @export * @interface BasicFinancials */ export interface BasicFinancials { /** * Symbol of the company. * @type {string} * @memberof BasicFinancials */ symbol?: string /** * Metric type. * @type {string} * @memberof BasicFinancials */ metricType?: string /** * * @type {object} * @memberof BasicFinancials */ series?: object /** * * @type {object} * @memberof BasicFinancials */ metric?: object } /** * * @export * @interface BondCandles */ export interface BondCandles { /** * List of close prices for returned candles. * @type {Array} * @memberof BondCandles */ c?: Array /** * List of timestamp for returned candles. * @type {Array} * @memberof BondCandles */ t?: Array /** * Status of the response. This field can either be ok or no_data. * @type {string} * @memberof BondCandles */ s?: string } /** * * @export * @interface BondProfile */ export interface BondProfile { /** * ISIN. * @type {string} * @memberof BondProfile */ isin?: string /** * Cusip. * @type {string} * @memberof BondProfile */ cusip?: string /** * FIGI. * @type {string} * @memberof BondProfile */ figi?: string /** * Coupon. * @type {number} * @memberof BondProfile */ coupon?: number /** * Period. * @type {string} * @memberof BondProfile */ maturityDate?: string /** * Offering price. * @type {number} * @memberof BondProfile */ offeringPrice?: number /** * Issue date. * @type {string} * @memberof BondProfile */ issueDate?: string /** * Bond type. * @type {string} * @memberof BondProfile */ bondType?: string /** * Bond type. * @type {string} * @memberof BondProfile */ debtType?: string /** * Industry. * @type {string} * @memberof BondProfile */ industryGroup?: string /** * Sub-Industry. * @type {string} * @memberof BondProfile */ industrySubGroup?: string /** * Asset. * @type {string} * @memberof BondProfile */ asset?: string /** * Asset. * @type {string} * @memberof BondProfile */ assetType?: string /** * Dated date. * @type {string} * @memberof BondProfile */ datedDate?: string /** * First coupon date. * @type {string} * @memberof BondProfile */ firstCouponDate?: string /** * Offering amount. * @type {number} * @memberof BondProfile */ originalOffering?: number /** * Outstanding amount. * @type {number} * @memberof BondProfile */ amountOutstanding?: number /** * Payment frequency. * @type {string} * @memberof BondProfile */ paymentFrequency?: string /** * Security level. * @type {string} * @memberof BondProfile */ securityLevel?: string /** * Callable. * @type {boolean} * @memberof BondProfile */ callable?: boolean /** * Coupon type. * @type {string} * @memberof BondProfile */ couponType?: string } /** * * @export * @interface BreakdownItem */ export interface BreakdownItem { /** * Access number of the report from which the data is sourced. * @type {string} * @memberof BreakdownItem */ accessNumber?: string /** * * @type {object} * @memberof BreakdownItem */ breakdown?: object } /** * * @export * @interface Company */ export interface Company { /** * Executive name * @type {string} * @memberof Company */ name?: string /** * Age * @type {number} * @memberof Company */ age?: number /** * Title * @type {string} * @memberof Company */ title?: string /** * Year first appointed as executive/director of the company * @type {string} * @memberof Company */ since?: string /** * Sex * @type {string} * @memberof Company */ sex?: string /** * Total compensation * @type {number} * @memberof Company */ compensation?: number /** * Compensation currency * @type {string} * @memberof Company */ currency?: string } /** * * @export * @interface CompanyESG */ export interface CompanyESG { /** * symbol * @type {string} * @memberof CompanyESG */ symbol?: string /** * Total ESG Score * @type {number} * @memberof CompanyESG */ totalESGScore?: number /** * Environment Score * @type {number} * @memberof CompanyESG */ environmentScore?: number /** * Governance Score * @type {number} * @memberof CompanyESG */ governanceScore?: number /** * Social Score * @type {number} * @memberof CompanyESG */ socialScore?: number /** * * @type {object} * @memberof CompanyESG */ data?: object } /** * * @export * @interface CompanyEarningsQualityScore */ export interface CompanyEarningsQualityScore { /** * Symbol * @type {string} * @memberof CompanyEarningsQualityScore */ symbol?: string /** * Frequency * @type {string} * @memberof CompanyEarningsQualityScore */ freq?: string /** * Array of earnings quality score. * @type {Array} * @memberof CompanyEarningsQualityScore */ data?: Array } /** * * @export * @interface CompanyEarningsQualityScoreData */ export interface CompanyEarningsQualityScoreData { /** * Period * @type {string} * @memberof CompanyEarningsQualityScoreData */ period?: string /** * Growth Score * @type {number} * @memberof CompanyEarningsQualityScoreData */ growth?: number /** * Profitability Score * @type {number} * @memberof CompanyEarningsQualityScoreData */ profitability?: number /** * Cash Generation and Capital Allocation * @type {number} * @memberof CompanyEarningsQualityScoreData */ cashGenerationCapitalAllocation?: number /** * Leverage Score * @type {number} * @memberof CompanyEarningsQualityScoreData */ leverage?: number /** * Total Score * @type {number} * @memberof CompanyEarningsQualityScoreData */ score?: number /** * Letter Score * @type {string} * @memberof CompanyEarningsQualityScoreData */ letterScore?: string } /** * * @export * @interface CompanyExecutive */ export interface CompanyExecutive { /** * Company symbol. * @type {string} * @memberof CompanyExecutive */ symbol?: string /** * Array of company\'s executives and members of the Board. * @type {Array} * @memberof CompanyExecutive */ executive?: Array } /** * * @export * @interface CompanyNews */ export interface CompanyNews { /** * News category. * @type {string} * @memberof CompanyNews */ category?: string /** * Published time in UNIX timestamp. * @type {number} * @memberof CompanyNews */ datetime?: number /** * News headline. * @type {string} * @memberof CompanyNews */ headline?: string /** * News ID. This value can be used for minId params to get the latest news only. * @type {number} * @memberof CompanyNews */ id?: number /** * Thumbnail image URL. * @type {string} * @memberof CompanyNews */ image?: string /** * Related stocks and companies mentioned in the article. * @type {string} * @memberof CompanyNews */ related?: string /** * News source. * @type {string} * @memberof CompanyNews */ source?: string /** * News summary. * @type {string} * @memberof CompanyNews */ summary?: string /** * URL of the original article. * @type {string} * @memberof CompanyNews */ url?: string } /** * * @export * @interface CompanyNewsStatistics */ export interface CompanyNewsStatistics { /** * * @type {number} * @memberof CompanyNewsStatistics */ articlesInLastWeek?: number /** * * @type {number} * @memberof CompanyNewsStatistics */ buzz?: number /** * * @type {number} * @memberof CompanyNewsStatistics */ weeklyAverage?: number } /** * * @export * @interface CompanyProfile */ export interface CompanyProfile { /** * Address of company\'s headquarter. * @type {string} * @memberof CompanyProfile */ address?: string /** * City of company\'s headquarter. * @type {string} * @memberof CompanyProfile */ city?: string /** * Country of company\'s headquarter. * @type {string} * @memberof CompanyProfile */ country?: string /** * Currency used in company filings. * @type {string} * @memberof CompanyProfile */ currency?: string /** * CUSIP number. * @type {string} * @memberof CompanyProfile */ cusip?: string /** * Sedol number. * @type {string} * @memberof CompanyProfile */ sedol?: string /** * Company business summary. * @type {string} * @memberof CompanyProfile */ description?: string /** * Listed exchange. * @type {string} * @memberof CompanyProfile */ exchange?: string /** * Industry group. * @type {string} * @memberof CompanyProfile */ ggroup?: string /** * Industry. * @type {string} * @memberof CompanyProfile */ gind?: string /** * Sector. * @type {string} * @memberof CompanyProfile */ gsector?: string /** * Sub-industry. * @type {string} * @memberof CompanyProfile */ gsubind?: string /** * ISIN number. * @type {string} * @memberof CompanyProfile */ isin?: string /** * NAICS national industry. * @type {string} * @memberof CompanyProfile */ naicsNationalIndustry?: string /** * NAICS industry. * @type {string} * @memberof CompanyProfile */ naics?: string /** * NAICS sector. * @type {string} * @memberof CompanyProfile */ naicsSector?: string /** * NAICS subsector. * @type {string} * @memberof CompanyProfile */ naicsSubsector?: string /** * Company name. * @type {string} * @memberof CompanyProfile */ name?: string /** * Company phone number. * @type {string} * @memberof CompanyProfile */ phone?: string /** * State of company\'s headquarter. * @type {string} * @memberof CompanyProfile */ state?: string /** * Company symbol/ticker as used on the listed exchange. * @type {string} * @memberof CompanyProfile */ ticker?: string /** * Company website. * @type {string} * @memberof CompanyProfile */ weburl?: string /** * IPO date. * @type {string} * @memberof CompanyProfile */ ipo?: string /** * Market Capitalization. * @type {number} * @memberof CompanyProfile */ marketCapitalization?: number /** * Number of oustanding shares. * @type {number} * @memberof CompanyProfile */ shareOutstanding?: number /** * Number of employee. * @type {number} * @memberof CompanyProfile */ employeeTotal?: number /** * Logo image. * @type {string} * @memberof CompanyProfile */ logo?: string /** * Finnhub industry classification. * @type {string} * @memberof CompanyProfile */ finnhubIndustry?: string } /** * * @export * @interface CompanyProfile2 */ export interface CompanyProfile2 { /** * Country of company\'s headquarter. * @type {string} * @memberof CompanyProfile2 */ country?: string /** * Currency used in company filings. * @type {string} * @memberof CompanyProfile2 */ currency?: string /** * Listed exchange. * @type {string} * @memberof CompanyProfile2 */ exchange?: string /** * Company name. * @type {string} * @memberof CompanyProfile2 */ name?: string /** * Company symbol/ticker as used on the listed exchange. * @type {string} * @memberof CompanyProfile2 */ ticker?: string /** * IPO date. * @type {string} * @memberof CompanyProfile2 */ ipo?: string /** * Market Capitalization. * @type {number} * @memberof CompanyProfile2 */ marketCapitalization?: number /** * Number of oustanding shares. * @type {number} * @memberof CompanyProfile2 */ shareOutstanding?: number /** * Logo image. * @type {string} * @memberof CompanyProfile2 */ logo?: string /** * Company phone number. * @type {string} * @memberof CompanyProfile2 */ phone?: string /** * Company website. * @type {string} * @memberof CompanyProfile2 */ weburl?: string /** * Finnhub industry classification. * @type {string} * @memberof CompanyProfile2 */ finnhubIndustry?: string } /** * * @export * @interface CountryMetadata */ export interface CountryMetadata { /** * Country name * @type {string} * @memberof CountryMetadata */ country?: string /** * Alpha 2 code * @type {string} * @memberof CountryMetadata */ code2?: string /** * Alpha 3 code * @type {string} * @memberof CountryMetadata */ code3?: string /** * UN code * @type {string} * @memberof CountryMetadata */ codeNo?: string /** * Currency name * @type {string} * @memberof CountryMetadata */ currency?: string /** * Currency code * @type {string} * @memberof CountryMetadata */ currencyCode?: string /** * Region * @type {string} * @memberof CountryMetadata */ region?: string /** * Sub-Region * @type {string} * @memberof CountryMetadata */ subRegion?: string } /** * * @export * @interface CovidInfo */ export interface CovidInfo { /** * State. * @type {string} * @memberof CovidInfo */ state?: string /** * Number of confirmed cases. * @type {number} * @memberof CovidInfo */ case?: number /** * Number of confirmed deaths. * @type {number} * @memberof CovidInfo */ death?: number /** * Updated time. * @type {string} * @memberof CovidInfo */ updated?: string } /** * * @export * @interface CryptoCandles */ export interface CryptoCandles { /** * List of open prices for returned candles. * @type {Array} * @memberof CryptoCandles */ o?: Array /** * List of high prices for returned candles. * @type {Array} * @memberof CryptoCandles */ h?: Array /** * List of low prices for returned candles. * @type {Array} * @memberof CryptoCandles */ l?: Array /** * List of close prices for returned candles. * @type {Array} * @memberof CryptoCandles */ c?: Array /** * List of volume data for returned candles. * @type {Array} * @memberof CryptoCandles */ v?: Array /** * List of timestamp for returned candles. * @type {Array} * @memberof CryptoCandles */ t?: Array /** * Status of the response. This field can either be ok or no_data. * @type {string} * @memberof CryptoCandles */ s?: string } /** * * @export * @interface CryptoProfile */ export interface CryptoProfile { /** * Long name. * @type {string} * @memberof CryptoProfile */ longName?: string /** * Name. * @type {string} * @memberof CryptoProfile */ name?: string /** * Description. * @type {string} * @memberof CryptoProfile */ description?: string /** * Project\'s website. * @type {string} * @memberof CryptoProfile */ website?: string /** * Market capitalization. * @type {number} * @memberof CryptoProfile */ marketCap?: number /** * Total supply. * @type {number} * @memberof CryptoProfile */ totalSupply?: number /** * Max supply. * @type {number} * @memberof CryptoProfile */ maxSupply?: number /** * Circulating supply. * @type {number} * @memberof CryptoProfile */ circulatingSupply?: number /** * Logo image. * @type {string} * @memberof CryptoProfile */ logo?: string /** * Launch date. * @type {string} * @memberof CryptoProfile */ launchDate?: string /** * Proof type. * @type {string} * @memberof CryptoProfile */ proofType?: string } /** * * @export * @interface CryptoSymbol */ export interface CryptoSymbol { /** * Symbol description * @type {string} * @memberof CryptoSymbol */ description?: string /** * Display symbol name. * @type {string} * @memberof CryptoSymbol */ displaySymbol?: string /** * Unique symbol used to identify this symbol used in /crypto/candle endpoint. * @type {string} * @memberof CryptoSymbol */ symbol?: string } /** * * @export * @interface Development */ export interface Development { /** * Company symbol. * @type {string} * @memberof Development */ symbol?: string /** * Published time in YYYY-MM-DD HH:MM:SS format. * @type {string} * @memberof Development */ datetime?: string /** * Development headline. * @type {string} * @memberof Development */ headline?: string /** * Development description. * @type {string} * @memberof Development */ description?: string /** * URL. * @type {string} * @memberof Development */ url?: string } /** * * @export * @interface Dividends */ export interface Dividends { /** * Symbol. * @type {string} * @memberof Dividends */ symbol?: string /** * Ex-Dividend date. * @type {string} * @memberof Dividends */ date?: string /** * Amount in local currency. * @type {number} * @memberof Dividends */ amount?: number /** * Adjusted dividend. * @type {number} * @memberof Dividends */ adjustedAmount?: number /** * Pay date. * @type {string} * @memberof Dividends */ payDate?: string /** * Record date. * @type {string} * @memberof Dividends */ recordDate?: string /** * Declaration date. * @type {string} * @memberof Dividends */ declarationDate?: string /** * Currency. * @type {string} * @memberof Dividends */ currency?: string } /** * * @export * @interface Dividends2 */ export interface Dividends2 { /** * Symbol * @type {string} * @memberof Dividends2 */ symbol?: string /** * * @type {Array} * @memberof Dividends2 */ data?: Array } /** * * @export * @interface Dividends2Info */ export interface Dividends2Info { /** * Ex-Dividend date. * @type {string} * @memberof Dividends2Info */ exDate?: string /** * Amount in local currency. * @type {number} * @memberof Dividends2Info */ amount?: number } /** * * @export * @interface ETFCountryExposureData */ export interface ETFCountryExposureData { /** * Country * @type {string} * @memberof ETFCountryExposureData */ country?: string /** * Percent of exposure. * @type {number} * @memberof ETFCountryExposureData */ exposure?: number } /** * * @export * @interface ETFHoldingsData */ export interface ETFHoldingsData { /** * Symbol description * @type {string} * @memberof ETFHoldingsData */ symbol?: string /** * Security name * @type {string} * @memberof ETFHoldingsData */ name?: string /** * ISIN. * @type {string} * @memberof ETFHoldingsData */ isin?: string /** * CUSIP. * @type {string} * @memberof ETFHoldingsData */ cusip?: string /** * Number of shares owned by the ETF. * @type {number} * @memberof ETFHoldingsData */ share?: number /** * Portfolio\'s percent * @type {number} * @memberof ETFHoldingsData */ percent?: number /** * Market value * @type {number} * @memberof ETFHoldingsData */ value?: number } /** * * @export * @interface ETFProfileData */ export interface ETFProfileData { /** * Name * @type {string} * @memberof ETFProfileData */ name?: string /** * Asset Class. * @type {string} * @memberof ETFProfileData */ assetClass?: string /** * Investment Segment. * @type {string} * @memberof ETFProfileData */ investmentSegment?: string /** * AUM. * @type {number} * @memberof ETFProfileData */ aum?: number /** * NAV. * @type {number} * @memberof ETFProfileData */ nav?: number /** * NAV currency. * @type {string} * @memberof ETFProfileData */ navCurrency?: string /** * Expense ratio. * @type {number} * @memberof ETFProfileData */ expenseRatio?: number /** * Tracking Index. * @type {string} * @memberof ETFProfileData */ trackingIndex?: string /** * ETF issuer. * @type {string} * @memberof ETFProfileData */ etfCompany?: string /** * ETF domicile. * @type {string} * @memberof ETFProfileData */ domicile?: string /** * Inception date. * @type {string} * @memberof ETFProfileData */ inceptionDate?: string /** * ETF\'s website. * @type {string} * @memberof ETFProfileData */ website?: string /** * ISIN. * @type {string} * @memberof ETFProfileData */ isin?: string /** * CUSIP. * @type {string} * @memberof ETFProfileData */ cusip?: string /** * P/E. * @type {number} * @memberof ETFProfileData */ priceToEarnings?: number /** * P/B. * @type {number} * @memberof ETFProfileData */ priceToBook?: number /** * 30-day average volume. * @type {number} * @memberof ETFProfileData */ avgVolume?: number /** * ETF\'s description. * @type {string} * @memberof ETFProfileData */ description?: string } /** * * @export * @interface ETFSectorExposureData */ export interface ETFSectorExposureData { /** * Industry * @type {string} * @memberof ETFSectorExposureData */ industry?: string /** * Percent of exposure. * @type {number} * @memberof ETFSectorExposureData */ exposure?: number } /** * * @export * @interface ETFsCountryExposure */ export interface ETFsCountryExposure { /** * ETF symbol. * @type {string} * @memberof ETFsCountryExposure */ symbol?: string /** * Array of countries and and exposure levels. * @type {Array} * @memberof ETFsCountryExposure */ countryExposure?: Array } /** * * @export * @interface ETFsHoldings */ export interface ETFsHoldings { /** * ETF symbol. * @type {string} * @memberof ETFsHoldings */ symbol?: string /** * Holdings update date. * @type {string} * @memberof ETFsHoldings */ atDate?: string /** * Number of holdings. * @type {number} * @memberof ETFsHoldings */ numberOfHoldings?: number /** * Array of holdings. * @type {Array} * @memberof ETFsHoldings */ holdings?: Array } /** * * @export * @interface ETFsProfile */ export interface ETFsProfile { /** * Symbol. * @type {string} * @memberof ETFsProfile */ symbol?: string /** * * @type {ETFProfileData} * @memberof ETFsProfile */ profile?: ETFProfileData } /** * * @export * @interface ETFsSectorExposure */ export interface ETFsSectorExposure { /** * ETF symbol. * @type {string} * @memberof ETFsSectorExposure */ symbol?: string /** * Array of industries and exposure levels. * @type {Array} * @memberof ETFsSectorExposure */ sectorExposure?: Array } /** * * @export * @interface EarningRelease */ export interface EarningRelease { /** * Symbol. * @type {string} * @memberof EarningRelease */ symbol?: string /** * Date. * @type {string} * @memberof EarningRelease */ date?: string /** * Indicates whether the earnings is announced before market open(bmo), after market close(amc), or during market hour(dmh). * @type {string} * @memberof EarningRelease */ hour?: string /** * Earnings year. * @type {number} * @memberof EarningRelease */ year?: number /** * Earnings quarter. * @type {number} * @memberof EarningRelease */ quarter?: number /** * EPS estimate. * @type {number} * @memberof EarningRelease */ epsEstimate?: number /** * EPS actual. * @type {number} * @memberof EarningRelease */ epsActual?: number /** * Revenue estimate including Finnhub\'s proprietary estimates. * @type {number} * @memberof EarningRelease */ revenueEstimate?: number /** * Revenue actual. * @type {number} * @memberof EarningRelease */ revenueActual?: number } /** * * @export * @interface EarningResult */ export interface EarningResult { /** * Actual earning result. * @type {number} * @memberof EarningResult */ actual?: number /** * Estimated earning. * @type {number} * @memberof EarningResult */ estimate?: number /** * Surprise - The difference between actual and estimate. * @type {number} * @memberof EarningResult */ surprise?: number /** * Surprise percent. * @type {number} * @memberof EarningResult */ surprisePercent?: number /** * Reported period. * @type {string} * @memberof EarningResult */ period?: string /** * Company symbol. * @type {string} * @memberof EarningResult */ symbol?: string } /** * * @export * @interface EarningsCalendar */ export interface EarningsCalendar { /** * Array of earnings release. * @type {Array} * @memberof EarningsCalendar */ earningsCalendar?: Array } /** * * @export * @interface EarningsCallTranscripts */ export interface EarningsCallTranscripts { /** * Company symbol. * @type {string} * @memberof EarningsCallTranscripts */ symbol?: string /** * Transcript content. * @type {Array} * @memberof EarningsCallTranscripts */ transcript?: Array /** * Participant list * @type {Array} * @memberof EarningsCallTranscripts */ participant?: Array /** * Audio link. * @type {string} * @memberof EarningsCallTranscripts */ audio?: string /** * Transcript\'s ID. * @type {string} * @memberof EarningsCallTranscripts */ id?: string /** * Title. * @type {string} * @memberof EarningsCallTranscripts */ title?: string /** * Time of the event. * @type {string} * @memberof EarningsCallTranscripts */ time?: string /** * Year of earnings result in the case of earnings call transcript. * @type {number} * @memberof EarningsCallTranscripts */ year?: number /** * Quarter of earnings result in the case of earnings call transcript. * @type {number} * @memberof EarningsCallTranscripts */ quarter?: number } /** * * @export * @interface EarningsCallTranscriptsList */ export interface EarningsCallTranscriptsList { /** * Company symbol. * @type {string} * @memberof EarningsCallTranscriptsList */ symbol?: string /** * Array of transcripts\' metadata * @type {Array} * @memberof EarningsCallTranscriptsList */ transcripts?: Array } /** * * @export * @interface EarningsEstimates */ export interface EarningsEstimates { /** * List of estimates * @type {Array} * @memberof EarningsEstimates */ data?: Array /** * Frequency: annual or quarterly. * @type {string} * @memberof EarningsEstimates */ freq?: string /** * Company symbol. * @type {string} * @memberof EarningsEstimates */ symbol?: string } /** * * @export * @interface EarningsEstimatesInfo */ export interface EarningsEstimatesInfo { /** * Average EPS estimates including Finnhub\'s proprietary estimates. * @type {number} * @memberof EarningsEstimatesInfo */ epsAvg?: number /** * Highest estimate. * @type {number} * @memberof EarningsEstimatesInfo */ epsHigh?: number /** * Lowest estimate. * @type {number} * @memberof EarningsEstimatesInfo */ epsLow?: number /** * Number of Analysts. * @type {number} * @memberof EarningsEstimatesInfo */ numberAnalysts?: number /** * Period. * @type {string} * @memberof EarningsEstimatesInfo */ period?: string } /** * * @export * @interface EbitEstimates */ export interface EbitEstimates { /** * List of estimates * @type {Array} * @memberof EbitEstimates */ data?: Array /** * Frequency: annual or quarterly. * @type {string} * @memberof EbitEstimates */ freq?: string /** * Company symbol. * @type {string} * @memberof EbitEstimates */ symbol?: string } /** * * @export * @interface EbitEstimatesInfo */ export interface EbitEstimatesInfo { /** * Average EBIT estimates including Finnhub\'s proprietary estimates. * @type {number} * @memberof EbitEstimatesInfo */ ebitAvg?: number /** * Highest estimate. * @type {number} * @memberof EbitEstimatesInfo */ ebitHigh?: number /** * Lowest estimate. * @type {number} * @memberof EbitEstimatesInfo */ ebitLow?: number /** * Number of Analysts. * @type {number} * @memberof EbitEstimatesInfo */ numberAnalysts?: number /** * Period. * @type {string} * @memberof EbitEstimatesInfo */ period?: string } /** * * @export * @interface EbitdaEstimates */ export interface EbitdaEstimates { /** * List of estimates * @type {Array} * @memberof EbitdaEstimates */ data?: Array /** * Frequency: annual or quarterly. * @type {string} * @memberof EbitdaEstimates */ freq?: string /** * Company symbol. * @type {string} * @memberof EbitdaEstimates */ symbol?: string } /** * * @export * @interface EbitdaEstimatesInfo */ export interface EbitdaEstimatesInfo { /** * Average EBITDA estimates including Finnhub\'s proprietary estimates. * @type {number} * @memberof EbitdaEstimatesInfo */ ebitdaAvg?: number /** * Highest estimate. * @type {number} * @memberof EbitdaEstimatesInfo */ ebitdaHigh?: number /** * Lowest estimate. * @type {number} * @memberof EbitdaEstimatesInfo */ ebitdaLow?: number /** * Number of Analysts. * @type {number} * @memberof EbitdaEstimatesInfo */ numberAnalysts?: number /** * Period. * @type {string} * @memberof EbitdaEstimatesInfo */ period?: string } /** * * @export * @interface Economic event */ export interface Economic { /** * Actual release * @type {number} * @memberof Economic event */ actual?: number /** * Previous release * @type {number} * @memberof Economic event */ prev?: number /** * Country * @type {string} * @memberof Economic event */ country?: string /** * Unit * @type {string} * @memberof Economic event */ unit?: string /** * Estimate * @type {number} * @memberof Economic event */ estimate?: number /** * Event * @type {string} * @memberof Economic event */ event?: string /** * Impact level * @type {string} * @memberof Economic event */ impact?: string /** * Release time * @type {string} * @memberof Economic event */ time?: string } /** * * @export * @interface EconomicCalendar */ export interface EconomicCalendar { /** * Array of economic events. * @type {Array} * @memberof EconomicCalendar */ economicCalendar?: Array } /** * * @export * @interface EconomicCode */ export interface EconomicCode { /** * Finnhub economic code used to get historical data * @type {string} * @memberof EconomicCode */ code?: string /** * Country * @type {string} * @memberof EconomicCode */ country?: string /** * Indicator name * @type {string} * @memberof EconomicCode */ name?: string /** * Unit * @type {string} * @memberof EconomicCode */ unit?: string } /** * * @export * @interface EconomicData */ export interface EconomicData { /** * Array of economic data for requested code. * @type {Array} * @memberof EconomicData */ data?: Array /** * Finnhub economic code * @type {string} * @memberof EconomicData */ code?: string } /** * * @export * @interface EconomicDataInfo */ export interface EconomicDataInfo { /** * Date of the reading * @type {string} * @memberof EconomicDataInfo */ date?: string /** * Value * @type {number} * @memberof EconomicDataInfo */ value?: number } /** * * @export * @interface FDAComitteeMeeting */ export interface FDAComitteeMeeting { /** * Start time of the event in EST. * @type {string} * @memberof FDAComitteeMeeting */ fromDate?: string /** * End time of the event in EST. * @type {string} * @memberof FDAComitteeMeeting */ toDate?: string /** * Event\'s description. * @type {string} * @memberof FDAComitteeMeeting */ eventDescription?: string /** * URL. * @type {string} * @memberof FDAComitteeMeeting */ url?: string } /** * * @export * @interface Filing */ export interface Filing { /** * Access number. * @type {string} * @memberof Filing */ accessNumber?: string /** * Symbol. * @type {string} * @memberof Filing */ symbol?: string /** * CIK. * @type {string} * @memberof Filing */ cik?: string /** * Form type. * @type {string} * @memberof Filing */ form?: string /** * Filed date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof Filing */ filedDate?: string /** * Accepted date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof Filing */ acceptedDate?: string /** * Report\'s URL. * @type {string} * @memberof Filing */ reportUrl?: string /** * Filing\'s URL. * @type {string} * @memberof Filing */ filingUrl?: string } /** * * @export * @interface FilingSentiment */ export interface FilingSentiment { /** * % of negative words in the filing. * @type {number} * @memberof FilingSentiment */ negative?: number /** * % of positive words in the filing. * @type {number} * @memberof FilingSentiment */ positive?: number /** * % of polarity words in the filing. * @type {number} * @memberof FilingSentiment */ polarity?: number /** * % of litigious words in the filing. * @type {number} * @memberof FilingSentiment */ litigious?: number /** * % of uncertainty words in the filing. * @type {number} * @memberof FilingSentiment */ uncertainty?: number /** * % of constraining words in the filing. * @type {number} * @memberof FilingSentiment */ constraining?: number /** * % of modal-weak words in the filing. * @type {number} * @memberof FilingSentiment */ 'modal-weak'?: number /** * % of modal-strong words in the filing. * @type {number} * @memberof FilingSentiment */ 'modal-strong'?: number /** * % of modal-moderate words in the filing. * @type {number} * @memberof FilingSentiment */ 'modal-moderate'?: number } /** * * @export * @interface FinancialStatements */ export interface FinancialStatements { /** * Symbol of the company. * @type {string} * @memberof FinancialStatements */ symbol?: string /** * An array of map of key, value pairs containing the data for each period. * @type {Array} * @memberof FinancialStatements */ financials?: Array } /** * * @export * @interface FinancialsAsReported */ export interface FinancialsAsReported { /** * Symbol * @type {string} * @memberof FinancialsAsReported */ symbol?: string /** * CIK * @type {string} * @memberof FinancialsAsReported */ cik?: string /** * Array of filings. * @type {Array} * @memberof FinancialsAsReported */ data?: Array } /** * * @export * @interface ForexCandles */ export interface ForexCandles { /** * List of open prices for returned candles. * @type {Array} * @memberof ForexCandles */ o?: Array /** * List of high prices for returned candles. * @type {Array} * @memberof ForexCandles */ h?: Array /** * List of low prices for returned candles. * @type {Array} * @memberof ForexCandles */ l?: Array /** * List of close prices for returned candles. * @type {Array} * @memberof ForexCandles */ c?: Array /** * List of volume data for returned candles. * @type {Array} * @memberof ForexCandles */ v?: Array /** * List of timestamp for returned candles. * @type {Array} * @memberof ForexCandles */ t?: Array /** * Status of the response. This field can either be ok or no_data. * @type {string} * @memberof ForexCandles */ s?: string } /** * * @export * @interface ForexSymbol */ export interface ForexSymbol { /** * Symbol description * @type {string} * @memberof ForexSymbol */ description?: string /** * Display symbol name. * @type {string} * @memberof ForexSymbol */ displaySymbol?: string /** * Unique symbol used to identify this symbol used in /forex/candle endpoint. * @type {string} * @memberof ForexSymbol */ symbol?: string } /** * * @export * @interface Forexrates */ export interface Forexrates { /** * Base currency. * @type {string} * @memberof Forexrates */ base?: string /** * * @type {object} * @memberof Forexrates */ quote?: object } /** * * @export * @interface FundOwnership */ export interface FundOwnership { /** * Symbol of the company. * @type {string} * @memberof FundOwnership */ symbol?: string /** * Array of investors with detailed information about their holdings. * @type {Array} * @memberof FundOwnership */ ownership?: Array } /** * * @export * @interface FundOwnershipInfo */ export interface FundOwnershipInfo { /** * Investor\'s name. * @type {string} * @memberof FundOwnershipInfo */ name?: string /** * Number of shares held by the investor. * @type {number} * @memberof FundOwnershipInfo */ share?: number /** * Number of share changed (net buy or sell) from the last period. * @type {number} * @memberof FundOwnershipInfo */ change?: number /** * Filing date. * @type {string} * @memberof FundOwnershipInfo */ filingDate?: string /** * Percent of the fund\'s portfolio comprised of the company\'s share. * @type {number} * @memberof FundOwnershipInfo */ portfolioPercent?: number } /** * * @export * @interface HistoricalNBBO */ export interface HistoricalNBBO { /** * Symbol. * @type {string} * @memberof HistoricalNBBO */ s?: string /** * Number of ticks skipped. * @type {number} * @memberof HistoricalNBBO */ skip?: number /** * Number of ticks returned. If count < limit, all data for that date has been returned. * @type {number} * @memberof HistoricalNBBO */ count?: number /** * Total number of ticks for that date. * @type {number} * @memberof HistoricalNBBO */ total?: number /** * List of Ask volume data. * @type {Array} * @memberof HistoricalNBBO */ av?: Array /** * List of Ask price data. * @type {Array} * @memberof HistoricalNBBO */ a?: Array /** * List of venues/exchanges - Ask price. A list of exchange codes can be found here * @type {Array} * @memberof HistoricalNBBO */ ax?: Array /** * List of Bid volume data. * @type {Array} * @memberof HistoricalNBBO */ bv?: Array /** * List of Bid price data. * @type {Array} * @memberof HistoricalNBBO */ b?: Array /** * List of venues/exchanges - Bid price. A list of exchange codes can be found here * @type {Array} * @memberof HistoricalNBBO */ bx?: Array /** * List of timestamp in UNIX ms. * @type {Array} * @memberof HistoricalNBBO */ t?: Array /** * List of quote conditions. A comprehensive list of quote conditions code can be found here * @type {Array>} * @memberof HistoricalNBBO */ c?: Array> } /** * * @export * @interface IPOCalendar */ export interface IPOCalendar { /** * Array of IPO events. * @type {Array} * @memberof IPOCalendar */ ipoCalendar?: Array } /** * * @export * @interface IPOEvent */ export interface IPOEvent { /** * Symbol. * @type {string} * @memberof IPOEvent */ symbol?: string /** * IPO date. * @type {string} * @memberof IPOEvent */ date?: string /** * Exchange. * @type {string} * @memberof IPOEvent */ exchange?: string /** * Company\'s name. * @type {string} * @memberof IPOEvent */ name?: string /** * IPO status. Can take 1 of the following values: expected,priced,withdrawn,filed * @type {string} * @memberof IPOEvent */ status?: string /** * Projected price or price range. * @type {string} * @memberof IPOEvent */ price?: string /** * Number of shares offered during the IPO. * @type {number} * @memberof IPOEvent */ numberOfShares?: number /** * Total shares value. * @type {number} * @memberof IPOEvent */ totalSharesValue?: number } /** * * @export * @interface IndexHistoricalConstituent */ export interface IndexHistoricalConstituent { /** * Symbol * @type {string} * @memberof IndexHistoricalConstituent */ symbol?: string /** * add or remove. * @type {string} * @memberof IndexHistoricalConstituent */ action?: string /** * Date of joining or leaving the index. * @type {string} * @memberof IndexHistoricalConstituent */ date?: string } /** * * @export * @interface Indicator */ export interface Indicator { /** * Number of buy signals * @type {number} * @memberof Indicator */ buy?: number /** * Number of neutral signals * @type {number} * @memberof Indicator */ neutral?: number /** * Number of sell signals * @type {number} * @memberof Indicator */ sell?: number } /** * * @export * @interface IndicesConstituents */ export interface IndicesConstituents { /** * Index\'s symbol. * @type {string} * @memberof IndicesConstituents */ symbol?: string /** * Array of constituents. * @type {Array} * @memberof IndicesConstituents */ constituents?: Array } /** * * @export * @interface IndicesHistoricalConstituents */ export interface IndicesHistoricalConstituents { /** * Index\'s symbol. * @type {string} * @memberof IndicesHistoricalConstituents */ symbol?: string /** * Array of historical constituents. * @type {Array} * @memberof IndicesHistoricalConstituents */ historicalConstituents?: Array } /** * * @export * @interface InsiderSentiments */ export interface InsiderSentiments { /** * Symbol of the company. * @type {string} * @memberof InsiderSentiments */ symbol?: string /** * Array of sentiment data. * @type {Array} * @memberof InsiderSentiments */ data?: Array } /** * * @export * @interface InsiderSentimentsData */ export interface InsiderSentimentsData { /** * Symbol. * @type {string} * @memberof InsiderSentimentsData */ symbol?: string /** * Year. * @type {number} * @memberof InsiderSentimentsData */ year?: number /** * Month. * @type {number} * @memberof InsiderSentimentsData */ month?: number /** * Net buying/selling from all insiders\' transactions. * @type {number} * @memberof InsiderSentimentsData */ change?: number /** * Monthly share purchase ratio. * @type {number} * @memberof InsiderSentimentsData */ mspr?: number } /** * * @export * @interface InsiderTransactions */ export interface InsiderTransactions { /** * Symbol of the company. * @type {string} * @memberof InsiderTransactions */ symbol?: string /** * Array of insider transactions. * @type {Array} * @memberof InsiderTransactions */ data?: Array } /** * * @export * @interface InternationalFiling */ export interface InternationalFiling { /** * Symbol. * @type {string} * @memberof InternationalFiling */ symbol?: string /** * Company name. * @type {string} * @memberof InternationalFiling */ companyName?: string /** * Filed date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof InternationalFiling */ filedDate?: string /** * Category. * @type {string} * @memberof InternationalFiling */ category?: string /** * Document\'s title. * @type {string} * @memberof InternationalFiling */ title?: string /** * Document\'s description. * @type {string} * @memberof InternationalFiling */ description?: string /** * Url. * @type {string} * @memberof InternationalFiling */ url?: string /** * Language. * @type {string} * @memberof InternationalFiling */ language?: string /** * Country. * @type {string} * @memberof InternationalFiling */ country?: string } /** * * @export * @interface InvestmentThemePortfolio */ export interface InvestmentThemePortfolio { /** * Symbol * @type {string} * @memberof InvestmentThemePortfolio */ symbol?: string } /** * * @export * @interface InvestmentThemes */ export interface InvestmentThemes { /** * Investment theme * @type {string} * @memberof InvestmentThemes */ theme?: string /** * Investment theme portfolio. * @type {Array} * @memberof InvestmentThemes */ data?: Array } /** * * @export * @interface KeyCustomersSuppliers */ export interface KeyCustomersSuppliers { /** * Symbol * @type {string} * @memberof KeyCustomersSuppliers */ symbol?: string /** * Name * @type {string} * @memberof KeyCustomersSuppliers */ name?: string /** * Country * @type {string} * @memberof KeyCustomersSuppliers */ country?: string /** * Industry * @type {string} * @memberof KeyCustomersSuppliers */ industry?: string /** * Whether the company is a customer. * @type {boolean} * @memberof KeyCustomersSuppliers */ customer?: boolean /** * Whether the company is a supplier * @type {boolean} * @memberof KeyCustomersSuppliers */ supplier?: boolean /** * 1-month price correlation * @type {number} * @memberof KeyCustomersSuppliers */ oneMonthCorrelation?: number /** * 1-year price correlation * @type {number} * @memberof KeyCustomersSuppliers */ oneYearCorrelation?: number /** * 6-month price correlation * @type {number} * @memberof KeyCustomersSuppliers */ sixMonthCorrelation?: number /** * 3-month price correlation * @type {number} * @memberof KeyCustomersSuppliers */ threeMonthCorrelation?: number /** * 2-week price correlation * @type {number} * @memberof KeyCustomersSuppliers */ twoWeekCorrelation?: number /** * 2-year price correlation * @type {number} * @memberof KeyCustomersSuppliers */ twoYearCorrelation?: number } /** * * @export * @interface LastBidAsk */ export interface LastBidAsk { /** * Bid price. * @type {number} * @memberof LastBidAsk */ b?: number /** * Ask price. * @type {number} * @memberof LastBidAsk */ a?: number /** * Bid volume. * @type {number} * @memberof LastBidAsk */ bv?: number /** * Ask volume. * @type {number} * @memberof LastBidAsk */ av?: number /** * Reference UNIX timestamp in ms. * @type {number} * @memberof LastBidAsk */ t?: number } /** * * @export * @interface LobbyingData */ export interface LobbyingData { /** * Symbol. * @type {string} * @memberof LobbyingData */ symbol?: string /** * Company\'s name. * @type {string} * @memberof LobbyingData */ name?: string /** * Description. * @type {string} * @memberof LobbyingData */ description?: string /** * Country. * @type {string} * @memberof LobbyingData */ country?: string /** * Year. * @type {number} * @memberof LobbyingData */ year?: number /** * Period. * @type {string} * @memberof LobbyingData */ period?: string /** * Income reported by lobbying firms. * @type {number} * @memberof LobbyingData */ income?: number /** * Expenses reported by the company. * @type {number} * @memberof LobbyingData */ expenses?: number /** * Document\'s URL. * @type {string} * @memberof LobbyingData */ documentUrl?: string /** * Posted name. * @type {string} * @memberof LobbyingData */ postedName?: string /** * Date. * @type {string} * @memberof LobbyingData */ date?: string /** * Client ID. * @type {string} * @memberof LobbyingData */ clientId?: string /** * Registrant ID. * @type {string} * @memberof LobbyingData */ registrantId?: string /** * Senate ID. * @type {string} * @memberof LobbyingData */ senateId?: string /** * House registrant ID. * @type {string} * @memberof LobbyingData */ houseregistrantId?: string } /** * * @export * @interface LobbyingResult */ export interface LobbyingResult { /** * Symbol. * @type {string} * @memberof LobbyingResult */ symbol?: string /** * Array of lobbying activities. * @type {Array} * @memberof LobbyingResult */ data?: Array } /** * * @export * @interface MarketNews */ export interface MarketNews { /** * News category. * @type {string} * @memberof MarketNews */ category?: string /** * Published time in UNIX timestamp. * @type {number} * @memberof MarketNews */ datetime?: number /** * News headline. * @type {string} * @memberof MarketNews */ headline?: string /** * News ID. This value can be used for minId params to get the latest news only. * @type {number} * @memberof MarketNews */ id?: number /** * Thumbnail image URL. * @type {string} * @memberof MarketNews */ image?: string /** * Related stocks and companies mentioned in the article. * @type {string} * @memberof MarketNews */ related?: string /** * News source. * @type {string} * @memberof MarketNews */ source?: string /** * News summary. * @type {string} * @memberof MarketNews */ summary?: string /** * URL of the original article. * @type {string} * @memberof MarketNews */ url?: string } /** * * @export * @interface MutualFundCountryExposure */ export interface MutualFundCountryExposure { /** * Symbol. * @type {string} * @memberof MutualFundCountryExposure */ symbol?: string /** * Array of countries and and exposure levels. * @type {Array} * @memberof MutualFundCountryExposure */ countryExposure?: Array } /** * * @export * @interface MutualFundCountryExposureData */ export interface MutualFundCountryExposureData { /** * Country * @type {string} * @memberof MutualFundCountryExposureData */ country?: string /** * Percent of exposure. * @type {number} * @memberof MutualFundCountryExposureData */ exposure?: number } /** * * @export * @interface MutualFundHoldings */ export interface MutualFundHoldings { /** * Symbol. * @type {string} * @memberof MutualFundHoldings */ symbol?: string /** * Holdings update date. * @type {string} * @memberof MutualFundHoldings */ atDate?: string /** * Number of holdings. * @type {number} * @memberof MutualFundHoldings */ numberOfHoldings?: number /** * Array of holdings. * @type {Array} * @memberof MutualFundHoldings */ holdings?: Array } /** * * @export * @interface MutualFundHoldingsData */ export interface MutualFundHoldingsData { /** * Symbol description * @type {string} * @memberof MutualFundHoldingsData */ symbol?: string /** * Security name * @type {string} * @memberof MutualFundHoldingsData */ name?: string /** * ISIN. * @type {string} * @memberof MutualFundHoldingsData */ isin?: string /** * CUSIP. * @type {string} * @memberof MutualFundHoldingsData */ cusip?: string /** * Number of shares. * @type {number} * @memberof MutualFundHoldingsData */ share?: number /** * Portfolio\'s percent * @type {number} * @memberof MutualFundHoldingsData */ percent?: number /** * Market value * @type {number} * @memberof MutualFundHoldingsData */ value?: number } /** * * @export * @interface MutualFundProfile */ export interface MutualFundProfile { /** * Symbol. * @type {string} * @memberof MutualFundProfile */ symbol?: string /** * * @type {MutualFundProfileData} * @memberof MutualFundProfile */ profile?: MutualFundProfileData } /** * * @export * @interface MutualFundProfileData */ export interface MutualFundProfileData { /** * Name * @type {string} * @memberof MutualFundProfileData */ name?: string /** * Fund\'s category. * @type {string} * @memberof MutualFundProfileData */ category?: string /** * Investment Segment. * @type {string} * @memberof MutualFundProfileData */ investmentSegment?: string /** * NAV. * @type {number} * @memberof MutualFundProfileData */ totalNav?: number /** * Expense ratio. * @type {number} * @memberof MutualFundProfileData */ expenseRatio?: number /** * Index benchmark. * @type {string} * @memberof MutualFundProfileData */ benchmark?: string /** * Inception date. * @type {string} * @memberof MutualFundProfileData */ inceptionDate?: string /** * Fund\'s description. * @type {string} * @memberof MutualFundProfileData */ description?: string /** * Fund Family. * @type {string} * @memberof MutualFundProfileData */ fundFamily?: string /** * Fund\'s managers. * @type {string} * @memberof MutualFundProfileData */ manager?: string /** * Status. * @type {string} * @memberof MutualFundProfileData */ status?: string /** * Beta. * @type {number} * @memberof MutualFundProfileData */ beta?: number /** * Deferred load. * @type {number} * @memberof MutualFundProfileData */ deferredLoad?: number /** * 12B-1 fee. * @type {number} * @memberof MutualFundProfileData */ fee12b1?: number /** * Front Load. * @type {number} * @memberof MutualFundProfileData */ frontLoad?: number /** * IRA minimum investment. * @type {number} * @memberof MutualFundProfileData */ iraMinInvestment?: number /** * ISIN. * @type {string} * @memberof MutualFundProfileData */ isin?: string /** * CUSIP. * @type {string} * @memberof MutualFundProfileData */ cusip?: string /** * Max redemption fee. * @type {number} * @memberof MutualFundProfileData */ maxRedemptionFee?: number /** * Minimum investment for standard accounts. * @type {number} * @memberof MutualFundProfileData */ standardMinInvestment?: number /** * Turnover. * @type {number} * @memberof MutualFundProfileData */ turnover?: number /** * Fund\'s series ID. This field can be used to group multiple share classes into 1 unique fund. * @type {string} * @memberof MutualFundProfileData */ seriesId?: string /** * Fund\'s series name. * @type {string} * @memberof MutualFundProfileData */ seriesName?: string /** * Class ID. * @type {string} * @memberof MutualFundProfileData */ classId?: string /** * Class name. * @type {string} * @memberof MutualFundProfileData */ className?: string } /** * * @export * @interface MutualFundSectorExposure */ export interface MutualFundSectorExposure { /** * Mutual symbol. * @type {string} * @memberof MutualFundSectorExposure */ symbol?: string /** * Array of sector and exposure levels. * @type {Array} * @memberof MutualFundSectorExposure */ sectorExposure?: Array } /** * * @export * @interface MutualFundSectorExposureData */ export interface MutualFundSectorExposureData { /** * Sector * @type {string} * @memberof MutualFundSectorExposureData */ sector?: string /** * Percent of exposure. * @type {number} * @memberof MutualFundSectorExposureData */ exposure?: number } /** * * @export * @interface NewsSentiment */ export interface NewsSentiment { /** * * @type {CompanyNewsStatistics} * @memberof NewsSentiment */ buzz?: CompanyNewsStatistics /** * News score. * @type {number} * @memberof NewsSentiment */ companyNewsScore?: number /** * Sector average bullish percent. * @type {number} * @memberof NewsSentiment */ sectorAverageBullishPercent?: number /** * Sectore average score. * @type {number} * @memberof NewsSentiment */ sectorAverageNewsScore?: number /** * * @type {Sentiment} * @memberof NewsSentiment */ sentiment?: Sentiment /** * Requested symbol. * @type {string} * @memberof NewsSentiment */ symbol?: string } /** * * @export * @interface Ownership */ export interface Ownership { /** * Symbol of the company. * @type {string} * @memberof Ownership */ symbol?: string /** * Array of investors with detailed information about their holdings. * @type {Array} * @memberof Ownership */ ownership?: Array } /** * * @export * @interface OwnershipInfo */ export interface OwnershipInfo { /** * Investor\'s name. * @type {string} * @memberof OwnershipInfo */ name?: string /** * Number of shares held by the investor. * @type {number} * @memberof OwnershipInfo */ share?: number /** * Number of share changed (net buy or sell) from the last period. * @type {number} * @memberof OwnershipInfo */ change?: number /** * Filing date. * @type {string} * @memberof OwnershipInfo */ filingDate?: string } /** * * @export * @interface PatternRecognition */ export interface PatternRecognition { /** * Array of patterns. * @type {Array} * @memberof PatternRecognition */ points?: Array } /** * * @export * @interface PressRelease */ export interface PressRelease { /** * Company symbol. * @type {string} * @memberof PressRelease */ symbol?: string /** * Array of major developments. * @type {Array} * @memberof PressRelease */ majorDevelopment?: Array } /** * * @export * @interface PriceTarget */ export interface PriceTarget { /** * Company symbol. * @type {string} * @memberof PriceTarget */ symbol?: string /** * Highes analysts\' target. * @type {number} * @memberof PriceTarget */ targetHigh?: number /** * Lowest analysts\' target. * @type {number} * @memberof PriceTarget */ targetLow?: number /** * Mean of all analysts\' targets. * @type {number} * @memberof PriceTarget */ targetMean?: number /** * Median of all analysts\' targets. * @type {number} * @memberof PriceTarget */ targetMedian?: number /** * Updated time of the data * @type {string} * @memberof PriceTarget */ lastUpdated?: string } /** * * @export * @interface Quote */ export interface Quote { /** * Open price of the day * @type {number} * @memberof Quote */ o?: number /** * High price of the day * @type {number} * @memberof Quote */ h?: number /** * Low price of the day * @type {number} * @memberof Quote */ l?: number /** * Current price * @type {number} * @memberof Quote */ c?: number /** * Previous close price * @type {number} * @memberof Quote */ pc?: number /** * Change * @type {number} * @memberof Quote */ d?: number /** * Percent change * @type {number} * @memberof Quote */ dp?: number } /** * * @export * @interface RecommendationTrend */ export interface RecommendationTrend { /** * Company symbol. * @type {string} * @memberof RecommendationTrend */ symbol?: string /** * Number of recommendations that fall into the Buy category * @type {number} * @memberof RecommendationTrend */ buy?: number /** * Number of recommendations that fall into the Hold category * @type {number} * @memberof RecommendationTrend */ hold?: number /** * Updated period * @type {string} * @memberof RecommendationTrend */ period?: string /** * Number of recommendations that fall into the Sell category * @type {number} * @memberof RecommendationTrend */ sell?: number /** * Number of recommendations that fall into the Strong Buy category * @type {number} * @memberof RecommendationTrend */ strongBuy?: number /** * Number of recommendations that fall into the Strong Sell category * @type {number} * @memberof RecommendationTrend */ strongSell?: number } /** * * @export * @interface RedditSentimentContent */ export interface RedditSentimentContent { /** * Number of mentions * @type {number} * @memberof RedditSentimentContent */ mention?: number /** * Number of positive mentions * @type {number} * @memberof RedditSentimentContent */ positiveMention?: number /** * Number of negative mentions * @type {number} * @memberof RedditSentimentContent */ negativeMention?: number /** * Positive score. Range 0-1 * @type {number} * @memberof RedditSentimentContent */ positiveScore?: number /** * Negative score. Range 0-1 * @type {number} * @memberof RedditSentimentContent */ negativeScore?: number /** * Final score. Range: -1 to 1 with 1 is very positive and -1 is very negative * @type {number} * @memberof RedditSentimentContent */ score?: number /** * Period. * @type {string} * @memberof RedditSentimentContent */ atTime?: string } /** * * @export * @interface Report */ export interface Report { /** * Access number. * @type {string} * @memberof Report */ accessNumber?: string /** * Symbol. * @type {string} * @memberof Report */ symbol?: string /** * CIK. * @type {string} * @memberof Report */ cik?: string /** * Year. * @type {number} * @memberof Report */ year?: number /** * Quarter. * @type {number} * @memberof Report */ quarter?: number /** * Form type. * @type {string} * @memberof Report */ form?: string /** * Period start date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof Report */ startDate?: string /** * Period end date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof Report */ endDate?: string /** * Filed date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof Report */ filedDate?: string /** * Accepted date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof Report */ acceptedDate?: string /** * * @type {object} * @memberof Report */ report?: object } /** * * @export * @interface RevenueBreakdown */ export interface RevenueBreakdown { /** * Symbol * @type {string} * @memberof RevenueBreakdown */ symbol?: string /** * CIK * @type {string} * @memberof RevenueBreakdown */ cik?: string /** * Array of revenue breakdown over multiple periods. * @type {Array} * @memberof RevenueBreakdown */ data?: Array } /** * * @export * @interface RevenueEstimates */ export interface RevenueEstimates { /** * List of estimates * @type {Array} * @memberof RevenueEstimates */ data?: Array /** * Frequency: annual or quarterly. * @type {string} * @memberof RevenueEstimates */ freq?: string /** * Company symbol. * @type {string} * @memberof RevenueEstimates */ symbol?: string } /** * * @export * @interface RevenueEstimatesInfo */ export interface RevenueEstimatesInfo { /** * Average revenue estimates including Finnhub\'s proprietary estimates. * @type {number} * @memberof RevenueEstimatesInfo */ revenueAvg?: number /** * Highest estimate. * @type {number} * @memberof RevenueEstimatesInfo */ revenueHigh?: number /** * Lowest estimate. * @type {number} * @memberof RevenueEstimatesInfo */ revenueLow?: number /** * Number of Analysts. * @type {number} * @memberof RevenueEstimatesInfo */ numberAnalysts?: number /** * Period. * @type {string} * @memberof RevenueEstimatesInfo */ period?: string } /** * * @export * @interface SECSentimentAnalysis */ export interface SECSentimentAnalysis { /** * Access number. * @type {string} * @memberof SECSentimentAnalysis */ accessNumber?: string /** * Symbol. * @type {string} * @memberof SECSentimentAnalysis */ symbol?: string /** * CIK. * @type {string} * @memberof SECSentimentAnalysis */ cik?: string /** * * @type {FilingSentiment} * @memberof SECSentimentAnalysis */ sentiment?: FilingSentiment } /** * * @export * @interface Sentiment */ export interface Sentiment { /** * * @type {number} * @memberof Sentiment */ bearishPercent?: number /** * * @type {number} * @memberof Sentiment */ bullishPercent?: number } /** * * @export * @interface SimilarityIndex */ export interface SimilarityIndex { /** * Symbol. * @type {string} * @memberof SimilarityIndex */ symbol?: string /** * CIK. * @type {string} * @memberof SimilarityIndex */ cik?: string /** * Array of filings with its cosine similarity compared to the same report of the previous year. * @type {Array} * @memberof SimilarityIndex */ similarity?: Array } /** * * @export * @interface SimilarityIndexInfo */ export interface SimilarityIndexInfo { /** * CIK. * @type {string} * @memberof SimilarityIndexInfo */ cik?: string /** * Cosine similarity of Item 1 (Business). This number is only available for Annual reports. * @type {number} * @memberof SimilarityIndexInfo */ item1?: number /** * Cosine similarity of Item 1A (Risk Factors). This number is available for both Annual and Quarterly reports. * @type {number} * @memberof SimilarityIndexInfo */ item1a?: number /** * Cosine similarity of Item 2 (Management’s Discussion and Analysis of Financial Condition and Results of Operations). This number is only available for Quarterly reports. * @type {number} * @memberof SimilarityIndexInfo */ item2?: number /** * Cosine similarity of Item 7 (Management’s Discussion and Analysis of Financial Condition and Results of Operations). This number is only available for Annual reports. * @type {number} * @memberof SimilarityIndexInfo */ item7?: number /** * Cosine similarity of Item 7A (Quantitative and Qualitative Disclosures About Market Risk). This number is only available for Annual reports. * @type {number} * @memberof SimilarityIndexInfo */ item7a?: number /** * Access number. * @type {string} * @memberof SimilarityIndexInfo */ accessNumber?: string /** * Form type. * @type {string} * @memberof SimilarityIndexInfo */ form?: string /** * Filed date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof SimilarityIndexInfo */ filedDate?: string /** * Accepted date %Y-%m-%d %H:%M:%S. * @type {string} * @memberof SimilarityIndexInfo */ acceptedDate?: string /** * Report\'s URL. * @type {string} * @memberof SimilarityIndexInfo */ reportUrl?: string /** * Filing\'s URL. * @type {string} * @memberof SimilarityIndexInfo */ filingUrl?: string } /** * * @export * @interface SocialSentiment */ export interface SocialSentiment { /** * Company symbol. * @type {string} * @memberof SocialSentiment */ symbol?: string /** * Reddit sentiment. * @type {Array} * @memberof SocialSentiment */ reddit?: Array /** * Twitter sentiment. * @type {Array} * @memberof SocialSentiment */ twitter?: Array } /** * * @export * @interface Split */ export interface Split { /** * Symbol. * @type {string} * @memberof Split */ symbol?: string /** * Split date. * @type {string} * @memberof Split */ date?: string /** * From factor. * @type {number} * @memberof Split */ fromFactor?: number /** * To factor. * @type {number} * @memberof Split */ toFactor?: number } /** * * @export * @interface StockCandles */ export interface StockCandles { /** * List of open prices for returned candles. * @type {Array} * @memberof StockCandles */ o?: Array /** * List of high prices for returned candles. * @type {Array} * @memberof StockCandles */ h?: Array /** * List of low prices for returned candles. * @type {Array} * @memberof StockCandles */ l?: Array /** * List of close prices for returned candles. * @type {Array} * @memberof StockCandles */ c?: Array /** * List of volume data for returned candles. * @type {Array} * @memberof StockCandles */ v?: Array /** * List of timestamp for returned candles. * @type {Array} * @memberof StockCandles */ t?: Array /** * Status of the response. This field can either be ok or no_data. * @type {string} * @memberof StockCandles */ s?: string } /** * * @export * @interface StockSymbol */ export interface StockSymbol { /** * Symbol description * @type {string} * @memberof StockSymbol */ description?: string /** * Display symbol name. * @type {string} * @memberof StockSymbol */ displaySymbol?: string /** * Unique symbol used to identify this symbol used in /stock/candle endpoint. * @type {string} * @memberof StockSymbol */ symbol?: string /** * Security type. * @type {string} * @memberof StockSymbol */ type?: string /** * Primary exchange\'s MIC. * @type {string} * @memberof StockSymbol */ mic?: string /** * FIGI identifier. * @type {string} * @memberof StockSymbol */ figi?: string /** * Global Share Class FIGI. * @type {string} * @memberof StockSymbol */ shareClassFIGI?: string /** * Price\'s currency. This might be different from the reporting currency of fundamental data. * @type {string} * @memberof StockSymbol */ currency?: string /** * Alternative ticker for exchanges with multiple tickers for 1 stock such as BSE. * @type {string} * @memberof StockSymbol */ symbol2?: string /** * ISIN. This field is only available for EU stocks and selected Asian markets. Entitlement from Finnhub is required to access this field. * @type {string} * @memberof StockSymbol */ isin?: string } /** * * @export * @interface StockTranscripts */ export interface StockTranscripts { /** * Transcript\'s ID used to get the full transcript. * @type {string} * @memberof StockTranscripts */ id?: string /** * Title. * @type {string} * @memberof StockTranscripts */ title?: string /** * Time of the event. * @type {string} * @memberof StockTranscripts */ time?: string /** * Year of earnings result in the case of earnings call transcript. * @type {number} * @memberof StockTranscripts */ year?: number /** * Quarter of earnings result in the case of earnings call transcript. * @type {number} * @memberof StockTranscripts */ quarter?: number } /** * * @export * @interface SupplyChainRelationships */ export interface SupplyChainRelationships { /** * symbol * @type {string} * @memberof SupplyChainRelationships */ symbol?: string /** * Key customers and suppliers. * @type {Array} * @memberof SupplyChainRelationships */ data?: Array } /** * * @export * @interface SupportResistance */ export interface SupportResistance { /** * Array of support and resistance levels. * @type {Array} * @memberof SupportResistance */ levels?: Array } /** * * @export * @interface SymbolLookup */ export interface SymbolLookup { /** * Array of search results. * @type {Array} * @memberof SymbolLookup */ result?: Array /** * Number of results. * @type {number} * @memberof SymbolLookup */ count?: number } /** * * @export * @interface SymbolLookupInfo */ export interface SymbolLookupInfo { /** * Symbol description * @type {string} * @memberof SymbolLookupInfo */ description?: string /** * Display symbol name. * @type {string} * @memberof SymbolLookupInfo */ displaySymbol?: string /** * Unique symbol used to identify this symbol used in /stock/candle endpoint. * @type {string} * @memberof SymbolLookupInfo */ symbol?: string /** * Security type. * @type {string} * @memberof SymbolLookupInfo */ type?: string } /** * * @export * @interface TechnicalAnalysis */ export interface TechnicalAnalysis { /** * * @type {Indicator} * @memberof TechnicalAnalysis */ count?: Indicator /** * Aggregate Signal * @type {string} * @memberof TechnicalAnalysis */ signal?: string } /** * * @export * @interface TickData */ export interface TickData { /** * Symbol. * @type {string} * @memberof TickData */ s?: string /** * Number of ticks skipped. * @type {number} * @memberof TickData */ skip?: number /** * Number of ticks returned. If count < limit, all data for that date has been returned. * @type {number} * @memberof TickData */ count?: number /** * Total number of ticks for that date. * @type {number} * @memberof TickData */ total?: number /** * List of volume data. * @type {Array} * @memberof TickData */ v?: Array /** * List of price data. * @type {Array} * @memberof TickData */ p?: Array /** * List of timestamp in UNIX ms. * @type {Array} * @memberof TickData */ t?: Array /** * List of venues/exchanges. A list of exchange codes can be found here * @type {Array} * @memberof TickData */ x?: Array /** * List of trade conditions. A comprehensive list of trade conditions code can be found here * @type {Array>} * @memberof TickData */ c?: Array> } /** * * @export * @interface Transactions */ export interface Transactions { /** * Symbol. * @type {string} * @memberof Transactions */ symbol?: string /** * Insider\'s name. * @type {string} * @memberof Transactions */ name?: string /** * Number of shares held after the transaction. * @type {number} * @memberof Transactions */ share?: number /** * Number of share changed from the last period. A positive value suggests a BUY transaction. A negative value suggests a SELL transaction. * @type {number} * @memberof Transactions */ change?: number /** * Filing date. * @type {string} * @memberof Transactions */ filingDate?: string /** * Transaction date. * @type {string} * @memberof Transactions */ transactionDate?: string /** * Average transaction price. * @type {number} * @memberof Transactions */ transactionPrice?: number /** * Transaction code. A list of codes and their meanings can be found here. * @type {string} * @memberof Transactions */ transactionCode?: string } /** * * @export * @interface TranscriptContent */ export interface TranscriptContent { /** * Speaker\'s name * @type {string} * @memberof TranscriptContent */ name?: string /** * Speaker\'s speech * @type {Array} * @memberof TranscriptContent */ speech?: Array /** * Earnings calls section (management discussion or Q&A) * @type {string} * @memberof TranscriptContent */ session?: string } /** * * @export * @interface TranscriptParticipant */ export interface TranscriptParticipant { /** * Participant\'s name * @type {string} * @memberof TranscriptParticipant */ name?: string /** * Participant\'s description * @type {string} * @memberof TranscriptParticipant */ description?: string /** * Whether the speak is a company\'s executive or an analyst * @type {string} * @memberof TranscriptParticipant */ role?: string } /** * * @export * @interface Trend */ export interface Trend { /** * ADX reading * @type {number} * @memberof Trend */ adx?: number /** * Whether market is trending or going sideway * @type {boolean} * @memberof Trend */ trending?: boolean } /** * * @export * @interface TwitterSentimentContent */ export interface TwitterSentimentContent { /** * Number of mentions * @type {number} * @memberof TwitterSentimentContent */ mention?: number /** * Number of positive mentions * @type {number} * @memberof TwitterSentimentContent */ positiveMention?: number /** * Number of negative mentions * @type {number} * @memberof TwitterSentimentContent */ negativeMention?: number /** * Positive score. Range 0-1 * @type {number} * @memberof TwitterSentimentContent */ positiveScore?: number /** * Negative score. Range 0-1 * @type {number} * @memberof TwitterSentimentContent */ negativeScore?: number /** * Final score. Range: -1 to 1 with 1 is very positive and -1 is very negative * @type {number} * @memberof TwitterSentimentContent */ score?: number /** * Period. * @type {string} * @memberof TwitterSentimentContent */ atTime?: string } /** * * @export * @interface UpgradeDowngrade */ export interface UpgradeDowngrade { /** * Company symbol. * @type {string} * @memberof UpgradeDowngrade */ symbol?: string /** * Upgrade/downgrade time in UNIX timestamp. * @type {number} * @memberof UpgradeDowngrade */ gradeTime?: number /** * From grade. * @type {string} * @memberof UpgradeDowngrade */ fromGrade?: string /** * To grade. * @type {string} * @memberof UpgradeDowngrade */ toGrade?: string /** * Company/analyst who did the upgrade/downgrade. * @type {string} * @memberof UpgradeDowngrade */ company?: string /** * Action can take any of the following values: up(upgrade), down(downgrade), main(maintains), init(initiate), reit(reiterate). * @type {string} * @memberof UpgradeDowngrade */ action?: string } /** * * @export * @interface UsaSpending */ export interface UsaSpending { /** * Symbol. * @type {string} * @memberof UsaSpending */ symbol?: string /** * Company\'s name. * @type {string} * @memberof UsaSpending */ recipientName?: string /** * Company\'s name. * @type {string} * @memberof UsaSpending */ recipientParentName?: string /** * Description. * @type {string} * @memberof UsaSpending */ awardDescription?: string /** * Recipient\'s country. * @type {string} * @memberof UsaSpending */ country?: string /** * Period. * @type {string} * @memberof UsaSpending */ actionDate?: string /** * Income reported by lobbying firms. * @type {number} * @memberof UsaSpending */ totalValue?: number /** * Performance start date. * @type {string} * @memberof UsaSpending */ performanceStartDate?: string /** * Performance end date. * @type {string} * @memberof UsaSpending */ performanceEndDate?: string /** * Award agency. * @type {string} * @memberof UsaSpending */ awardingAgencyName?: string /** * Award sub-agency. * @type {string} * @memberof UsaSpending */ awardingSubAgencyName?: string /** * Award office name. * @type {string} * @memberof UsaSpending */ awardingOfficeName?: string /** * Performance country. * @type {string} * @memberof UsaSpending */ performanceCountry?: string /** * Performance city. * @type {string} * @memberof UsaSpending */ performanceCity?: string /** * Performance county. * @type {string} * @memberof UsaSpending */ performanceCounty?: string /** * Performance state. * @type {string} * @memberof UsaSpending */ performanceState?: string /** * Performance zip code. * @type {string} * @memberof UsaSpending */ performanceZipCode?: string /** * Performance congressional district. * @type {string} * @memberof UsaSpending */ performanceCongressionalDistrict?: string /** * NAICS code. * @type {string} * @memberof UsaSpending */ naicsCode?: string /** * Permalink. * @type {string} * @memberof UsaSpending */ permalink?: string } /** * * @export * @interface UsaSpendingResult */ export interface UsaSpendingResult { /** * Symbol. * @type {string} * @memberof UsaSpendingResult */ symbol?: string /** * Array of government\'s spending data points. * @type {Array} * @memberof UsaSpendingResult */ data?: Array } /** * * @export * @interface UsptoPatent */ export interface UsptoPatent { /** * Application Number. * @type {string} * @memberof UsptoPatent */ applicationNumber?: string /** * Array of companies\' name on the patent. * @type {Array} * @memberof UsptoPatent */ companyFilingName?: Array /** * Filing date. * @type {string} * @memberof UsptoPatent */ filingDate?: string /** * Description. * @type {string} * @memberof UsptoPatent */ description?: string /** * Filing status. * @type {string} * @memberof UsptoPatent */ filingStatus?: string /** * Patent number. * @type {string} * @memberof UsptoPatent */ patentNumber?: string /** * Publication date. * @type {string} * @memberof UsptoPatent */ publicationDate?: string /** * Patent\'s type. * @type {string} * @memberof UsptoPatent */ patentType?: string /** * URL of the original article. * @type {string} * @memberof UsptoPatent */ url?: string } /** * * @export * @interface UsptoPatentResult */ export interface UsptoPatentResult { /** * Symbol. * @type {string} * @memberof UsptoPatentResult */ symbol?: string /** * Array of patents. * @type {Array} * @memberof UsptoPatentResult */ data?: Array } /** * * @export * @interface VisaApplication */ export interface VisaApplication { /** * Year. * @type {number} * @memberof VisaApplication */ year?: number /** * Quarter. * @type {number} * @memberof VisaApplication */ quarter?: number /** * Symbol. * @type {string} * @memberof VisaApplication */ symbol?: string /** * Case number. * @type {string} * @memberof VisaApplication */ caseNumber?: string /** * Case status. * @type {string} * @memberof VisaApplication */ caseStatus?: string /** * Received date. * @type {string} * @memberof VisaApplication */ receivedDate?: string /** * Visa class. * @type {string} * @memberof VisaApplication */ visaClass?: string /** * Job Title. * @type {string} * @memberof VisaApplication */ jobTitle?: string /** * SOC Code. A list of SOC code can be found here. * @type {string} * @memberof VisaApplication */ socCode?: string /** * Full-time position flag. * @type {string} * @memberof VisaApplication */ fullTimePosition?: string /** * Job\'s start date. * @type {string} * @memberof VisaApplication */ beginDate?: string /** * Job\'s end date. * @type {string} * @memberof VisaApplication */ endDate?: string /** * Company\'s name. * @type {string} * @memberof VisaApplication */ employerName?: string /** * Worksite address. * @type {string} * @memberof VisaApplication */ worksiteAddress?: string /** * Worksite city. * @type {string} * @memberof VisaApplication */ worksiteCity?: string /** * Worksite county. * @type {string} * @memberof VisaApplication */ worksiteCounty?: string /** * Worksite state. * @type {string} * @memberof VisaApplication */ worksiteState?: string /** * Worksite postal code. * @type {string} * @memberof VisaApplication */ worksitePostalCode?: string /** * Wage range from. * @type {number} * @memberof VisaApplication */ wageRangeFrom?: number /** * Wage range to. * @type {number} * @memberof VisaApplication */ wageRangeTo?: number /** * Wage unit of pay. * @type {string} * @memberof VisaApplication */ wageUnitOfPay?: string /** * Wage level. * @type {string} * @memberof VisaApplication */ wageLevel?: string /** * H1B dependent flag. * @type {string} * @memberof VisaApplication */ h1bDependent?: string } /** * * @export * @interface VisaApplicationResult */ export interface VisaApplicationResult { /** * Symbol. * @type {string} * @memberof VisaApplicationResult */ symbol?: string /** * Array of H1b and Permanent visa applications. * @type {Array} * @memberof VisaApplicationResult */ data?: Array } /** * DefaultApi - axios parameter creator * @export */ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Get aggregate signal of multiple technical indicators such as MACD, RSI, Moving Average v.v. * @summary Aggregate Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ aggregateIndicator: async (symbol: string, resolution: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('aggregateIndicator', 'symbol', symbol) // verify required parameter 'resolution' is not null or undefined assertParamExists('aggregateIndicator', 'resolution', resolution) const localVarPath = `/scan/technical-indicator` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (resolution !== undefined) { localVarQueryParameter['resolution'] = resolution } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get end-of-day bond\'s price data. * @summary Bond price data * @param {string} isin ISIN. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ bondPrice: async (isin: string, from: number, to: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'isin' is not null or undefined assertParamExists('bondPrice', 'isin', isin) // verify required parameter 'from' is not null or undefined assertParamExists('bondPrice', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('bondPrice', 'to', to) const localVarPath = `/bond/price` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (isin !== undefined) { localVarQueryParameter['isin'] = isin } if (from !== undefined) { localVarQueryParameter['from'] = from } if (to !== undefined) { localVarQueryParameter['to'] = to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get general information of a bond. You can query by FIGI, ISIN or CUSIP * @summary Bond Profile * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {string} [figi] FIGI * @param {*} [options] Override http request option. * @throws {RequiredError} */ bondProfile: async (isin?: string, cusip?: string, figi?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/bond/profile` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (isin !== undefined) { localVarQueryParameter['isin'] = isin } if (cusip !== undefined) { localVarQueryParameter['cusip'] = cusip } if (figi !== undefined) { localVarQueryParameter['figi'] = figi } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company basic financials such as margin, P/E ratio, 52-week high/low etc. * @summary Basic Financials * @param {string} symbol Symbol of the company: AAPL. * @param {string} metric Metric type. Can be 1 of the following values <code>all</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyBasicFinancials: async (symbol: string, metric: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyBasicFinancials', 'symbol', symbol) // verify required parameter 'metric' is not null or undefined assertParamExists('companyBasicFinancials', 'metric', metric) const localVarPath = `/stock/metric` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (metric !== undefined) { localVarQueryParameter['metric'] = metric } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company historical quarterly earnings surprise going back to 2000. * @summary Earnings Surprises * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of period returned. Leave blank to get the full history. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEarnings: async (symbol: string, limit?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyEarnings', 'symbol', symbol) const localVarPath = `/stock/earnings` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (limit !== undefined) { localVarQueryParameter['limit'] = limit } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

This endpoint provides Earnings Quality Score for global companies.

Earnings quality refers to the extent to which current earnings predict future earnings. \"High-quality\" earnings are expected to persist, while \"low-quality\" earnings do not. A higher score means a higher earnings quality

Finnhub uses a proprietary model which takes into consideration 4 criteria:

  • Profitability
  • Growth
  • Cash Generation & Capital Allocation
  • Leverage

We then compare the metrics of each company in each category against its peers in the same industry to gauge how quality its earnings is.

* @summary Company Earnings Quality Score * @param {string} symbol Symbol. * @param {string} freq Frequency. Currently support <code>annual</code> and <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEarningsQualityScore: async (symbol: string, freq: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyEarningsQualityScore', 'symbol', symbol) // verify required parameter 'freq' is not null or undefined assertParamExists('companyEarningsQualityScore', 'freq', freq) const localVarPath = `/stock/earnings-quality-score` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company\'s ebit estimates. * @summary EBIT Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEbitEstimates: async (symbol: string, freq?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyEbitEstimates', 'symbol', symbol) const localVarPath = `/stock/ebit-estimate` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company\'s ebitda estimates. * @summary EBITDA Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEbitdaEstimates: async (symbol: string, freq?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyEbitdaEstimates', 'symbol', symbol) const localVarPath = `/stock/ebitda-estimate` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company\'s EPS estimates. * @summary Earnings Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEpsEstimates: async (symbol: string, freq?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyEpsEstimates', 'symbol', symbol) const localVarPath = `/stock/eps-estimate` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

This endpoint provides ESG scores and important indicators for 1000+ global companies. The data is collected through company\'s public ESG disclosure and public sources.

Our ESG scoring models takes into account more than 150 different inputs to calculate the level of ESG risks and how well a company is managing them. A higher score means lower ESG risk or better ESG management. ESG scores are in the the range of 0-100. Some key indicators might contain letter-grade score from C- to A+ with C- is the lowest score and A+ is the highest score.

* @summary Company ESG Scores * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEsgScore: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyEsgScore', 'symbol', symbol) const localVarPath = `/stock/esg` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get a list of company\'s executives and members of the Board. * @summary Company Executive * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyExecutive: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyExecutive', 'symbol', symbol) const localVarPath = `/stock/executive` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List latest company news by symbol. This endpoint is only available for North American companies. * @summary Company News * @param {string} symbol Company symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyNews: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyNews', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('companyNews', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('companyNews', 'to', to) const localVarPath = `/company-news` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company peers. Return a list of peers in the same country and sub-industry * @summary Peers * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyPeers: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyPeers', 'symbol', symbol) const localVarPath = `/stock/peers` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get general information of a company. You can query by symbol, ISIN or CUSIP * @summary Company Profile * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyProfile: async (symbol?: string, isin?: string, cusip?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/profile` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (isin !== undefined) { localVarQueryParameter['isin'] = isin } if (cusip !== undefined) { localVarQueryParameter['cusip'] = cusip } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get general information of a company. You can query by symbol, ISIN or CUSIP. This is the free version of Company Profile. * @summary Company Profile 2 * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyProfile2: async (symbol?: string, isin?: string, cusip?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/profile2` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (isin !== undefined) { localVarQueryParameter['isin'] = isin } if (cusip !== undefined) { localVarQueryParameter['cusip'] = cusip } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company\'s revenue estimates. * @summary Revenue Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyRevenueEstimates: async (symbol: string, freq?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('companyRevenueEstimates', 'symbol', symbol) const localVarPath = `/stock/revenue-estimate` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List all countries and metadata. * @summary Country Metadata * @param {*} [options] Override http request option. * @throws {RequiredError} */ country: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/country` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get real-time updates on the number of COVID-19 (Corona virus) cases in the US with a state-by-state breakdown. Data is sourced from CDC and reputable sources. You can also access this API here * @summary COVID-19 * @param {*} [options] Override http request option. * @throws {RequiredError} */ covid19: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/covid19/us` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get candlestick data for crypto symbols. * @summary Crypto Candles * @param {string} symbol Use symbol returned in <code>/crypto/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoCandles: async (symbol: string, resolution: string, from: number, to: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('cryptoCandles', 'symbol', symbol) // verify required parameter 'resolution' is not null or undefined assertParamExists('cryptoCandles', 'resolution', resolution) // verify required parameter 'from' is not null or undefined assertParamExists('cryptoCandles', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('cryptoCandles', 'to', to) const localVarPath = `/crypto/candle` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (resolution !== undefined) { localVarQueryParameter['resolution'] = resolution } if (from !== undefined) { localVarQueryParameter['from'] = from } if (to !== undefined) { localVarQueryParameter['to'] = to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List supported crypto exchanges * @summary Crypto Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoExchanges: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/crypto/exchange` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get crypto\'s profile. * @summary Crypto Profile * @param {string} symbol Crypto symbol such as BTC or ETH. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoProfile: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('cryptoProfile', 'symbol', symbol) const localVarPath = `/crypto/profile` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List supported crypto symbols by exchange * @summary Crypto Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoSymbols: async (exchange: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'exchange' is not null or undefined assertParamExists('cryptoSymbols', 'exchange', exchange) const localVarPath = `/crypto/symbol` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (exchange !== undefined) { localVarQueryParameter['exchange'] = exchange } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get historical and coming earnings release. EPS and Revenue in this endpoint are non-GAAP, which means they are adjusted to exclude some one-time or unusual items. This is the same data investors usually react to and talked about on the media. Estimates are sourced from both sell-side and buy-side analysts. * @summary Earnings Calendar * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {string} [symbol] Filter by symbol: AAPL. * @param {boolean} [international] Set to <code>true</code> to include international markets. Default value is <code>false</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ earningsCalendar: async (from?: string, to?: string, symbol?: string, international?: boolean, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/calendar/earnings` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (international !== undefined) { localVarQueryParameter['international'] = international } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get recent and upcoming economic releases.

Historical events and surprises are available for Enterprise clients.

* @summary Economic Calendar * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ economicCalendar: async (from?: string, to?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/calendar/economic` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List codes of supported economic data. * @summary Economic Code * @param {*} [options] Override http request option. * @throws {RequiredError} */ economicCode: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/economic/code` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get economic data. * @summary Economic Data * @param {string} code Economic code. * @param {*} [options] Override http request option. * @throws {RequiredError} */ economicData: async (code: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'code' is not null or undefined assertParamExists('economicData', 'code', code) const localVarPath = `/economic` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (code !== undefined) { localVarQueryParameter['code'] = code } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get ETF country exposure data. * @summary ETFs Country Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsCountryExposure: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('etfsCountryExposure', 'symbol', symbol) const localVarPath = `/etf/country` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get full ETF holdings/constituents. This endpoint has global coverage. Widget only shows top 10 holdings. * @summary ETFs Holdings * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {string} [date] Query holdings by date. You can use either this param or <code>skip</code> param, not both. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsHoldings: async (symbol?: string, isin?: string, skip?: number, date?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/etf/holdings` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (isin !== undefined) { localVarQueryParameter['isin'] = isin } if (skip !== undefined) { localVarQueryParameter['skip'] = skip } if (date !== undefined) { localVarQueryParameter['date'] = date } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get ETF profile information. This endpoint has global coverage. * @summary ETFs Profile * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsProfile: async (symbol?: string, isin?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/etf/profile` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (isin !== undefined) { localVarQueryParameter['isin'] = isin } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get ETF sector exposure data. * @summary ETFs Sector Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsSectorExposure: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('etfsSectorExposure', 'symbol', symbol) const localVarPath = `/etf/sector` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * FDA\'s advisory committees are established to provide functions which support the agency\'s mission of protecting and promoting the public health, while meeting the requirements set forth in the Federal Advisory Committee Act. Committees are either mandated by statute or established at the discretion of the Department of Health and Human Services. Each committee is subject to renewal at two-year intervals unless the committee charter states otherwise. * @summary FDA Committee Meeting Calendar * @param {*} [options] Override http request option. * @throws {RequiredError} */ fdaCommitteeMeetingCalendar: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/fda-advisory-committee-calendar` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List company\'s filing. Limit to 250 documents at a time. This data is available for bulk download on Kaggle SEC Filings database. * @summary SEC Filings * @param {string} [symbol] Symbol. Leave <code>symbol</code>,<code>cik</code> and <code>accessNumber</code> empty to list latest filings. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve data from. * @param {string} [form] Filter by form. You can use this value <code>NT 10-K</code> to find non-timely filings for a company. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ filings: async (symbol?: string, cik?: string, accessNumber?: string, form?: string, from?: string, to?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/filings` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (cik !== undefined) { localVarQueryParameter['cik'] = cik } if (accessNumber !== undefined) { localVarQueryParameter['accessNumber'] = accessNumber } if (form !== undefined) { localVarQueryParameter['form'] = form } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get sentiment analysis of 10-K and 10-Q filings from SEC. An abnormal increase in the number of positive/negative words in filings can signal a significant change in the company\'s stock price in the upcoming 4 quarters. We make use of Loughran and McDonald Sentiment Word Lists to calculate the sentiment for each filing. * @summary SEC Sentiment Analysis * @param {string} accessNumber Access number of a specific report you want to retrieve data from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ filingsSentiment: async (accessNumber: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'accessNumber' is not null or undefined assertParamExists('filingsSentiment', 'accessNumber', accessNumber) const localVarPath = `/stock/filings-sentiment` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (accessNumber !== undefined) { localVarQueryParameter['accessNumber'] = accessNumber } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get standardized balance sheet, income statement and cash flow for global companies going back 30+ years. Data is sourced from original filings most of which made available through SEC Filings and International Filings endpoints.

Wondering why our standardized data is different from Bloomberg, Reuters, Factset, S&P or Yahoo Finance ? Check out our FAQ page to learn more

* @summary Financial Statements * @param {string} symbol Symbol of the company: AAPL. * @param {string} statement Statement can take 1 of these values <code>bs, ic, cf</code> for Balance Sheet, Income Statement, Cash Flow respectively. * @param {string} freq Frequency can take 1 of these values <code>annual, quarterly, ttm, ytd</code>. TTM (Trailing Twelve Months) option is available for Income Statement and Cash Flow. YTD (Year To Date) option is only available for Cash Flow. * @param {*} [options] Override http request option. * @throws {RequiredError} */ financials: async (symbol: string, statement: string, freq: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('financials', 'symbol', symbol) // verify required parameter 'statement' is not null or undefined assertParamExists('financials', 'statement', statement) // verify required parameter 'freq' is not null or undefined assertParamExists('financials', 'freq', freq) const localVarPath = `/stock/financials` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (statement !== undefined) { localVarQueryParameter['statement'] = statement } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get financials as reported. This data is available for bulk download on Kaggle SEC Financials database. * @summary Financials As Reported * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve financials from. * @param {string} [freq] Frequency. Can be either <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ financialsReported: async (symbol?: string, cik?: string, accessNumber?: string, freq?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/financials-reported` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (cik !== undefined) { localVarQueryParameter['cik'] = cik } if (accessNumber !== undefined) { localVarQueryParameter['accessNumber'] = accessNumber } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get candlestick data for forex symbols. * @summary Forex Candles * @param {string} symbol Use symbol returned in <code>/forex/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexCandles: async (symbol: string, resolution: string, from: number, to: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('forexCandles', 'symbol', symbol) // verify required parameter 'resolution' is not null or undefined assertParamExists('forexCandles', 'resolution', resolution) // verify required parameter 'from' is not null or undefined assertParamExists('forexCandles', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('forexCandles', 'to', to) const localVarPath = `/forex/candle` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (resolution !== undefined) { localVarQueryParameter['resolution'] = resolution } if (from !== undefined) { localVarQueryParameter['from'] = from } if (to !== undefined) { localVarQueryParameter['to'] = to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List supported forex exchanges * @summary Forex Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexExchanges: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/forex/exchange` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get rates for all forex pairs. Ideal for currency conversion * @summary Forex rates * @param {string} [base] Base currency. Default to EUR. * @param {string} [date] Date. Leave blank to get the latest data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexRates: async (base?: string, date?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/forex/rates` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (base !== undefined) { localVarQueryParameter['base'] = base } if (date !== undefined) { localVarQueryParameter['date'] = date } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List supported forex symbols. * @summary Forex Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexSymbols: async (exchange: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'exchange' is not null or undefined assertParamExists('forexSymbols', 'exchange', exchange) const localVarPath = `/forex/symbol` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (exchange !== undefined) { localVarQueryParameter['exchange'] = exchange } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get a full list fund and institutional investors of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Fund Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fundOwnership: async (symbol: string, limit?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('fundOwnership', 'symbol', symbol) const localVarPath = `/stock/fund-ownership` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (limit !== undefined) { localVarQueryParameter['limit'] = limit } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get a list of index\'s constituents. A list of supported indices for this endpoint can be found here. * @summary Indices Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ indicesConstituents: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('indicesConstituents', 'symbol', symbol) const localVarPath = `/index/constituents` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get full history of index\'s constituents including symbols and dates of joining and leaving the Index. Currently support ^GSPC, ^NDX, ^DJI * @summary Indices Historical Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ indicesHistoricalConstituents: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('indicesHistoricalConstituents', 'symbol', symbol) const localVarPath = `/index/historical-constituents` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get insider sentiment data for US companies calculated using method discussed here. The MSPR ranges from -100 for the most negative to 100 for the most positive which can signal price changes in the coming 30-90 days. * @summary Insider Sentiment * @param {string} symbol Symbol of the company: AAPL. * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ insiderSentiment: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('insiderSentiment', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('insiderSentiment', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('insiderSentiment', 'to', to) const localVarPath = `/stock/insider-sentiment` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Company insider transactions data sourced from Form 3,4,5. This endpoint only covers US companies at the moment. Limit to 100 transactions per API call. * @summary Insider Transactions * @param {string} symbol Symbol of the company: AAPL. Leave this param blank to get the latest transactions. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ insiderTransactions: async (symbol: string, from?: string, to?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('insiderTransactions', 'symbol', symbol) const localVarPath = `/stock/insider-transactions` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List filings for international companies. Limit to 250 documents at a time. These are the documents we use to source our fundamental data. * @summary International Filings * @param {string} [symbol] Symbol. Leave empty to list latest filings. * @param {string} [country] Filter by country using country\'s 2-letter code. * @param {*} [options] Override http request option. * @throws {RequiredError} */ internationalFilings: async (symbol?: string, country?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/international-filings` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (country !== undefined) { localVarQueryParameter['country'] = country } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Thematic investing involves creating a portfolio (or portion of a portfolio) by gathering together a collection of companies involved in certain areas that you predict will generate above-market returns over the long term. Themes can be based on a concept such as ageing populations or a sub-sector such as robotics, and drones. Thematic investing focuses on predicted long-term trends rather than specific companies or sectors, enabling investors to access structural, one-off shifts that can change an entire industry.

This endpoint will help you get portfolios of different investment themes that are changing our life and are the way of the future.

A full list of themes supported can be found here. The theme coverage and portfolios are updated bi-weekly by our analysts. Our approach excludes penny, super-small cap and illiquid stocks.

* @summary Investment Themes (Thematic Investing) * @param {string} theme Investment theme. A full list of themes supported can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp=sharing\">here</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ investmentThemes: async (theme: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'theme' is not null or undefined assertParamExists('investmentThemes', 'theme', theme) const localVarPath = `/stock/investment-theme` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (theme !== undefined) { localVarQueryParameter['theme'] = theme } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get recent and upcoming IPO. * @summary IPO Calendar * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ipoCalendar: async (from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'from' is not null or undefined assertParamExists('ipoCalendar', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('ipoCalendar', 'to', to) const localVarPath = `/calendar/ipo` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get latest market news. * @summary Market News * @param {string} category This parameter can be 1 of the following values <code>general, forex, crypto, merger</code>. * @param {number} [minId] Use this field to get only news after this ID. Default to 0 * @param {*} [options] Override http request option. * @throws {RequiredError} */ marketNews: async (category: string, minId?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'category' is not null or undefined assertParamExists('marketNews', 'category', category) const localVarPath = `/news` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (category !== undefined) { localVarQueryParameter['category'] = category } if (minId !== undefined) { localVarQueryParameter['minId'] = minId } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get Mutual Funds country exposure data. * @summary Mutual Funds Country Exposure * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundCountryExposure: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('mutualFundCountryExposure', 'symbol', symbol) const localVarPath = `/mutual-fund/country` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get full Mutual Funds holdings/constituents. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Holdings * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundHoldings: async (symbol?: string, isin?: string, skip?: number, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/mutual-fund/holdings` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (isin !== undefined) { localVarQueryParameter['isin'] = isin } if (skip !== undefined) { localVarQueryParameter['skip'] = skip } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get mutual funds profile information. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Profile * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundProfile: async (symbol?: string, isin?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/mutual-fund/profile` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (isin !== undefined) { localVarQueryParameter['isin'] = isin } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get Mutual Funds sector exposure data. * @summary Mutual Funds Sector Exposure * @param {string} symbol Mutual Fund symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundSectorExposure: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('mutualFundSectorExposure', 'symbol', symbol) const localVarPath = `/mutual-fund/sector` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get company\'s news sentiment and statistics. This endpoint is only available for US companies. * @summary News Sentiment * @param {string} symbol Company symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ newsSentiment: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('newsSentiment', 'symbol', symbol) const localVarPath = `/news-sentiment` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get a full list of shareholders of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ownership: async (symbol: string, limit?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('ownership', 'symbol', symbol) const localVarPath = `/stock/ownership` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (limit !== undefined) { localVarQueryParameter['limit'] = limit } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Run pattern recognition algorithm on a symbol. Support double top/bottom, triple top/bottom, head and shoulders, triangle, wedge, channel, flag, and candlestick patterns. * @summary Pattern Recognition * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ patternRecognition: async (symbol: string, resolution: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('patternRecognition', 'symbol', symbol) // verify required parameter 'resolution' is not null or undefined assertParamExists('patternRecognition', 'resolution', resolution) const localVarPath = `/scan/pattern` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (resolution !== undefined) { localVarQueryParameter['resolution'] = resolution } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get latest major press releases of a company. This data can be used to highlight the most significant events comprised of mostly press releases sourced from the exchanges, BusinessWire, AccessWire, GlobeNewswire, Newsfile, and PRNewswire.

Full-text press releases data is available for Enterprise clients. Contact Us to learn more.

* @summary Major Press Releases * @param {string} symbol Company symbol. * @param {string} [from] From time: 2020-01-01. * @param {string} [to] To time: 2020-01-05. * @param {*} [options] Override http request option. * @throws {RequiredError} */ pressReleases: async (symbol: string, from?: string, to?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('pressReleases', 'symbol', symbol) const localVarPath = `/press-releases` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get latest price target consensus. * @summary Price Target * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ priceTarget: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('priceTarget', 'symbol', symbol) const localVarPath = `/stock/price-target` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get real-time quote data for US stocks. Constant polling is not recommended. Use websocket if you need real-time updates.

Real-time stock prices for international markets are supported for Enterprise clients via our partner\'s feed. Contact Us to learn more.

* @summary Quote * @param {string} symbol Symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ quote: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('quote', 'symbol', symbol) const localVarPath = `/quote` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get latest analyst recommendation trends for a company. * @summary Recommendation Trends * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ recommendationTrends: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('recommendationTrends', 'symbol', symbol) const localVarPath = `/stock/recommendation` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get revenue breakdown by product. This dataset is only available for US companies which disclose their revenue breakdown in the annual or quarterly reports. * @summary Revenue Breakdown * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revenueBreakdown: async (symbol?: string, cik?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/revenue-breakdown` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (cik !== undefined) { localVarQueryParameter['cik'] = cik } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Calculate the textual difference between a company\'s 10-K / 10-Q reports and the same type of report in the previous year using Cosine Similarity. For example, this endpoint compares 2019\'s 10-K with 2018\'s 10-K. Companies breaking from its routines in disclosure of financial condition and risk analysis section can signal a significant change in the company\'s stock price in the upcoming 4 quarters.

* @summary Similarity Index * @param {string} [symbol] Symbol. Required if cik is empty * @param {string} [cik] CIK. Required if symbol is empty * @param {string} [freq] <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ similarityIndex: async (symbol?: string, cik?: string, freq?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/similarity-index` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (cik !== undefined) { localVarQueryParameter['cik'] = cik } if (freq !== undefined) { localVarQueryParameter['freq'] = freq } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get social sentiment for stocks on Reddit and Twitter. This endpoint is currently in Beta.

* @summary Social Sentiment * @param {string} symbol Company symbol. * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ socialSentiment: async (symbol: string, from?: string, to?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('socialSentiment', 'symbol', symbol) const localVarPath = `/stock/social-sentiment` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get global dividends data. * @summary Dividends 2 (Basic) * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockBasicDividends: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockBasicDividends', 'symbol', symbol) const localVarPath = `/stock/dividend2` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get last bid/ask data for US stocks. * @summary Last Bid-Ask * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockBidask: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockBidask', 'symbol', symbol) const localVarPath = `/stock/bidask` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get candlestick data (OHLCV) for stocks.

Daily data will be adjusted for Splits. Intraday data will remain unadjusted.

* @summary Stock Candles * @param {string} symbol Symbol. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockCandles: async (symbol: string, resolution: string, from: number, to: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockCandles', 'symbol', symbol) // verify required parameter 'resolution' is not null or undefined assertParamExists('stockCandles', 'resolution', resolution) // verify required parameter 'from' is not null or undefined assertParamExists('stockCandles', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('stockCandles', 'to', to) const localVarPath = `/stock/candle` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (resolution !== undefined) { localVarQueryParameter['resolution'] = resolution } if (from !== undefined) { localVarQueryParameter['from'] = from } if (to !== undefined) { localVarQueryParameter['to'] = to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get dividends data for common stocks going back 30 years. * @summary Dividends * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockDividends: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockDividends', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('stockDividends', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('stockDividends', 'to', to) const localVarPath = `/stock/dividend` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get a list of reported lobbying activities in the Senate and the House. * @summary Senate Lobbying * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockLobbying: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockLobbying', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('stockLobbying', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('stockLobbying', 'to', to) const localVarPath = `/stock/lobbying` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get historical best bid and offer for US stocks, LSE, TSX, Euronext and Deutsche Borse.

For US market, this endpoint only serves historical NBBO from the beginning of 2020. To download more historical data, please visit our bulk download page in the Dashboard here.

* @summary Historical NBBO * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockNbbo: async (symbol: string, date: string, limit: number, skip: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockNbbo', 'symbol', symbol) // verify required parameter 'date' is not null or undefined assertParamExists('stockNbbo', 'date', date) // verify required parameter 'limit' is not null or undefined assertParamExists('stockNbbo', 'limit', limit) // verify required parameter 'skip' is not null or undefined assertParamExists('stockNbbo', 'skip', skip) const localVarPath = `/stock/bbo` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (date !== undefined) { localVarQueryParameter['date'] = (date as any) instanceof Date ? (date as any).toISOString().substr(0, 10) : date } if (limit !== undefined) { localVarQueryParameter['limit'] = limit } if (skip !== undefined) { localVarQueryParameter['skip'] = skip } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get splits data for stocks. * @summary Splits * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockSplits: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockSplits', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('stockSplits', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('stockSplits', 'to', to) const localVarPath = `/stock/split` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List supported stocks. We use the following symbology to identify stocks on Finnhub Exchange_Ticker.Exchange_Code. A list of supported exchange codes can be found here. * @summary Stock Symbol * @param {string} exchange Exchange you want to get the list of symbols from. List of exchange codes can be found <a href=\"https://docs.google.com/spreadsheets/d/1I3pBxjfXB056-g_JYf_6o3Rns3BV2kMGG1nCatb91ls/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {string} [mic] Filter by MIC code. * @param {string} [securityType] Filter by security type used by OpenFigi standard. * @param {string} [currency] Filter by currency. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockSymbols: async (exchange: string, mic?: string, securityType?: string, currency?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'exchange' is not null or undefined assertParamExists('stockSymbols', 'exchange', exchange) const localVarPath = `/stock/symbol` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (exchange !== undefined) { localVarQueryParameter['exchange'] = exchange } if (mic !== undefined) { localVarQueryParameter['mic'] = mic } if (securityType !== undefined) { localVarQueryParameter['securityType'] = securityType } if (currency !== undefined) { localVarQueryParameter['currency'] = currency } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get historical tick data for global exchanges. You can send the request directly to our tick server at https://tick.finnhub.io/ with the same path and parameters or get redirected there if you call our main server.

For US market, you can visit our bulk download page in the Dashboard here to speed up the download process.

Exchange Segment Delay
US CTA/UTP Full SIP 15 minute
TSX
  • TSX
  • TSX Venture
  • Index
End-of-day
LSE
  • London Stock Exchange (L)
  • LSE International (L)
  • LSE European (L)
15 minute
Euronext
  • Euronext Paris (PA)
  • Euronext Amsterdam (AS)
  • Euronext Lisbon (LS)
  • Euronext Brussels (BR)
  • Euronext Oslo (OL)
  • Euronext London (LN)
  • Euronext Dublin (IR)
  • Index
  • Warrant
End-of-day
Deutsche Börse
  • Frankfurt (F)
  • Xetra (DE)
  • Duesseldorf (DU)
  • Hamburg (HM)
  • Berlin (BE)
  • Hanover (HA)
  • Stoxx (SX)
  • TradeGate (TG)
  • Zertifikate (SC)
  • Index
  • Warrant
End-of-day
* @summary Tick Data * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockTick: async (symbol: string, date: string, limit: number, skip: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockTick', 'symbol', symbol) // verify required parameter 'date' is not null or undefined assertParamExists('stockTick', 'date', date) // verify required parameter 'limit' is not null or undefined assertParamExists('stockTick', 'limit', limit) // verify required parameter 'skip' is not null or undefined assertParamExists('stockTick', 'skip', skip) const localVarPath = `/stock/tick` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (date !== undefined) { localVarQueryParameter['date'] = (date as any) instanceof Date ? (date as any).toISOString().substr(0, 10) : date } if (limit !== undefined) { localVarQueryParameter['limit'] = limit } if (skip !== undefined) { localVarQueryParameter['skip'] = skip } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get a list of government\'s spending activities from USASpending dataset for public companies. This dataset can help you identify companies that win big government contracts which is extremely important for industries such as Defense, Aerospace, and Education. * @summary USA Spending * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {string} to To date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockUsaSpending: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockUsaSpending', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('stockUsaSpending', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('stockUsaSpending', 'to', to) const localVarPath = `/stock/usa-spending` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List USPTO patents for companies. Limit to 250 records per API call. * @summary USPTO Patents * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockUsptoPatent: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockUsptoPatent', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('stockUsptoPatent', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('stockUsptoPatent', 'to', to) const localVarPath = `/stock/uspto-patent` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get a list of H1-B and Permanent visa applications for companies from the DOL. The data is updated quarterly. * @summary H1-B Visa Application * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {string} to To date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockVisaApplication: async (symbol: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('stockVisaApplication', 'symbol', symbol) // verify required parameter 'from' is not null or undefined assertParamExists('stockVisaApplication', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('stockVisaApplication', 'to', to) const localVarPath = `/stock/visa-application` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

This endpoint provides an overall map of public companies\' key customers and suppliers. The data offers a deeper look into a company\'s supply chain and how products are created. The data will help investors manage risk, limit exposure or generate alpha-generating ideas and trading insights.

* @summary Supply Chain Relationships * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ supplyChainRelationships: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('supplyChainRelationships', 'symbol', symbol) const localVarPath = `/stock/supply-chain` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get support and resistance levels for a symbol. * @summary Support/Resistance * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ supportResistance: async (symbol: string, resolution: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('supportResistance', 'symbol', symbol) // verify required parameter 'resolution' is not null or undefined assertParamExists('supportResistance', 'resolution', resolution) const localVarPath = `/scan/support-resistance` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (resolution !== undefined) { localVarQueryParameter['resolution'] = resolution } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Search for best-matching symbols based on your query. You can input anything from symbol, security\'s name to ISIN and Cusip. * @summary Symbol Lookup * @param {string} q Query text can be symbol, name, isin, or cusip. * @param {*} [options] Override http request option. * @throws {RequiredError} */ symbolSearch: async (q: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'q' is not null or undefined assertParamExists('symbolSearch', 'q', q) const localVarPath = `/search` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (q !== undefined) { localVarQueryParameter['q'] = q } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Return technical indicator with price data. List of supported indicators can be found here. * @summary Technical Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {string} indicator Indicator name. Full list can be found <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {object} [indicatorFields] Check out <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">this page</a> to see which indicators and params are supported. * @param {*} [options] Override http request option. * @throws {RequiredError} */ technicalIndicator: async (symbol: string, resolution: string, from: number, to: number, indicator: string, indicatorFields?: object, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('technicalIndicator', 'symbol', symbol) // verify required parameter 'resolution' is not null or undefined assertParamExists('technicalIndicator', 'resolution', resolution) // verify required parameter 'from' is not null or undefined assertParamExists('technicalIndicator', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('technicalIndicator', 'to', to) // verify required parameter 'indicator' is not null or undefined assertParamExists('technicalIndicator', 'indicator', indicator) const localVarPath = `/indicator` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (resolution !== undefined) { localVarQueryParameter['resolution'] = resolution } if (from !== undefined) { localVarQueryParameter['from'] = from } if (to !== undefined) { localVarQueryParameter['to'] = to } if (indicator !== undefined) { localVarQueryParameter['indicator'] = indicator } localVarHeaderParameter['Content-Type'] = 'application/json' setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } localVarRequestOptions.data = serializeDataIfNeeded(indicatorFields, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** *

Get earnings call transcripts, audio and participants\' list. This endpoint is only available for US, UK, and Candian companies.

15+ years of data is available with 220,000+ audio which add up to 7TB in size.

* @summary Earnings Call Transcripts * @param {string} id Transcript\'s id obtained with <a href=\"#transcripts-list\">Transcripts List endpoint</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ transcripts: async (id: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('transcripts', 'id', id) const localVarPath = `/stock/transcripts` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (id !== undefined) { localVarQueryParameter['id'] = id } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * List earnings call transcripts\' metadata. This endpoint is available for US, UK, European, Australian and Canadian companies. * @summary Earnings Call Transcripts List * @param {string} symbol Company symbol: AAPL. Leave empty to list the latest transcripts * @param {*} [options] Override http request option. * @throws {RequiredError} */ transcriptsList: async (symbol: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'symbol' is not null or undefined assertParamExists('transcriptsList', 'symbol', symbol) const localVarPath = `/stock/transcripts/list` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, /** * Get latest stock upgrade and downgrade. * @summary Stock Upgrade/Downgrade * @param {string} [symbol] Symbol of the company: AAPL. If left blank, the API will return latest stock upgrades/downgrades. * @param {string} [from] From date: 2000-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ upgradeDowngrade: async (symbol?: string, from?: string, to?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/stock/upgrade-downgrade` // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) let baseOptions if (configuration) { baseOptions = configuration.baseOptions } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options } const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any // authentication api_key required await setApiKeyToObject(localVarQueryParameter, 'token', configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol } if (from !== undefined) { localVarQueryParameter['from'] = (from as any) instanceof Date ? (from as any).toISOString().substr(0, 10) : from } if (to !== undefined) { localVarQueryParameter['to'] = (to as any) instanceof Date ? (to as any).toISOString().substr(0, 10) : to } setSearchParams(localVarUrlObj, localVarQueryParameter) let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, } }, } } /** * DefaultApi - functional programming interface * @export */ export const DefaultApiFp = function (configuration?: Configuration) { const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) return { /** * Get aggregate signal of multiple technical indicators such as MACD, RSI, Moving Average v.v. * @summary Aggregate Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async aggregateIndicator(symbol: string, resolution: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateIndicator(symbol, resolution, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get end-of-day bond\'s price data. * @summary Bond price data * @param {string} isin ISIN. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bondPrice(isin: string, from: number, to: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.bondPrice(isin, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get general information of a bond. You can query by FIGI, ISIN or CUSIP * @summary Bond Profile * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {string} [figi] FIGI * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bondProfile(isin?: string, cusip?: string, figi?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.bondProfile(isin, cusip, figi, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company basic financials such as margin, P/E ratio, 52-week high/low etc. * @summary Basic Financials * @param {string} symbol Symbol of the company: AAPL. * @param {string} metric Metric type. Can be 1 of the following values <code>all</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyBasicFinancials(symbol: string, metric: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyBasicFinancials(symbol, metric, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company historical quarterly earnings surprise going back to 2000. * @summary Earnings Surprises * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of period returned. Leave blank to get the full history. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyEarnings(symbol: string, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyEarnings(symbol, limit, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

This endpoint provides Earnings Quality Score for global companies.

Earnings quality refers to the extent to which current earnings predict future earnings. \"High-quality\" earnings are expected to persist, while \"low-quality\" earnings do not. A higher score means a higher earnings quality

Finnhub uses a proprietary model which takes into consideration 4 criteria:

  • Profitability
  • Growth
  • Cash Generation & Capital Allocation
  • Leverage

We then compare the metrics of each company in each category against its peers in the same industry to gauge how quality its earnings is.

* @summary Company Earnings Quality Score * @param {string} symbol Symbol. * @param {string} freq Frequency. Currently support <code>annual</code> and <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyEarningsQualityScore(symbol: string, freq: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyEarningsQualityScore(symbol, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company\'s ebit estimates. * @summary EBIT Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyEbitEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyEbitEstimates(symbol, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company\'s ebitda estimates. * @summary EBITDA Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyEbitdaEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyEbitdaEstimates(symbol, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company\'s EPS estimates. * @summary Earnings Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyEpsEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyEpsEstimates(symbol, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

This endpoint provides ESG scores and important indicators for 1000+ global companies. The data is collected through company\'s public ESG disclosure and public sources.

Our ESG scoring models takes into account more than 150 different inputs to calculate the level of ESG risks and how well a company is managing them. A higher score means lower ESG risk or better ESG management. ESG scores are in the the range of 0-100. Some key indicators might contain letter-grade score from C- to A+ with C- is the lowest score and A+ is the highest score.

* @summary Company ESG Scores * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyEsgScore(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyEsgScore(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get a list of company\'s executives and members of the Board. * @summary Company Executive * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyExecutive(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyExecutive(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List latest company news by symbol. This endpoint is only available for North American companies. * @summary Company News * @param {string} symbol Company symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyNews(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyNews(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company peers. Return a list of peers in the same country and sub-industry * @summary Peers * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyPeers(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyPeers(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get general information of a company. You can query by symbol, ISIN or CUSIP * @summary Company Profile * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyProfile(symbol?: string, isin?: string, cusip?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyProfile(symbol, isin, cusip, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get general information of a company. You can query by symbol, ISIN or CUSIP. This is the free version of Company Profile. * @summary Company Profile 2 * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyProfile2(symbol?: string, isin?: string, cusip?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyProfile2(symbol, isin, cusip, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company\'s revenue estimates. * @summary Revenue Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async companyRevenueEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.companyRevenueEstimates(symbol, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List all countries and metadata. * @summary Country Metadata * @param {*} [options] Override http request option. * @throws {RequiredError} */ async country(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.country(options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get real-time updates on the number of COVID-19 (Corona virus) cases in the US with a state-by-state breakdown. Data is sourced from CDC and reputable sources. You can also access this API here * @summary COVID-19 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async covid19(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.covid19(options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get candlestick data for crypto symbols. * @summary Crypto Candles * @param {string} symbol Use symbol returned in <code>/crypto/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async cryptoCandles(symbol: string, resolution: string, from: number, to: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.cryptoCandles(symbol, resolution, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List supported crypto exchanges * @summary Crypto Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} */ async cryptoExchanges(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.cryptoExchanges(options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get crypto\'s profile. * @summary Crypto Profile * @param {string} symbol Crypto symbol such as BTC or ETH. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async cryptoProfile(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.cryptoProfile(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List supported crypto symbols by exchange * @summary Crypto Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async cryptoSymbols(exchange: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.cryptoSymbols(exchange, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get historical and coming earnings release. EPS and Revenue in this endpoint are non-GAAP, which means they are adjusted to exclude some one-time or unusual items. This is the same data investors usually react to and talked about on the media. Estimates are sourced from both sell-side and buy-side analysts. * @summary Earnings Calendar * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {string} [symbol] Filter by symbol: AAPL. * @param {boolean} [international] Set to <code>true</code> to include international markets. Default value is <code>false</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async earningsCalendar(from?: string, to?: string, symbol?: string, international?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.earningsCalendar(from, to, symbol, international, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get recent and upcoming economic releases.

Historical events and surprises are available for Enterprise clients.

* @summary Economic Calendar * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async economicCalendar(from?: string, to?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.economicCalendar(from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List codes of supported economic data. * @summary Economic Code * @param {*} [options] Override http request option. * @throws {RequiredError} */ async economicCode(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.economicCode(options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get economic data. * @summary Economic Data * @param {string} code Economic code. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async economicData(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.economicData(code, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get ETF country exposure data. * @summary ETFs Country Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async etfsCountryExposure(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.etfsCountryExposure(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get full ETF holdings/constituents. This endpoint has global coverage. Widget only shows top 10 holdings. * @summary ETFs Holdings * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {string} [date] Query holdings by date. You can use either this param or <code>skip</code> param, not both. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async etfsHoldings(symbol?: string, isin?: string, skip?: number, date?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.etfsHoldings(symbol, isin, skip, date, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get ETF profile information. This endpoint has global coverage. * @summary ETFs Profile * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async etfsProfile(symbol?: string, isin?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.etfsProfile(symbol, isin, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get ETF sector exposure data. * @summary ETFs Sector Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async etfsSectorExposure(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.etfsSectorExposure(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * FDA\'s advisory committees are established to provide functions which support the agency\'s mission of protecting and promoting the public health, while meeting the requirements set forth in the Federal Advisory Committee Act. Committees are either mandated by statute or established at the discretion of the Department of Health and Human Services. Each committee is subject to renewal at two-year intervals unless the committee charter states otherwise. * @summary FDA Committee Meeting Calendar * @param {*} [options] Override http request option. * @throws {RequiredError} */ async fdaCommitteeMeetingCalendar(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.fdaCommitteeMeetingCalendar(options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List company\'s filing. Limit to 250 documents at a time. This data is available for bulk download on Kaggle SEC Filings database. * @summary SEC Filings * @param {string} [symbol] Symbol. Leave <code>symbol</code>,<code>cik</code> and <code>accessNumber</code> empty to list latest filings. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve data from. * @param {string} [form] Filter by form. You can use this value <code>NT 10-K</code> to find non-timely filings for a company. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async filings(symbol?: string, cik?: string, accessNumber?: string, form?: string, from?: string, to?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.filings(symbol, cik, accessNumber, form, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get sentiment analysis of 10-K and 10-Q filings from SEC. An abnormal increase in the number of positive/negative words in filings can signal a significant change in the company\'s stock price in the upcoming 4 quarters. We make use of Loughran and McDonald Sentiment Word Lists to calculate the sentiment for each filing. * @summary SEC Sentiment Analysis * @param {string} accessNumber Access number of a specific report you want to retrieve data from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async filingsSentiment(accessNumber: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.filingsSentiment(accessNumber, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get standardized balance sheet, income statement and cash flow for global companies going back 30+ years. Data is sourced from original filings most of which made available through SEC Filings and International Filings endpoints.

Wondering why our standardized data is different from Bloomberg, Reuters, Factset, S&P or Yahoo Finance ? Check out our FAQ page to learn more

* @summary Financial Statements * @param {string} symbol Symbol of the company: AAPL. * @param {string} statement Statement can take 1 of these values <code>bs, ic, cf</code> for Balance Sheet, Income Statement, Cash Flow respectively. * @param {string} freq Frequency can take 1 of these values <code>annual, quarterly, ttm, ytd</code>. TTM (Trailing Twelve Months) option is available for Income Statement and Cash Flow. YTD (Year To Date) option is only available for Cash Flow. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async financials(symbol: string, statement: string, freq: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.financials(symbol, statement, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get financials as reported. This data is available for bulk download on Kaggle SEC Financials database. * @summary Financials As Reported * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve financials from. * @param {string} [freq] Frequency. Can be either <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async financialsReported(symbol?: string, cik?: string, accessNumber?: string, freq?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.financialsReported(symbol, cik, accessNumber, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get candlestick data for forex symbols. * @summary Forex Candles * @param {string} symbol Use symbol returned in <code>/forex/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async forexCandles(symbol: string, resolution: string, from: number, to: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.forexCandles(symbol, resolution, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List supported forex exchanges * @summary Forex Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} */ async forexExchanges(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.forexExchanges(options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get rates for all forex pairs. Ideal for currency conversion * @summary Forex rates * @param {string} [base] Base currency. Default to EUR. * @param {string} [date] Date. Leave blank to get the latest data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async forexRates(base?: string, date?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.forexRates(base, date, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List supported forex symbols. * @summary Forex Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async forexSymbols(exchange: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.forexSymbols(exchange, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get a full list fund and institutional investors of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Fund Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async fundOwnership(symbol: string, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.fundOwnership(symbol, limit, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get a list of index\'s constituents. A list of supported indices for this endpoint can be found here. * @summary Indices Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ async indicesConstituents(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.indicesConstituents(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get full history of index\'s constituents including symbols and dates of joining and leaving the Index. Currently support ^GSPC, ^NDX, ^DJI * @summary Indices Historical Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ async indicesHistoricalConstituents(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.indicesHistoricalConstituents(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get insider sentiment data for US companies calculated using method discussed here. The MSPR ranges from -100 for the most negative to 100 for the most positive which can signal price changes in the coming 30-90 days. * @summary Insider Sentiment * @param {string} symbol Symbol of the company: AAPL. * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async insiderSentiment(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.insiderSentiment(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Company insider transactions data sourced from Form 3,4,5. This endpoint only covers US companies at the moment. Limit to 100 transactions per API call. * @summary Insider Transactions * @param {string} symbol Symbol of the company: AAPL. Leave this param blank to get the latest transactions. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async insiderTransactions(symbol: string, from?: string, to?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.insiderTransactions(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List filings for international companies. Limit to 250 documents at a time. These are the documents we use to source our fundamental data. * @summary International Filings * @param {string} [symbol] Symbol. Leave empty to list latest filings. * @param {string} [country] Filter by country using country\'s 2-letter code. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async internationalFilings(symbol?: string, country?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.internationalFilings(symbol, country, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Thematic investing involves creating a portfolio (or portion of a portfolio) by gathering together a collection of companies involved in certain areas that you predict will generate above-market returns over the long term. Themes can be based on a concept such as ageing populations or a sub-sector such as robotics, and drones. Thematic investing focuses on predicted long-term trends rather than specific companies or sectors, enabling investors to access structural, one-off shifts that can change an entire industry.

This endpoint will help you get portfolios of different investment themes that are changing our life and are the way of the future.

A full list of themes supported can be found here. The theme coverage and portfolios are updated bi-weekly by our analysts. Our approach excludes penny, super-small cap and illiquid stocks.

* @summary Investment Themes (Thematic Investing) * @param {string} theme Investment theme. A full list of themes supported can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp=sharing\">here</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async investmentThemes(theme: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.investmentThemes(theme, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get recent and upcoming IPO. * @summary IPO Calendar * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async ipoCalendar(from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.ipoCalendar(from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get latest market news. * @summary Market News * @param {string} category This parameter can be 1 of the following values <code>general, forex, crypto, merger</code>. * @param {number} [minId] Use this field to get only news after this ID. Default to 0 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async marketNews(category: string, minId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.marketNews(category, minId, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get Mutual Funds country exposure data. * @summary Mutual Funds Country Exposure * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mutualFundCountryExposure(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mutualFundCountryExposure(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get full Mutual Funds holdings/constituents. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Holdings * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mutualFundHoldings(symbol?: string, isin?: string, skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mutualFundHoldings(symbol, isin, skip, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get mutual funds profile information. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Profile * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mutualFundProfile(symbol?: string, isin?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mutualFundProfile(symbol, isin, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get Mutual Funds sector exposure data. * @summary Mutual Funds Sector Exposure * @param {string} symbol Mutual Fund symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mutualFundSectorExposure(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mutualFundSectorExposure(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get company\'s news sentiment and statistics. This endpoint is only available for US companies. * @summary News Sentiment * @param {string} symbol Company symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async newsSentiment(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.newsSentiment(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get a full list of shareholders of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async ownership(symbol: string, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.ownership(symbol, limit, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Run pattern recognition algorithm on a symbol. Support double top/bottom, triple top/bottom, head and shoulders, triangle, wedge, channel, flag, and candlestick patterns. * @summary Pattern Recognition * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async patternRecognition(symbol: string, resolution: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patternRecognition(symbol, resolution, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get latest major press releases of a company. This data can be used to highlight the most significant events comprised of mostly press releases sourced from the exchanges, BusinessWire, AccessWire, GlobeNewswire, Newsfile, and PRNewswire.

Full-text press releases data is available for Enterprise clients. Contact Us to learn more.

* @summary Major Press Releases * @param {string} symbol Company symbol. * @param {string} [from] From time: 2020-01-01. * @param {string} [to] To time: 2020-01-05. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async pressReleases(symbol: string, from?: string, to?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.pressReleases(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get latest price target consensus. * @summary Price Target * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async priceTarget(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.priceTarget(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get real-time quote data for US stocks. Constant polling is not recommended. Use websocket if you need real-time updates.

Real-time stock prices for international markets are supported for Enterprise clients via our partner\'s feed. Contact Us to learn more.

* @summary Quote * @param {string} symbol Symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ async quote(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.quote(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get latest analyst recommendation trends for a company. * @summary Recommendation Trends * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async recommendationTrends(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.recommendationTrends(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get revenue breakdown by product. This dataset is only available for US companies which disclose their revenue breakdown in the annual or quarterly reports. * @summary Revenue Breakdown * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async revenueBreakdown(symbol?: string, cik?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revenueBreakdown(symbol, cik, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Calculate the textual difference between a company\'s 10-K / 10-Q reports and the same type of report in the previous year using Cosine Similarity. For example, this endpoint compares 2019\'s 10-K with 2018\'s 10-K. Companies breaking from its routines in disclosure of financial condition and risk analysis section can signal a significant change in the company\'s stock price in the upcoming 4 quarters.

* @summary Similarity Index * @param {string} [symbol] Symbol. Required if cik is empty * @param {string} [cik] CIK. Required if symbol is empty * @param {string} [freq] <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async similarityIndex(symbol?: string, cik?: string, freq?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.similarityIndex(symbol, cik, freq, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get social sentiment for stocks on Reddit and Twitter. This endpoint is currently in Beta.

* @summary Social Sentiment * @param {string} symbol Company symbol. * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async socialSentiment(symbol: string, from?: string, to?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.socialSentiment(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get global dividends data. * @summary Dividends 2 (Basic) * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockBasicDividends(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockBasicDividends(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get last bid/ask data for US stocks. * @summary Last Bid-Ask * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockBidask(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockBidask(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get candlestick data (OHLCV) for stocks.

Daily data will be adjusted for Splits. Intraday data will remain unadjusted.

* @summary Stock Candles * @param {string} symbol Symbol. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockCandles(symbol: string, resolution: string, from: number, to: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockCandles(symbol, resolution, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get dividends data for common stocks going back 30 years. * @summary Dividends * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockDividends(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockDividends(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get a list of reported lobbying activities in the Senate and the House. * @summary Senate Lobbying * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockLobbying(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockLobbying(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get historical best bid and offer for US stocks, LSE, TSX, Euronext and Deutsche Borse.

For US market, this endpoint only serves historical NBBO from the beginning of 2020. To download more historical data, please visit our bulk download page in the Dashboard here.

* @summary Historical NBBO * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockNbbo(symbol: string, date: string, limit: number, skip: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockNbbo(symbol, date, limit, skip, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get splits data for stocks. * @summary Splits * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockSplits(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockSplits(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List supported stocks. We use the following symbology to identify stocks on Finnhub Exchange_Ticker.Exchange_Code. A list of supported exchange codes can be found here. * @summary Stock Symbol * @param {string} exchange Exchange you want to get the list of symbols from. List of exchange codes can be found <a href=\"https://docs.google.com/spreadsheets/d/1I3pBxjfXB056-g_JYf_6o3Rns3BV2kMGG1nCatb91ls/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {string} [mic] Filter by MIC code. * @param {string} [securityType] Filter by security type used by OpenFigi standard. * @param {string} [currency] Filter by currency. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockSymbols(exchange: string, mic?: string, securityType?: string, currency?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockSymbols(exchange, mic, securityType, currency, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get historical tick data for global exchanges. You can send the request directly to our tick server at https://tick.finnhub.io/ with the same path and parameters or get redirected there if you call our main server.

For US market, you can visit our bulk download page in the Dashboard here to speed up the download process.

Exchange Segment Delay
US CTA/UTP Full SIP 15 minute
TSX
  • TSX
  • TSX Venture
  • Index
End-of-day
LSE
  • London Stock Exchange (L)
  • LSE International (L)
  • LSE European (L)
15 minute
Euronext
  • Euronext Paris (PA)
  • Euronext Amsterdam (AS)
  • Euronext Lisbon (LS)
  • Euronext Brussels (BR)
  • Euronext Oslo (OL)
  • Euronext London (LN)
  • Euronext Dublin (IR)
  • Index
  • Warrant
End-of-day
Deutsche Börse
  • Frankfurt (F)
  • Xetra (DE)
  • Duesseldorf (DU)
  • Hamburg (HM)
  • Berlin (BE)
  • Hanover (HA)
  • Stoxx (SX)
  • TradeGate (TG)
  • Zertifikate (SC)
  • Index
  • Warrant
End-of-day
* @summary Tick Data * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockTick(symbol: string, date: string, limit: number, skip: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockTick(symbol, date, limit, skip, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get a list of government\'s spending activities from USASpending dataset for public companies. This dataset can help you identify companies that win big government contracts which is extremely important for industries such as Defense, Aerospace, and Education. * @summary USA Spending * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {string} to To date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockUsaSpending(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockUsaSpending(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List USPTO patents for companies. Limit to 250 records per API call. * @summary USPTO Patents * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockUsptoPatent(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockUsptoPatent(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get a list of H1-B and Permanent visa applications for companies from the DOL. The data is updated quarterly. * @summary H1-B Visa Application * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {string} to To date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stockVisaApplication(symbol: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stockVisaApplication(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

This endpoint provides an overall map of public companies\' key customers and suppliers. The data offers a deeper look into a company\'s supply chain and how products are created. The data will help investors manage risk, limit exposure or generate alpha-generating ideas and trading insights.

* @summary Supply Chain Relationships * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async supplyChainRelationships(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.supplyChainRelationships(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get support and resistance levels for a symbol. * @summary Support/Resistance * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async supportResistance(symbol: string, resolution: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.supportResistance(symbol, resolution, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Search for best-matching symbols based on your query. You can input anything from symbol, security\'s name to ISIN and Cusip. * @summary Symbol Lookup * @param {string} q Query text can be symbol, name, isin, or cusip. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async symbolSearch(q: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.symbolSearch(q, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Return technical indicator with price data. List of supported indicators can be found here. * @summary Technical Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {string} indicator Indicator name. Full list can be found <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {object} [indicatorFields] Check out <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">this page</a> to see which indicators and params are supported. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async technicalIndicator(symbol: string, resolution: string, from: number, to: number, indicator: string, indicatorFields?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.technicalIndicator(symbol, resolution, from, to, indicator, indicatorFields, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** *

Get earnings call transcripts, audio and participants\' list. This endpoint is only available for US, UK, and Candian companies.

15+ years of data is available with 220,000+ audio which add up to 7TB in size.

* @summary Earnings Call Transcripts * @param {string} id Transcript\'s id obtained with <a href=\"#transcripts-list\">Transcripts List endpoint</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async transcripts(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.transcripts(id, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * List earnings call transcripts\' metadata. This endpoint is available for US, UK, European, Australian and Canadian companies. * @summary Earnings Call Transcripts List * @param {string} symbol Company symbol: AAPL. Leave empty to list the latest transcripts * @param {*} [options] Override http request option. * @throws {RequiredError} */ async transcriptsList(symbol: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.transcriptsList(symbol, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, /** * Get latest stock upgrade and downgrade. * @summary Stock Upgrade/Downgrade * @param {string} [symbol] Symbol of the company: AAPL. If left blank, the API will return latest stock upgrades/downgrades. * @param {string} [from] From date: 2000-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async upgradeDowngrade(symbol?: string, from?: string, to?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeDowngrade(symbol, from, to, options) return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) }, } } /** * DefaultApi - factory interface * @export */ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DefaultApiFp(configuration) return { /** * Get aggregate signal of multiple technical indicators such as MACD, RSI, Moving Average v.v. * @summary Aggregate Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ aggregateIndicator(symbol: string, resolution: string, options?: any): AxiosPromise { return localVarFp.aggregateIndicator(symbol, resolution, options).then((request) => request(axios, basePath)) }, /** * Get end-of-day bond\'s price data. * @summary Bond price data * @param {string} isin ISIN. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ bondPrice(isin: string, from: number, to: number, options?: any): AxiosPromise { return localVarFp.bondPrice(isin, from, to, options).then((request) => request(axios, basePath)) }, /** * Get general information of a bond. You can query by FIGI, ISIN or CUSIP * @summary Bond Profile * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {string} [figi] FIGI * @param {*} [options] Override http request option. * @throws {RequiredError} */ bondProfile(isin?: string, cusip?: string, figi?: string, options?: any): AxiosPromise { return localVarFp.bondProfile(isin, cusip, figi, options).then((request) => request(axios, basePath)) }, /** * Get company basic financials such as margin, P/E ratio, 52-week high/low etc. * @summary Basic Financials * @param {string} symbol Symbol of the company: AAPL. * @param {string} metric Metric type. Can be 1 of the following values <code>all</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyBasicFinancials(symbol: string, metric: string, options?: any): AxiosPromise { return localVarFp.companyBasicFinancials(symbol, metric, options).then((request) => request(axios, basePath)) }, /** * Get company historical quarterly earnings surprise going back to 2000. * @summary Earnings Surprises * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of period returned. Leave blank to get the full history. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEarnings(symbol: string, limit?: number, options?: any): AxiosPromise> { return localVarFp.companyEarnings(symbol, limit, options).then((request) => request(axios, basePath)) }, /** *

This endpoint provides Earnings Quality Score for global companies.

Earnings quality refers to the extent to which current earnings predict future earnings. \"High-quality\" earnings are expected to persist, while \"low-quality\" earnings do not. A higher score means a higher earnings quality

Finnhub uses a proprietary model which takes into consideration 4 criteria:

  • Profitability
  • Growth
  • Cash Generation & Capital Allocation
  • Leverage

We then compare the metrics of each company in each category against its peers in the same industry to gauge how quality its earnings is.

* @summary Company Earnings Quality Score * @param {string} symbol Symbol. * @param {string} freq Frequency. Currently support <code>annual</code> and <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEarningsQualityScore(symbol: string, freq: string, options?: any): AxiosPromise { return localVarFp.companyEarningsQualityScore(symbol, freq, options).then((request) => request(axios, basePath)) }, /** * Get company\'s ebit estimates. * @summary EBIT Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEbitEstimates(symbol: string, freq?: string, options?: any): AxiosPromise { return localVarFp.companyEbitEstimates(symbol, freq, options).then((request) => request(axios, basePath)) }, /** * Get company\'s ebitda estimates. * @summary EBITDA Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEbitdaEstimates(symbol: string, freq?: string, options?: any): AxiosPromise { return localVarFp.companyEbitdaEstimates(symbol, freq, options).then((request) => request(axios, basePath)) }, /** * Get company\'s EPS estimates. * @summary Earnings Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEpsEstimates(symbol: string, freq?: string, options?: any): AxiosPromise { return localVarFp.companyEpsEstimates(symbol, freq, options).then((request) => request(axios, basePath)) }, /** *

This endpoint provides ESG scores and important indicators for 1000+ global companies. The data is collected through company\'s public ESG disclosure and public sources.

Our ESG scoring models takes into account more than 150 different inputs to calculate the level of ESG risks and how well a company is managing them. A higher score means lower ESG risk or better ESG management. ESG scores are in the the range of 0-100. Some key indicators might contain letter-grade score from C- to A+ with C- is the lowest score and A+ is the highest score.

* @summary Company ESG Scores * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyEsgScore(symbol: string, options?: any): AxiosPromise { return localVarFp.companyEsgScore(symbol, options).then((request) => request(axios, basePath)) }, /** * Get a list of company\'s executives and members of the Board. * @summary Company Executive * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyExecutive(symbol: string, options?: any): AxiosPromise { return localVarFp.companyExecutive(symbol, options).then((request) => request(axios, basePath)) }, /** * List latest company news by symbol. This endpoint is only available for North American companies. * @summary Company News * @param {string} symbol Company symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyNews(symbol: string, from: string, to: string, options?: any): AxiosPromise> { return localVarFp.companyNews(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * Get company peers. Return a list of peers in the same country and sub-industry * @summary Peers * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyPeers(symbol: string, options?: any): AxiosPromise> { return localVarFp.companyPeers(symbol, options).then((request) => request(axios, basePath)) }, /** * Get general information of a company. You can query by symbol, ISIN or CUSIP * @summary Company Profile * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyProfile(symbol?: string, isin?: string, cusip?: string, options?: any): AxiosPromise { return localVarFp.companyProfile(symbol, isin, cusip, options).then((request) => request(axios, basePath)) }, /** * Get general information of a company. You can query by symbol, ISIN or CUSIP. This is the free version of Company Profile. * @summary Company Profile 2 * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyProfile2(symbol?: string, isin?: string, cusip?: string, options?: any): AxiosPromise { return localVarFp.companyProfile2(symbol, isin, cusip, options).then((request) => request(axios, basePath)) }, /** * Get company\'s revenue estimates. * @summary Revenue Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ companyRevenueEstimates(symbol: string, freq?: string, options?: any): AxiosPromise { return localVarFp.companyRevenueEstimates(symbol, freq, options).then((request) => request(axios, basePath)) }, /** * List all countries and metadata. * @summary Country Metadata * @param {*} [options] Override http request option. * @throws {RequiredError} */ country(options?: any): AxiosPromise> { return localVarFp.country(options).then((request) => request(axios, basePath)) }, /** * Get real-time updates on the number of COVID-19 (Corona virus) cases in the US with a state-by-state breakdown. Data is sourced from CDC and reputable sources. You can also access this API here * @summary COVID-19 * @param {*} [options] Override http request option. * @throws {RequiredError} */ covid19(options?: any): AxiosPromise> { return localVarFp.covid19(options).then((request) => request(axios, basePath)) }, /** * Get candlestick data for crypto symbols. * @summary Crypto Candles * @param {string} symbol Use symbol returned in <code>/crypto/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoCandles(symbol: string, resolution: string, from: number, to: number, options?: any): AxiosPromise { return localVarFp.cryptoCandles(symbol, resolution, from, to, options).then((request) => request(axios, basePath)) }, /** * List supported crypto exchanges * @summary Crypto Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoExchanges(options?: any): AxiosPromise> { return localVarFp.cryptoExchanges(options).then((request) => request(axios, basePath)) }, /** * Get crypto\'s profile. * @summary Crypto Profile * @param {string} symbol Crypto symbol such as BTC or ETH. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoProfile(symbol: string, options?: any): AxiosPromise { return localVarFp.cryptoProfile(symbol, options).then((request) => request(axios, basePath)) }, /** * List supported crypto symbols by exchange * @summary Crypto Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cryptoSymbols(exchange: string, options?: any): AxiosPromise> { return localVarFp.cryptoSymbols(exchange, options).then((request) => request(axios, basePath)) }, /** * Get historical and coming earnings release. EPS and Revenue in this endpoint are non-GAAP, which means they are adjusted to exclude some one-time or unusual items. This is the same data investors usually react to and talked about on the media. Estimates are sourced from both sell-side and buy-side analysts. * @summary Earnings Calendar * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {string} [symbol] Filter by symbol: AAPL. * @param {boolean} [international] Set to <code>true</code> to include international markets. Default value is <code>false</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ earningsCalendar(from?: string, to?: string, symbol?: string, international?: boolean, options?: any): AxiosPromise { return localVarFp.earningsCalendar(from, to, symbol, international, options).then((request) => request(axios, basePath)) }, /** *

Get recent and upcoming economic releases.

Historical events and surprises are available for Enterprise clients.

* @summary Economic Calendar * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ economicCalendar(from?: string, to?: string, options?: any): AxiosPromise { return localVarFp.economicCalendar(from, to, options).then((request) => request(axios, basePath)) }, /** * List codes of supported economic data. * @summary Economic Code * @param {*} [options] Override http request option. * @throws {RequiredError} */ economicCode(options?: any): AxiosPromise> { return localVarFp.economicCode(options).then((request) => request(axios, basePath)) }, /** * Get economic data. * @summary Economic Data * @param {string} code Economic code. * @param {*} [options] Override http request option. * @throws {RequiredError} */ economicData(code: string, options?: any): AxiosPromise { return localVarFp.economicData(code, options).then((request) => request(axios, basePath)) }, /** * Get ETF country exposure data. * @summary ETFs Country Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsCountryExposure(symbol: string, options?: any): AxiosPromise { return localVarFp.etfsCountryExposure(symbol, options).then((request) => request(axios, basePath)) }, /** * Get full ETF holdings/constituents. This endpoint has global coverage. Widget only shows top 10 holdings. * @summary ETFs Holdings * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {string} [date] Query holdings by date. You can use either this param or <code>skip</code> param, not both. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsHoldings(symbol?: string, isin?: string, skip?: number, date?: string, options?: any): AxiosPromise { return localVarFp.etfsHoldings(symbol, isin, skip, date, options).then((request) => request(axios, basePath)) }, /** * Get ETF profile information. This endpoint has global coverage. * @summary ETFs Profile * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsProfile(symbol?: string, isin?: string, options?: any): AxiosPromise { return localVarFp.etfsProfile(symbol, isin, options).then((request) => request(axios, basePath)) }, /** * Get ETF sector exposure data. * @summary ETFs Sector Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ etfsSectorExposure(symbol: string, options?: any): AxiosPromise { return localVarFp.etfsSectorExposure(symbol, options).then((request) => request(axios, basePath)) }, /** * FDA\'s advisory committees are established to provide functions which support the agency\'s mission of protecting and promoting the public health, while meeting the requirements set forth in the Federal Advisory Committee Act. Committees are either mandated by statute or established at the discretion of the Department of Health and Human Services. Each committee is subject to renewal at two-year intervals unless the committee charter states otherwise. * @summary FDA Committee Meeting Calendar * @param {*} [options] Override http request option. * @throws {RequiredError} */ fdaCommitteeMeetingCalendar(options?: any): AxiosPromise> { return localVarFp.fdaCommitteeMeetingCalendar(options).then((request) => request(axios, basePath)) }, /** * List company\'s filing. Limit to 250 documents at a time. This data is available for bulk download on Kaggle SEC Filings database. * @summary SEC Filings * @param {string} [symbol] Symbol. Leave <code>symbol</code>,<code>cik</code> and <code>accessNumber</code> empty to list latest filings. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve data from. * @param {string} [form] Filter by form. You can use this value <code>NT 10-K</code> to find non-timely filings for a company. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ filings(symbol?: string, cik?: string, accessNumber?: string, form?: string, from?: string, to?: string, options?: any): AxiosPromise> { return localVarFp.filings(symbol, cik, accessNumber, form, from, to, options).then((request) => request(axios, basePath)) }, /** * Get sentiment analysis of 10-K and 10-Q filings from SEC. An abnormal increase in the number of positive/negative words in filings can signal a significant change in the company\'s stock price in the upcoming 4 quarters. We make use of Loughran and McDonald Sentiment Word Lists to calculate the sentiment for each filing. * @summary SEC Sentiment Analysis * @param {string} accessNumber Access number of a specific report you want to retrieve data from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ filingsSentiment(accessNumber: string, options?: any): AxiosPromise { return localVarFp.filingsSentiment(accessNumber, options).then((request) => request(axios, basePath)) }, /** *

Get standardized balance sheet, income statement and cash flow for global companies going back 30+ years. Data is sourced from original filings most of which made available through SEC Filings and International Filings endpoints.

Wondering why our standardized data is different from Bloomberg, Reuters, Factset, S&P or Yahoo Finance ? Check out our FAQ page to learn more

* @summary Financial Statements * @param {string} symbol Symbol of the company: AAPL. * @param {string} statement Statement can take 1 of these values <code>bs, ic, cf</code> for Balance Sheet, Income Statement, Cash Flow respectively. * @param {string} freq Frequency can take 1 of these values <code>annual, quarterly, ttm, ytd</code>. TTM (Trailing Twelve Months) option is available for Income Statement and Cash Flow. YTD (Year To Date) option is only available for Cash Flow. * @param {*} [options] Override http request option. * @throws {RequiredError} */ financials(symbol: string, statement: string, freq: string, options?: any): AxiosPromise { return localVarFp.financials(symbol, statement, freq, options).then((request) => request(axios, basePath)) }, /** * Get financials as reported. This data is available for bulk download on Kaggle SEC Financials database. * @summary Financials As Reported * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve financials from. * @param {string} [freq] Frequency. Can be either <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ financialsReported(symbol?: string, cik?: string, accessNumber?: string, freq?: string, options?: any): AxiosPromise { return localVarFp.financialsReported(symbol, cik, accessNumber, freq, options).then((request) => request(axios, basePath)) }, /** * Get candlestick data for forex symbols. * @summary Forex Candles * @param {string} symbol Use symbol returned in <code>/forex/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexCandles(symbol: string, resolution: string, from: number, to: number, options?: any): AxiosPromise { return localVarFp.forexCandles(symbol, resolution, from, to, options).then((request) => request(axios, basePath)) }, /** * List supported forex exchanges * @summary Forex Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexExchanges(options?: any): AxiosPromise> { return localVarFp.forexExchanges(options).then((request) => request(axios, basePath)) }, /** * Get rates for all forex pairs. Ideal for currency conversion * @summary Forex rates * @param {string} [base] Base currency. Default to EUR. * @param {string} [date] Date. Leave blank to get the latest data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexRates(base?: string, date?: string, options?: any): AxiosPromise { return localVarFp.forexRates(base, date, options).then((request) => request(axios, basePath)) }, /** * List supported forex symbols. * @summary Forex Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} */ forexSymbols(exchange: string, options?: any): AxiosPromise> { return localVarFp.forexSymbols(exchange, options).then((request) => request(axios, basePath)) }, /** * Get a full list fund and institutional investors of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Fund Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fundOwnership(symbol: string, limit?: number, options?: any): AxiosPromise { return localVarFp.fundOwnership(symbol, limit, options).then((request) => request(axios, basePath)) }, /** * Get a list of index\'s constituents. A list of supported indices for this endpoint can be found here. * @summary Indices Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ indicesConstituents(symbol: string, options?: any): AxiosPromise { return localVarFp.indicesConstituents(symbol, options).then((request) => request(axios, basePath)) }, /** * Get full history of index\'s constituents including symbols and dates of joining and leaving the Index. Currently support ^GSPC, ^NDX, ^DJI * @summary Indices Historical Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ indicesHistoricalConstituents(symbol: string, options?: any): AxiosPromise { return localVarFp.indicesHistoricalConstituents(symbol, options).then((request) => request(axios, basePath)) }, /** * Get insider sentiment data for US companies calculated using method discussed here. The MSPR ranges from -100 for the most negative to 100 for the most positive which can signal price changes in the coming 30-90 days. * @summary Insider Sentiment * @param {string} symbol Symbol of the company: AAPL. * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ insiderSentiment(symbol: string, from: string, to: string, options?: any): AxiosPromise { return localVarFp.insiderSentiment(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * Company insider transactions data sourced from Form 3,4,5. This endpoint only covers US companies at the moment. Limit to 100 transactions per API call. * @summary Insider Transactions * @param {string} symbol Symbol of the company: AAPL. Leave this param blank to get the latest transactions. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ insiderTransactions(symbol: string, from?: string, to?: string, options?: any): AxiosPromise { return localVarFp.insiderTransactions(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * List filings for international companies. Limit to 250 documents at a time. These are the documents we use to source our fundamental data. * @summary International Filings * @param {string} [symbol] Symbol. Leave empty to list latest filings. * @param {string} [country] Filter by country using country\'s 2-letter code. * @param {*} [options] Override http request option. * @throws {RequiredError} */ internationalFilings(symbol?: string, country?: string, options?: any): AxiosPromise> { return localVarFp.internationalFilings(symbol, country, options).then((request) => request(axios, basePath)) }, /** *

Thematic investing involves creating a portfolio (or portion of a portfolio) by gathering together a collection of companies involved in certain areas that you predict will generate above-market returns over the long term. Themes can be based on a concept such as ageing populations or a sub-sector such as robotics, and drones. Thematic investing focuses on predicted long-term trends rather than specific companies or sectors, enabling investors to access structural, one-off shifts that can change an entire industry.

This endpoint will help you get portfolios of different investment themes that are changing our life and are the way of the future.

A full list of themes supported can be found here. The theme coverage and portfolios are updated bi-weekly by our analysts. Our approach excludes penny, super-small cap and illiquid stocks.

* @summary Investment Themes (Thematic Investing) * @param {string} theme Investment theme. A full list of themes supported can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp=sharing\">here</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ investmentThemes(theme: string, options?: any): AxiosPromise { return localVarFp.investmentThemes(theme, options).then((request) => request(axios, basePath)) }, /** * Get recent and upcoming IPO. * @summary IPO Calendar * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ipoCalendar(from: string, to: string, options?: any): AxiosPromise { return localVarFp.ipoCalendar(from, to, options).then((request) => request(axios, basePath)) }, /** * Get latest market news. * @summary Market News * @param {string} category This parameter can be 1 of the following values <code>general, forex, crypto, merger</code>. * @param {number} [minId] Use this field to get only news after this ID. Default to 0 * @param {*} [options] Override http request option. * @throws {RequiredError} */ marketNews(category: string, minId?: number, options?: any): AxiosPromise> { return localVarFp.marketNews(category, minId, options).then((request) => request(axios, basePath)) }, /** * Get Mutual Funds country exposure data. * @summary Mutual Funds Country Exposure * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundCountryExposure(symbol: string, options?: any): AxiosPromise { return localVarFp.mutualFundCountryExposure(symbol, options).then((request) => request(axios, basePath)) }, /** * Get full Mutual Funds holdings/constituents. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Holdings * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundHoldings(symbol?: string, isin?: string, skip?: number, options?: any): AxiosPromise { return localVarFp.mutualFundHoldings(symbol, isin, skip, options).then((request) => request(axios, basePath)) }, /** * Get mutual funds profile information. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Profile * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundProfile(symbol?: string, isin?: string, options?: any): AxiosPromise { return localVarFp.mutualFundProfile(symbol, isin, options).then((request) => request(axios, basePath)) }, /** * Get Mutual Funds sector exposure data. * @summary Mutual Funds Sector Exposure * @param {string} symbol Mutual Fund symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mutualFundSectorExposure(symbol: string, options?: any): AxiosPromise { return localVarFp.mutualFundSectorExposure(symbol, options).then((request) => request(axios, basePath)) }, /** * Get company\'s news sentiment and statistics. This endpoint is only available for US companies. * @summary News Sentiment * @param {string} symbol Company symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ newsSentiment(symbol: string, options?: any): AxiosPromise { return localVarFp.newsSentiment(symbol, options).then((request) => request(axios, basePath)) }, /** * Get a full list of shareholders of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ownership(symbol: string, limit?: number, options?: any): AxiosPromise { return localVarFp.ownership(symbol, limit, options).then((request) => request(axios, basePath)) }, /** * Run pattern recognition algorithm on a symbol. Support double top/bottom, triple top/bottom, head and shoulders, triangle, wedge, channel, flag, and candlestick patterns. * @summary Pattern Recognition * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ patternRecognition(symbol: string, resolution: string, options?: any): AxiosPromise { return localVarFp.patternRecognition(symbol, resolution, options).then((request) => request(axios, basePath)) }, /** *

Get latest major press releases of a company. This data can be used to highlight the most significant events comprised of mostly press releases sourced from the exchanges, BusinessWire, AccessWire, GlobeNewswire, Newsfile, and PRNewswire.

Full-text press releases data is available for Enterprise clients. Contact Us to learn more.

* @summary Major Press Releases * @param {string} symbol Company symbol. * @param {string} [from] From time: 2020-01-01. * @param {string} [to] To time: 2020-01-05. * @param {*} [options] Override http request option. * @throws {RequiredError} */ pressReleases(symbol: string, from?: string, to?: string, options?: any): AxiosPromise { return localVarFp.pressReleases(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * Get latest price target consensus. * @summary Price Target * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ priceTarget(symbol: string, options?: any): AxiosPromise { return localVarFp.priceTarget(symbol, options).then((request) => request(axios, basePath)) }, /** *

Get real-time quote data for US stocks. Constant polling is not recommended. Use websocket if you need real-time updates.

Real-time stock prices for international markets are supported for Enterprise clients via our partner\'s feed. Contact Us to learn more.

* @summary Quote * @param {string} symbol Symbol * @param {*} [options] Override http request option. * @throws {RequiredError} */ quote(symbol: string, options?: any): AxiosPromise { return localVarFp.quote(symbol, options).then((request) => request(axios, basePath)) }, /** * Get latest analyst recommendation trends for a company. * @summary Recommendation Trends * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ recommendationTrends(symbol: string, options?: any): AxiosPromise> { return localVarFp.recommendationTrends(symbol, options).then((request) => request(axios, basePath)) }, /** * Get revenue breakdown by product. This dataset is only available for US companies which disclose their revenue breakdown in the annual or quarterly reports. * @summary Revenue Breakdown * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revenueBreakdown(symbol?: string, cik?: string, options?: any): AxiosPromise { return localVarFp.revenueBreakdown(symbol, cik, options).then((request) => request(axios, basePath)) }, /** *

Calculate the textual difference between a company\'s 10-K / 10-Q reports and the same type of report in the previous year using Cosine Similarity. For example, this endpoint compares 2019\'s 10-K with 2018\'s 10-K. Companies breaking from its routines in disclosure of financial condition and risk analysis section can signal a significant change in the company\'s stock price in the upcoming 4 quarters.

* @summary Similarity Index * @param {string} [symbol] Symbol. Required if cik is empty * @param {string} [cik] CIK. Required if symbol is empty * @param {string} [freq] <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ similarityIndex(symbol?: string, cik?: string, freq?: string, options?: any): AxiosPromise { return localVarFp.similarityIndex(symbol, cik, freq, options).then((request) => request(axios, basePath)) }, /** *

Get social sentiment for stocks on Reddit and Twitter. This endpoint is currently in Beta.

* @summary Social Sentiment * @param {string} symbol Company symbol. * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ socialSentiment(symbol: string, from?: string, to?: string, options?: any): AxiosPromise { return localVarFp.socialSentiment(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * Get global dividends data. * @summary Dividends 2 (Basic) * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockBasicDividends(symbol: string, options?: any): AxiosPromise { return localVarFp.stockBasicDividends(symbol, options).then((request) => request(axios, basePath)) }, /** * Get last bid/ask data for US stocks. * @summary Last Bid-Ask * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockBidask(symbol: string, options?: any): AxiosPromise { return localVarFp.stockBidask(symbol, options).then((request) => request(axios, basePath)) }, /** *

Get candlestick data (OHLCV) for stocks.

Daily data will be adjusted for Splits. Intraday data will remain unadjusted.

* @summary Stock Candles * @param {string} symbol Symbol. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockCandles(symbol: string, resolution: string, from: number, to: number, options?: any): AxiosPromise { return localVarFp.stockCandles(symbol, resolution, from, to, options).then((request) => request(axios, basePath)) }, /** * Get dividends data for common stocks going back 30 years. * @summary Dividends * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockDividends(symbol: string, from: string, to: string, options?: any): AxiosPromise> { return localVarFp.stockDividends(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * Get a list of reported lobbying activities in the Senate and the House. * @summary Senate Lobbying * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockLobbying(symbol: string, from: string, to: string, options?: any): AxiosPromise { return localVarFp.stockLobbying(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** *

Get historical best bid and offer for US stocks, LSE, TSX, Euronext and Deutsche Borse.

For US market, this endpoint only serves historical NBBO from the beginning of 2020. To download more historical data, please visit our bulk download page in the Dashboard here.

* @summary Historical NBBO * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockNbbo(symbol: string, date: string, limit: number, skip: number, options?: any): AxiosPromise { return localVarFp.stockNbbo(symbol, date, limit, skip, options).then((request) => request(axios, basePath)) }, /** * Get splits data for stocks. * @summary Splits * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockSplits(symbol: string, from: string, to: string, options?: any): AxiosPromise> { return localVarFp.stockSplits(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * List supported stocks. We use the following symbology to identify stocks on Finnhub Exchange_Ticker.Exchange_Code. A list of supported exchange codes can be found here. * @summary Stock Symbol * @param {string} exchange Exchange you want to get the list of symbols from. List of exchange codes can be found <a href=\"https://docs.google.com/spreadsheets/d/1I3pBxjfXB056-g_JYf_6o3Rns3BV2kMGG1nCatb91ls/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {string} [mic] Filter by MIC code. * @param {string} [securityType] Filter by security type used by OpenFigi standard. * @param {string} [currency] Filter by currency. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockSymbols(exchange: string, mic?: string, securityType?: string, currency?: string, options?: any): AxiosPromise> { return localVarFp.stockSymbols(exchange, mic, securityType, currency, options).then((request) => request(axios, basePath)) }, /** *

Get historical tick data for global exchanges. You can send the request directly to our tick server at https://tick.finnhub.io/ with the same path and parameters or get redirected there if you call our main server.

For US market, you can visit our bulk download page in the Dashboard here to speed up the download process.

Exchange Segment Delay
US CTA/UTP Full SIP 15 minute
TSX
  • TSX
  • TSX Venture
  • Index
End-of-day
LSE
  • London Stock Exchange (L)
  • LSE International (L)
  • LSE European (L)
15 minute
Euronext
  • Euronext Paris (PA)
  • Euronext Amsterdam (AS)
  • Euronext Lisbon (LS)
  • Euronext Brussels (BR)
  • Euronext Oslo (OL)
  • Euronext London (LN)
  • Euronext Dublin (IR)
  • Index
  • Warrant
End-of-day
Deutsche Börse
  • Frankfurt (F)
  • Xetra (DE)
  • Duesseldorf (DU)
  • Hamburg (HM)
  • Berlin (BE)
  • Hanover (HA)
  • Stoxx (SX)
  • TradeGate (TG)
  • Zertifikate (SC)
  • Index
  • Warrant
End-of-day
* @summary Tick Data * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockTick(symbol: string, date: string, limit: number, skip: number, options?: any): AxiosPromise { return localVarFp.stockTick(symbol, date, limit, skip, options).then((request) => request(axios, basePath)) }, /** * Get a list of government\'s spending activities from USASpending dataset for public companies. This dataset can help you identify companies that win big government contracts which is extremely important for industries such as Defense, Aerospace, and Education. * @summary USA Spending * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {string} to To date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockUsaSpending(symbol: string, from: string, to: string, options?: any): AxiosPromise { return localVarFp.stockUsaSpending(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * List USPTO patents for companies. Limit to 250 records per API call. * @summary USPTO Patents * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockUsptoPatent(symbol: string, from: string, to: string, options?: any): AxiosPromise { return localVarFp.stockUsptoPatent(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** * Get a list of H1-B and Permanent visa applications for companies from the DOL. The data is updated quarterly. * @summary H1-B Visa Application * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {string} to To date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {*} [options] Override http request option. * @throws {RequiredError} */ stockVisaApplication(symbol: string, from: string, to: string, options?: any): AxiosPromise { return localVarFp.stockVisaApplication(symbol, from, to, options).then((request) => request(axios, basePath)) }, /** *

This endpoint provides an overall map of public companies\' key customers and suppliers. The data offers a deeper look into a company\'s supply chain and how products are created. The data will help investors manage risk, limit exposure or generate alpha-generating ideas and trading insights.

* @summary Supply Chain Relationships * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} */ supplyChainRelationships(symbol: string, options?: any): AxiosPromise { return localVarFp.supplyChainRelationships(symbol, options).then((request) => request(axios, basePath)) }, /** * Get support and resistance levels for a symbol. * @summary Support/Resistance * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} */ supportResistance(symbol: string, resolution: string, options?: any): AxiosPromise { return localVarFp.supportResistance(symbol, resolution, options).then((request) => request(axios, basePath)) }, /** * Search for best-matching symbols based on your query. You can input anything from symbol, security\'s name to ISIN and Cusip. * @summary Symbol Lookup * @param {string} q Query text can be symbol, name, isin, or cusip. * @param {*} [options] Override http request option. * @throws {RequiredError} */ symbolSearch(q: string, options?: any): AxiosPromise { return localVarFp.symbolSearch(q, options).then((request) => request(axios, basePath)) }, /** * Return technical indicator with price data. List of supported indicators can be found here. * @summary Technical Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {string} indicator Indicator name. Full list can be found <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {object} [indicatorFields] Check out <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">this page</a> to see which indicators and params are supported. * @param {*} [options] Override http request option. * @throws {RequiredError} */ technicalIndicator(symbol: string, resolution: string, from: number, to: number, indicator: string, indicatorFields?: object, options?: any): AxiosPromise { return localVarFp.technicalIndicator(symbol, resolution, from, to, indicator, indicatorFields, options).then((request) => request(axios, basePath)) }, /** *

Get earnings call transcripts, audio and participants\' list. This endpoint is only available for US, UK, and Candian companies.

15+ years of data is available with 220,000+ audio which add up to 7TB in size.

* @summary Earnings Call Transcripts * @param {string} id Transcript\'s id obtained with <a href=\"#transcripts-list\">Transcripts List endpoint</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} */ transcripts(id: string, options?: any): AxiosPromise { return localVarFp.transcripts(id, options).then((request) => request(axios, basePath)) }, /** * List earnings call transcripts\' metadata. This endpoint is available for US, UK, European, Australian and Canadian companies. * @summary Earnings Call Transcripts List * @param {string} symbol Company symbol: AAPL. Leave empty to list the latest transcripts * @param {*} [options] Override http request option. * @throws {RequiredError} */ transcriptsList(symbol: string, options?: any): AxiosPromise { return localVarFp.transcriptsList(symbol, options).then((request) => request(axios, basePath)) }, /** * Get latest stock upgrade and downgrade. * @summary Stock Upgrade/Downgrade * @param {string} [symbol] Symbol of the company: AAPL. If left blank, the API will return latest stock upgrades/downgrades. * @param {string} [from] From date: 2000-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} */ upgradeDowngrade(symbol?: string, from?: string, to?: string, options?: any): AxiosPromise> { return localVarFp.upgradeDowngrade(symbol, from, to, options).then((request) => request(axios, basePath)) }, } } /** * DefaultApi - object-oriented interface * @export * @class DefaultApi * @extends {BaseAPI} */ export class DefaultApi extends BaseAPI { /** * Get aggregate signal of multiple technical indicators such as MACD, RSI, Moving Average v.v. * @summary Aggregate Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public aggregateIndicator(symbol: string, resolution: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .aggregateIndicator(symbol, resolution, options) .then((request) => request(this.axios, this.basePath)) } /** * Get end-of-day bond\'s price data. * @summary Bond price data * @param {string} isin ISIN. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public bondPrice(isin: string, from: number, to: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .bondPrice(isin, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get general information of a bond. You can query by FIGI, ISIN or CUSIP * @summary Bond Profile * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {string} [figi] FIGI * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public bondProfile(isin?: string, cusip?: string, figi?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .bondProfile(isin, cusip, figi, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company basic financials such as margin, P/E ratio, 52-week high/low etc. * @summary Basic Financials * @param {string} symbol Symbol of the company: AAPL. * @param {string} metric Metric type. Can be 1 of the following values <code>all</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyBasicFinancials(symbol: string, metric: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyBasicFinancials(symbol, metric, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company historical quarterly earnings surprise going back to 2000. * @summary Earnings Surprises * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of period returned. Leave blank to get the full history. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyEarnings(symbol: string, limit?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyEarnings(symbol, limit, options) .then((request) => request(this.axios, this.basePath)) } /** *

This endpoint provides Earnings Quality Score for global companies.

Earnings quality refers to the extent to which current earnings predict future earnings. \"High-quality\" earnings are expected to persist, while \"low-quality\" earnings do not. A higher score means a higher earnings quality

Finnhub uses a proprietary model which takes into consideration 4 criteria:

  • Profitability
  • Growth
  • Cash Generation & Capital Allocation
  • Leverage

We then compare the metrics of each company in each category against its peers in the same industry to gauge how quality its earnings is.

* @summary Company Earnings Quality Score * @param {string} symbol Symbol. * @param {string} freq Frequency. Currently support <code>annual</code> and <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyEarningsQualityScore(symbol: string, freq: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyEarningsQualityScore(symbol, freq, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company\'s ebit estimates. * @summary EBIT Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyEbitEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyEbitEstimates(symbol, freq, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company\'s ebitda estimates. * @summary EBITDA Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyEbitdaEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyEbitdaEstimates(symbol, freq, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company\'s EPS estimates. * @summary Earnings Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyEpsEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyEpsEstimates(symbol, freq, options) .then((request) => request(this.axios, this.basePath)) } /** *

This endpoint provides ESG scores and important indicators for 1000+ global companies. The data is collected through company\'s public ESG disclosure and public sources.

Our ESG scoring models takes into account more than 150 different inputs to calculate the level of ESG risks and how well a company is managing them. A higher score means lower ESG risk or better ESG management. ESG scores are in the the range of 0-100. Some key indicators might contain letter-grade score from C- to A+ with C- is the lowest score and A+ is the highest score.

* @summary Company ESG Scores * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyEsgScore(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyEsgScore(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get a list of company\'s executives and members of the Board. * @summary Company Executive * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyExecutive(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyExecutive(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * List latest company news by symbol. This endpoint is only available for North American companies. * @summary Company News * @param {string} symbol Company symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyNews(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyNews(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company peers. Return a list of peers in the same country and sub-industry * @summary Peers * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyPeers(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyPeers(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get general information of a company. You can query by symbol, ISIN or CUSIP * @summary Company Profile * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyProfile(symbol?: string, isin?: string, cusip?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyProfile(symbol, isin, cusip, options) .then((request) => request(this.axios, this.basePath)) } /** * Get general information of a company. You can query by symbol, ISIN or CUSIP. This is the free version of Company Profile. * @summary Company Profile 2 * @param {string} [symbol] Symbol of the company: AAPL e.g. * @param {string} [isin] ISIN * @param {string} [cusip] CUSIP * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyProfile2(symbol?: string, isin?: string, cusip?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyProfile2(symbol, isin, cusip, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company\'s revenue estimates. * @summary Revenue Estimates * @param {string} symbol Symbol of the company: AAPL. * @param {string} [freq] Can take 1 of the following values: <code>annual, quarterly</code>. Default to <code>quarterly</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public companyRevenueEstimates(symbol: string, freq?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .companyRevenueEstimates(symbol, freq, options) .then((request) => request(this.axios, this.basePath)) } /** * List all countries and metadata. * @summary Country Metadata * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public country(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .country(options) .then((request) => request(this.axios, this.basePath)) } /** * Get real-time updates on the number of COVID-19 (Corona virus) cases in the US with a state-by-state breakdown. Data is sourced from CDC and reputable sources. You can also access this API here * @summary COVID-19 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public covid19(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .covid19(options) .then((request) => request(this.axios, this.basePath)) } /** * Get candlestick data for crypto symbols. * @summary Crypto Candles * @param {string} symbol Use symbol returned in <code>/crypto/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public cryptoCandles(symbol: string, resolution: string, from: number, to: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .cryptoCandles(symbol, resolution, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * List supported crypto exchanges * @summary Crypto Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public cryptoExchanges(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .cryptoExchanges(options) .then((request) => request(this.axios, this.basePath)) } /** * Get crypto\'s profile. * @summary Crypto Profile * @param {string} symbol Crypto symbol such as BTC or ETH. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public cryptoProfile(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .cryptoProfile(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * List supported crypto symbols by exchange * @summary Crypto Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public cryptoSymbols(exchange: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .cryptoSymbols(exchange, options) .then((request) => request(this.axios, this.basePath)) } /** * Get historical and coming earnings release. EPS and Revenue in this endpoint are non-GAAP, which means they are adjusted to exclude some one-time or unusual items. This is the same data investors usually react to and talked about on the media. Estimates are sourced from both sell-side and buy-side analysts. * @summary Earnings Calendar * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {string} [symbol] Filter by symbol: AAPL. * @param {boolean} [international] Set to <code>true</code> to include international markets. Default value is <code>false</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public earningsCalendar(from?: string, to?: string, symbol?: string, international?: boolean, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .earningsCalendar(from, to, symbol, international, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get recent and upcoming economic releases.

Historical events and surprises are available for Enterprise clients.

* @summary Economic Calendar * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public economicCalendar(from?: string, to?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .economicCalendar(from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * List codes of supported economic data. * @summary Economic Code * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public economicCode(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .economicCode(options) .then((request) => request(this.axios, this.basePath)) } /** * Get economic data. * @summary Economic Data * @param {string} code Economic code. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public economicData(code: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .economicData(code, options) .then((request) => request(this.axios, this.basePath)) } /** * Get ETF country exposure data. * @summary ETFs Country Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public etfsCountryExposure(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .etfsCountryExposure(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get full ETF holdings/constituents. This endpoint has global coverage. Widget only shows top 10 holdings. * @summary ETFs Holdings * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {string} [date] Query holdings by date. You can use either this param or <code>skip</code> param, not both. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public etfsHoldings(symbol?: string, isin?: string, skip?: number, date?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .etfsHoldings(symbol, isin, skip, date, options) .then((request) => request(this.axios, this.basePath)) } /** * Get ETF profile information. This endpoint has global coverage. * @summary ETFs Profile * @param {string} [symbol] ETF symbol. * @param {string} [isin] ETF isin. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public etfsProfile(symbol?: string, isin?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .etfsProfile(symbol, isin, options) .then((request) => request(this.axios, this.basePath)) } /** * Get ETF sector exposure data. * @summary ETFs Sector Exposure * @param {string} symbol ETF symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public etfsSectorExposure(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .etfsSectorExposure(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * FDA\'s advisory committees are established to provide functions which support the agency\'s mission of protecting and promoting the public health, while meeting the requirements set forth in the Federal Advisory Committee Act. Committees are either mandated by statute or established at the discretion of the Department of Health and Human Services. Each committee is subject to renewal at two-year intervals unless the committee charter states otherwise. * @summary FDA Committee Meeting Calendar * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public fdaCommitteeMeetingCalendar(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .fdaCommitteeMeetingCalendar(options) .then((request) => request(this.axios, this.basePath)) } /** * List company\'s filing. Limit to 250 documents at a time. This data is available for bulk download on Kaggle SEC Filings database. * @summary SEC Filings * @param {string} [symbol] Symbol. Leave <code>symbol</code>,<code>cik</code> and <code>accessNumber</code> empty to list latest filings. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve data from. * @param {string} [form] Filter by form. You can use this value <code>NT 10-K</code> to find non-timely filings for a company. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public filings(symbol?: string, cik?: string, accessNumber?: string, form?: string, from?: string, to?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .filings(symbol, cik, accessNumber, form, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get sentiment analysis of 10-K and 10-Q filings from SEC. An abnormal increase in the number of positive/negative words in filings can signal a significant change in the company\'s stock price in the upcoming 4 quarters. We make use of Loughran and McDonald Sentiment Word Lists to calculate the sentiment for each filing. * @summary SEC Sentiment Analysis * @param {string} accessNumber Access number of a specific report you want to retrieve data from. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public filingsSentiment(accessNumber: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .filingsSentiment(accessNumber, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get standardized balance sheet, income statement and cash flow for global companies going back 30+ years. Data is sourced from original filings most of which made available through SEC Filings and International Filings endpoints.

Wondering why our standardized data is different from Bloomberg, Reuters, Factset, S&P or Yahoo Finance ? Check out our FAQ page to learn more

* @summary Financial Statements * @param {string} symbol Symbol of the company: AAPL. * @param {string} statement Statement can take 1 of these values <code>bs, ic, cf</code> for Balance Sheet, Income Statement, Cash Flow respectively. * @param {string} freq Frequency can take 1 of these values <code>annual, quarterly, ttm, ytd</code>. TTM (Trailing Twelve Months) option is available for Income Statement and Cash Flow. YTD (Year To Date) option is only available for Cash Flow. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public financials(symbol: string, statement: string, freq: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .financials(symbol, statement, freq, options) .then((request) => request(this.axios, this.basePath)) } /** * Get financials as reported. This data is available for bulk download on Kaggle SEC Financials database. * @summary Financials As Reported * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {string} [accessNumber] Access number of a specific report you want to retrieve financials from. * @param {string} [freq] Frequency. Can be either <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public financialsReported(symbol?: string, cik?: string, accessNumber?: string, freq?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .financialsReported(symbol, cik, accessNumber, freq, options) .then((request) => request(this.axios, this.basePath)) } /** * Get candlestick data for forex symbols. * @summary Forex Candles * @param {string} symbol Use symbol returned in <code>/forex/symbol</code> endpoint for this field. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public forexCandles(symbol: string, resolution: string, from: number, to: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .forexCandles(symbol, resolution, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * List supported forex exchanges * @summary Forex Exchanges * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public forexExchanges(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .forexExchanges(options) .then((request) => request(this.axios, this.basePath)) } /** * Get rates for all forex pairs. Ideal for currency conversion * @summary Forex rates * @param {string} [base] Base currency. Default to EUR. * @param {string} [date] Date. Leave blank to get the latest data. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public forexRates(base?: string, date?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .forexRates(base, date, options) .then((request) => request(this.axios, this.basePath)) } /** * List supported forex symbols. * @summary Forex Symbol * @param {string} exchange Exchange you want to get the list of symbols from. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public forexSymbols(exchange: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .forexSymbols(exchange, options) .then((request) => request(this.axios, this.basePath)) } /** * Get a full list fund and institutional investors of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Fund Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public fundOwnership(symbol: string, limit?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .fundOwnership(symbol, limit, options) .then((request) => request(this.axios, this.basePath)) } /** * Get a list of index\'s constituents. A list of supported indices for this endpoint can be found here. * @summary Indices Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public indicesConstituents(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .indicesConstituents(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get full history of index\'s constituents including symbols and dates of joining and leaving the Index. Currently support ^GSPC, ^NDX, ^DJI * @summary Indices Historical Constituents * @param {string} symbol symbol * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public indicesHistoricalConstituents(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .indicesHistoricalConstituents(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get insider sentiment data for US companies calculated using method discussed here. The MSPR ranges from -100 for the most negative to 100 for the most positive which can signal price changes in the coming 30-90 days. * @summary Insider Sentiment * @param {string} symbol Symbol of the company: AAPL. * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public insiderSentiment(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .insiderSentiment(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Company insider transactions data sourced from Form 3,4,5. This endpoint only covers US companies at the moment. Limit to 100 transactions per API call. * @summary Insider Transactions * @param {string} symbol Symbol of the company: AAPL. Leave this param blank to get the latest transactions. * @param {string} [from] From date: 2020-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public insiderTransactions(symbol: string, from?: string, to?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .insiderTransactions(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * List filings for international companies. Limit to 250 documents at a time. These are the documents we use to source our fundamental data. * @summary International Filings * @param {string} [symbol] Symbol. Leave empty to list latest filings. * @param {string} [country] Filter by country using country\'s 2-letter code. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public internationalFilings(symbol?: string, country?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .internationalFilings(symbol, country, options) .then((request) => request(this.axios, this.basePath)) } /** *

Thematic investing involves creating a portfolio (or portion of a portfolio) by gathering together a collection of companies involved in certain areas that you predict will generate above-market returns over the long term. Themes can be based on a concept such as ageing populations or a sub-sector such as robotics, and drones. Thematic investing focuses on predicted long-term trends rather than specific companies or sectors, enabling investors to access structural, one-off shifts that can change an entire industry.

This endpoint will help you get portfolios of different investment themes that are changing our life and are the way of the future.

A full list of themes supported can be found here. The theme coverage and portfolios are updated bi-weekly by our analysts. Our approach excludes penny, super-small cap and illiquid stocks.

* @summary Investment Themes (Thematic Investing) * @param {string} theme Investment theme. A full list of themes supported can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp=sharing\">here</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public investmentThemes(theme: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .investmentThemes(theme, options) .then((request) => request(this.axios, this.basePath)) } /** * Get recent and upcoming IPO. * @summary IPO Calendar * @param {string} from From date: 2020-03-15. * @param {string} to To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public ipoCalendar(from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .ipoCalendar(from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get latest market news. * @summary Market News * @param {string} category This parameter can be 1 of the following values <code>general, forex, crypto, merger</code>. * @param {number} [minId] Use this field to get only news after this ID. Default to 0 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public marketNews(category: string, minId?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .marketNews(category, minId, options) .then((request) => request(this.axios, this.basePath)) } /** * Get Mutual Funds country exposure data. * @summary Mutual Funds Country Exposure * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public mutualFundCountryExposure(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .mutualFundCountryExposure(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get full Mutual Funds holdings/constituents. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Holdings * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {number} [skip] Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip=0 or not set. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public mutualFundHoldings(symbol?: string, isin?: string, skip?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .mutualFundHoldings(symbol, isin, skip, options) .then((request) => request(this.axios, this.basePath)) } /** * Get mutual funds profile information. This endpoint covers both US and global mutual funds. For international funds, you must query the data using ISIN. * @summary Mutual Funds Profile * @param {string} [symbol] Fund\'s symbol. * @param {string} [isin] Fund\'s isin. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public mutualFundProfile(symbol?: string, isin?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .mutualFundProfile(symbol, isin, options) .then((request) => request(this.axios, this.basePath)) } /** * Get Mutual Funds sector exposure data. * @summary Mutual Funds Sector Exposure * @param {string} symbol Mutual Fund symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public mutualFundSectorExposure(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .mutualFundSectorExposure(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get company\'s news sentiment and statistics. This endpoint is only available for US companies. * @summary News Sentiment * @param {string} symbol Company symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public newsSentiment(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .newsSentiment(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get a full list of shareholders of a company in descending order of the number of shares held. Data is sourced from 13F form, Schedule 13D and 13G for US market, UK Share Register for UK market, SEDI for Canadian market and equivalent filings for other international markets. * @summary Ownership * @param {string} symbol Symbol of the company: AAPL. * @param {number} [limit] Limit number of results. Leave empty to get the full list. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public ownership(symbol: string, limit?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .ownership(symbol, limit, options) .then((request) => request(this.axios, this.basePath)) } /** * Run pattern recognition algorithm on a symbol. Support double top/bottom, triple top/bottom, head and shoulders, triangle, wedge, channel, flag, and candlestick patterns. * @summary Pattern Recognition * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public patternRecognition(symbol: string, resolution: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .patternRecognition(symbol, resolution, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get latest major press releases of a company. This data can be used to highlight the most significant events comprised of mostly press releases sourced from the exchanges, BusinessWire, AccessWire, GlobeNewswire, Newsfile, and PRNewswire.

Full-text press releases data is available for Enterprise clients. Contact Us to learn more.

* @summary Major Press Releases * @param {string} symbol Company symbol. * @param {string} [from] From time: 2020-01-01. * @param {string} [to] To time: 2020-01-05. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public pressReleases(symbol: string, from?: string, to?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .pressReleases(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get latest price target consensus. * @summary Price Target * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public priceTarget(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .priceTarget(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get real-time quote data for US stocks. Constant polling is not recommended. Use websocket if you need real-time updates.

Real-time stock prices for international markets are supported for Enterprise clients via our partner\'s feed. Contact Us to learn more.

* @summary Quote * @param {string} symbol Symbol * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public quote(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .quote(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get latest analyst recommendation trends for a company. * @summary Recommendation Trends * @param {string} symbol Symbol of the company: AAPL. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public recommendationTrends(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .recommendationTrends(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get revenue breakdown by product. This dataset is only available for US companies which disclose their revenue breakdown in the annual or quarterly reports. * @summary Revenue Breakdown * @param {string} [symbol] Symbol. * @param {string} [cik] CIK. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public revenueBreakdown(symbol?: string, cik?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .revenueBreakdown(symbol, cik, options) .then((request) => request(this.axios, this.basePath)) } /** *

Calculate the textual difference between a company\'s 10-K / 10-Q reports and the same type of report in the previous year using Cosine Similarity. For example, this endpoint compares 2019\'s 10-K with 2018\'s 10-K. Companies breaking from its routines in disclosure of financial condition and risk analysis section can signal a significant change in the company\'s stock price in the upcoming 4 quarters.

* @summary Similarity Index * @param {string} [symbol] Symbol. Required if cik is empty * @param {string} [cik] CIK. Required if symbol is empty * @param {string} [freq] <code>annual</code> or <code>quarterly</code>. Default to <code>annual</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public similarityIndex(symbol?: string, cik?: string, freq?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .similarityIndex(symbol, cik, freq, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get social sentiment for stocks on Reddit and Twitter. This endpoint is currently in Beta.

* @summary Social Sentiment * @param {string} symbol Company symbol. * @param {string} [from] From date <code>YYYY-MM-DD</code>. * @param {string} [to] To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public socialSentiment(symbol: string, from?: string, to?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .socialSentiment(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get global dividends data. * @summary Dividends 2 (Basic) * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockBasicDividends(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockBasicDividends(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get last bid/ask data for US stocks. * @summary Last Bid-Ask * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockBidask(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockBidask(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get candlestick data (OHLCV) for stocks.

Daily data will be adjusted for Splits. Intraday data will remain unadjusted.

* @summary Stock Candles * @param {string} symbol Symbol. * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockCandles(symbol: string, resolution: string, from: number, to: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockCandles(symbol, resolution, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get dividends data for common stocks going back 30 years. * @summary Dividends * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockDividends(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockDividends(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get a list of reported lobbying activities in the Senate and the House. * @summary Senate Lobbying * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockLobbying(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockLobbying(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get historical best bid and offer for US stocks, LSE, TSX, Euronext and Deutsche Borse.

For US market, this endpoint only serves historical NBBO from the beginning of 2020. To download more historical data, please visit our bulk download page in the Dashboard here.

* @summary Historical NBBO * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockNbbo(symbol: string, date: string, limit: number, skip: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockNbbo(symbol, date, limit, skip, options) .then((request) => request(this.axios, this.basePath)) } /** * Get splits data for stocks. * @summary Splits * @param {string} symbol Symbol. * @param {string} from YYYY-MM-DD. * @param {string} to YYYY-MM-DD. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockSplits(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockSplits(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * List supported stocks. We use the following symbology to identify stocks on Finnhub Exchange_Ticker.Exchange_Code. A list of supported exchange codes can be found here. * @summary Stock Symbol * @param {string} exchange Exchange you want to get the list of symbols from. List of exchange codes can be found <a href=\"https://docs.google.com/spreadsheets/d/1I3pBxjfXB056-g_JYf_6o3Rns3BV2kMGG1nCatb91ls/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {string} [mic] Filter by MIC code. * @param {string} [securityType] Filter by security type used by OpenFigi standard. * @param {string} [currency] Filter by currency. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockSymbols(exchange: string, mic?: string, securityType?: string, currency?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockSymbols(exchange, mic, securityType, currency, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get historical tick data for global exchanges. You can send the request directly to our tick server at https://tick.finnhub.io/ with the same path and parameters or get redirected there if you call our main server.

For US market, you can visit our bulk download page in the Dashboard here to speed up the download process.

Exchange Segment Delay
US CTA/UTP Full SIP 15 minute
TSX
  • TSX
  • TSX Venture
  • Index
End-of-day
LSE
  • London Stock Exchange (L)
  • LSE International (L)
  • LSE European (L)
15 minute
Euronext
  • Euronext Paris (PA)
  • Euronext Amsterdam (AS)
  • Euronext Lisbon (LS)
  • Euronext Brussels (BR)
  • Euronext Oslo (OL)
  • Euronext London (LN)
  • Euronext Dublin (IR)
  • Index
  • Warrant
End-of-day
Deutsche Börse
  • Frankfurt (F)
  • Xetra (DE)
  • Duesseldorf (DU)
  • Hamburg (HM)
  • Berlin (BE)
  • Hanover (HA)
  • Stoxx (SX)
  • TradeGate (TG)
  • Zertifikate (SC)
  • Index
  • Warrant
End-of-day
* @summary Tick Data * @param {string} symbol Symbol. * @param {string} date Date: 2020-04-02. * @param {number} limit Limit number of ticks returned. Maximum value: <code>25000</code> * @param {number} skip Number of ticks to skip. Use this parameter to loop through the entire data. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockTick(symbol: string, date: string, limit: number, skip: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockTick(symbol, date, limit, skip, options) .then((request) => request(this.axios, this.basePath)) } /** * Get a list of government\'s spending activities from USASpending dataset for public companies. This dataset can help you identify companies that win big government contracts which is extremely important for industries such as Defense, Aerospace, and Education. * @summary USA Spending * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {string} to To date <code>YYYY-MM-DD</code>. Filter for <code>actionDate</code> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockUsaSpending(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockUsaSpending(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * List USPTO patents for companies. Limit to 250 records per API call. * @summary USPTO Patents * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. * @param {string} to To date <code>YYYY-MM-DD</code>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockUsptoPatent(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockUsptoPatent(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** * Get a list of H1-B and Permanent visa applications for companies from the DOL. The data is updated quarterly. * @summary H1-B Visa Application * @param {string} symbol Symbol. * @param {string} from From date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {string} to To date <code>YYYY-MM-DD</code>. Filter on the <code>beginDate</code> column. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public stockVisaApplication(symbol: string, from: string, to: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .stockVisaApplication(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } /** *

This endpoint provides an overall map of public companies\' key customers and suppliers. The data offers a deeper look into a company\'s supply chain and how products are created. The data will help investors manage risk, limit exposure or generate alpha-generating ideas and trading insights.

* @summary Supply Chain Relationships * @param {string} symbol Symbol. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public supplyChainRelationships(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .supplyChainRelationships(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get support and resistance levels for a symbol. * @summary Support/Resistance * @param {string} symbol Symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public supportResistance(symbol: string, resolution: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .supportResistance(symbol, resolution, options) .then((request) => request(this.axios, this.basePath)) } /** * Search for best-matching symbols based on your query. You can input anything from symbol, security\'s name to ISIN and Cusip. * @summary Symbol Lookup * @param {string} q Query text can be symbol, name, isin, or cusip. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public symbolSearch(q: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .symbolSearch(q, options) .then((request) => request(this.axios, this.basePath)) } /** * Return technical indicator with price data. List of supported indicators can be found here. * @summary Technical Indicators * @param {string} symbol symbol * @param {string} resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange. * @param {number} from UNIX timestamp. Interval initial value. * @param {number} to UNIX timestamp. Interval end value. * @param {string} indicator Indicator name. Full list can be found <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">here</a>. * @param {object} [indicatorFields] Check out <a href=\"https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp=sharing\" target=\"_blank\">this page</a> to see which indicators and params are supported. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public technicalIndicator(symbol: string, resolution: string, from: number, to: number, indicator: string, indicatorFields?: object, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .technicalIndicator(symbol, resolution, from, to, indicator, indicatorFields, options) .then((request) => request(this.axios, this.basePath)) } /** *

Get earnings call transcripts, audio and participants\' list. This endpoint is only available for US, UK, and Candian companies.

15+ years of data is available with 220,000+ audio which add up to 7TB in size.

* @summary Earnings Call Transcripts * @param {string} id Transcript\'s id obtained with <a href=\"#transcripts-list\">Transcripts List endpoint</a>. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public transcripts(id: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .transcripts(id, options) .then((request) => request(this.axios, this.basePath)) } /** * List earnings call transcripts\' metadata. This endpoint is available for US, UK, European, Australian and Canadian companies. * @summary Earnings Call Transcripts List * @param {string} symbol Company symbol: AAPL. Leave empty to list the latest transcripts * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public transcriptsList(symbol: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .transcriptsList(symbol, options) .then((request) => request(this.axios, this.basePath)) } /** * Get latest stock upgrade and downgrade. * @summary Stock Upgrade/Downgrade * @param {string} [symbol] Symbol of the company: AAPL. If left blank, the API will return latest stock upgrades/downgrades. * @param {string} [from] From date: 2000-03-15. * @param {string} [to] To date: 2020-03-16. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public upgradeDowngrade(symbol?: string, from?: string, to?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration) .upgradeDowngrade(symbol, from, to, options) .then((request) => request(this.axios, this.basePath)) } }