├── .openapi-generator └── VERSION ├── settings.gradle ├── .gitignore ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── src └── main │ └── kotlin │ └── io │ └── finnhub │ └── api │ ├── infrastructure │ ├── RequestMethod.kt │ ├── URIAdapter.kt │ ├── ByteArrayAdapter.kt │ ├── UUIDAdapter.kt │ ├── BigIntegerAdapter.kt │ ├── BigDecimalAdapter.kt │ ├── LocalDateAdapter.kt │ ├── LocalDateTimeAdapter.kt │ ├── OffsetDateTimeAdapter.kt │ ├── Errors.kt │ ├── RequestConfig.kt │ ├── Serializer.kt │ ├── ResponseExtensions.kt │ ├── ApiAbstractions.kt │ └── ApplicationDelegates.kt │ └── models │ ├── InvestmentThemePortfolio.kt │ ├── PatternRecognition.kt │ ├── MutualFundEet.kt │ ├── MutualFundEetPai.kt │ ├── SupportResistance.kt │ ├── Forexrates.kt │ ├── IPOCalendar.kt │ ├── BondYieldCurveInfo.kt │ ├── EconomicCalendar.kt │ ├── Sentiment.kt │ ├── AIChatMessage.kt │ ├── EarningsCalendar.kt │ ├── ETFsProfile.kt │ ├── EconomicDataInfo.kt │ ├── EmployeeCount.kt │ ├── InFilingSearchBody.kt │ ├── TechnicalAnalysis.kt │ ├── MutualFundProfile.kt │ ├── Dividends2.kt │ ├── ETFCountryExposureData.kt │ ├── ETFSectorExposureData.kt │ ├── Dividends2Info.kt │ ├── EarningsCallLive.kt │ ├── MarketCapData.kt │ ├── MutualFundSectorExposureData.kt │ ├── Trend.kt │ ├── MutualFundCountryExposureData.kt │ ├── AggregateIndicators.kt │ ├── AIChatBody.kt │ ├── BankBranchRes.kt │ ├── SearchFilter.kt │ ├── UsptoPatentResult.kt │ ├── BondYieldCurve.kt │ ├── BreakdownItem.kt │ ├── SectorMetric.kt │ ├── InstitutionalProfile.kt │ ├── LobbyingResult.kt │ ├── SocialSentiment.kt │ ├── StockPresentation.kt │ ├── HistoricalCompanyESG.kt │ ├── HistoricalEmployeeCount.kt │ ├── SymbolLookup.kt │ ├── PriceMetrics.kt │ ├── SupplyChainRelationships.kt │ ├── UsaSpendingResult.kt │ ├── CompanyNewsStatistics.kt │ ├── InvestmentThemes.kt │ ├── PressRelease.kt │ ├── InsiderSentiments.kt │ ├── InsiderTransactions.kt │ ├── IsinChangeInfo.kt │ ├── CongressionalTrading.kt │ ├── EconomicData.kt │ ├── VisaApplicationResult.kt │ ├── RevenueBreakdown2.kt │ ├── EarningsCallTranscriptsList.kt │ ├── CompanyExecutive.kt │ ├── SymbolChangeInfo.kt │ ├── ETFsSectorExposure.kt │ ├── FinancialStatements.kt │ ├── Indicator.kt │ ├── AirlinePriceIndex.kt │ ├── ETFsCountryExposure.kt │ ├── FinancialsAsReported.kt │ ├── InstitutionalOwnershipGroup.kt │ ├── MutualFundSectorExposure.kt │ ├── SectorMetricData.kt │ ├── Ownership.kt │ ├── MutualFundCountryExposure.kt │ ├── FundOwnership.kt │ ├── IndicesHistoricalConstituents.kt │ └── MarketHoliday.kt ├── docs ├── InvestmentThemePortfolio.md ├── Forexrates.md ├── IPOCalendar.md ├── Sentiment.md ├── InFilingSearchBody.md ├── MutualFundEet.md ├── PatternRecognition.md ├── AIChatMessage.md ├── BondYieldCurveInfo.md ├── EmployeeCount.md ├── MutualFundEetPai.md ├── SupportResistance.md ├── ETFsProfile.md ├── TechnicalAnalysis.md ├── EconomicCalendar.md ├── EconomicDataInfo.md ├── MarketCapData.md ├── Trend.md ├── Dividends2Info.md ├── EarningsCalendar.md ├── ETFCountryExposureData.md ├── ETFSectorExposureData.md ├── AggregateIndicators.md ├── MutualFundProfile.md ├── MutualFundSectorExposureData.md ├── AIChatBody.md ├── Dividends2.md ├── MutualFundCountryExposureData.md ├── SearchFilter.md ├── BreakdownItem.md ├── EarningsCallLive.md ├── CompanyNewsStatistics.md ├── BankBranchRes.md ├── UsptoPatentResult.md ├── IsinChangeInfo.md ├── StockPresentation.md ├── SymbolLookup.md ├── BondYieldCurve.md ├── LobbyingResult.md ├── PressRelease.md ├── PriceMetrics.md ├── SectorMetric.md ├── HistoricalCompanyESG.md ├── Indicator.md ├── SocialSentiment.md ├── SymbolChangeInfo.md ├── AirlinePriceIndex.md ├── HistoricalEmployeeCount.md ├── RevenueBreakdown2.md ├── InstitutionalProfile.md ├── UsaSpendingResult.md ├── CompanyExecutive.md ├── InsiderTransactions.md ├── EconomicData.md ├── InsiderSentiments.md ├── InvestmentThemes.md ├── Ownership.md ├── Split.md ├── SupplyChainRelationships.md ├── VisaApplicationResult.md ├── ETFsSectorExposure.md ├── EarningsCallTranscriptsList.md ├── FinancialsAsReported.md ├── CongressionalTrading.md ├── ETFsCountryExposure.md ├── FundOwnership.md ├── FinancialStatements.md ├── BasicFinancials.md ├── InstitutionalOwnershipGroup.md ├── IsinChange.md ├── MarketHolidayData.md ├── SectorMetricData.md ├── CovidInfo.md ├── MarketHoliday.md ├── MutualFundSectorExposure.md ├── MutualFundCountryExposure.md ├── SymbolChange.md ├── EconomicCode.md ├── HistoricalMarketCapData.md ├── RevenueBreakdown.md ├── SECSentimentAnalysis.md ├── IndicesHistoricalConstituents.md ├── EbitEstimates.md ├── IndexHistoricalConstituent.md ├── TranscriptParticipant.md ├── TranscriptContent.md ├── EbitdaEstimates.md ├── RevenueEstimates.md ├── EarningsEstimates.md ├── ForexSymbol.md ├── InstitutionalPortfolio.md ├── PresentationData.md ├── CryptoSymbol.md ├── InstitutionalOwnership.md ├── LastBidAsk.md ├── BankBranchData.md ├── FDAComitteeMeeting.md ├── InstitutionalPortfolioGroup.md ├── CompanyEarningsQualityScore.md ├── SimilarityIndex.md ├── AirlinePriceIndexData.md ├── BondCandles.md ├── ETFsHoldings.md ├── OwnershipInfo.md ├── ExcerptResponse.md ├── MutualFundHoldings.md ├── InsiderSentimentsData.md ├── IndicesConstituents.md ├── SymbolLookupInfo.md ├── Development.md ├── IndicesConstituentsBreakdown.md ├── SearchResponse.md ├── CompanyESG.md ├── CompanyESG2.md ├── Quote.md ├── InstitutionalProfileInfo.md ├── Company.md ├── FundOwnershipInfo.md ├── NewsSentiment.md ├── EarningsCallLiveResult.md ├── Economic event.md ├── StockTranscripts.md ├── EbitEstimatesInfo.md ├── EarningsEstimatesInfo.md ├── EbitdaEstimatesInfo.md ├── CompanyEarningsQualityScoreData.md ├── RevenueEstimatesInfo.md ├── PriceTarget.md ├── DocumentResponse.md ├── UpgradeDowngrade.md ├── Filing.md ├── SentimentContent.md ├── EarningResult.md ├── RedditSentimentContent.md ├── MarketStatus.md ├── TwitterSentimentContent.md ├── InternationalFiling.md ├── AIChatResponse.md ├── RecommendationTrend.md ├── UsptoPatent.md ├── IPOEvent.md ├── ETFHoldingsData.md ├── MutualFundHoldingsData.md ├── CompanyNews.md ├── CryptoProfile.md ├── MarketNews.md ├── CongressionalTransaction.md ├── ForexCandles.md ├── StockCandles.md ├── CryptoCandles.md ├── EarningRelease.md ├── FilingSentiment.md ├── CountryMetadata.md ├── EarningsCallTranscripts.md ├── Report.md ├── InstitutionalOwnershipInfo.md ├── InstitutionalPortfolioInfo.md ├── CompanyProfile2.md ├── KeyCustomersSuppliers.md ├── Transactions.md ├── LobbyingData.md ├── FilingResponse.md ├── StockSymbol.md ├── Dividends.md └── InFilingResponse.md ├── release.sh └── .openapi-generator-ignore /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 5.2.1 -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | rootProject.name = 'kotlin-client' -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/** 2 | .gradle/** 3 | build/** 4 | gradle.properties 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Finnhub-Stock-API/finnhub-kotlin/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/RequestMethod.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | /** 4 | * Provides enumerated HTTP verbs 5 | */ 6 | enum class RequestMethod { 7 | GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT 8 | } -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /docs/InvestmentThemePortfolio.md: -------------------------------------------------------------------------------- 1 | 2 | # InvestmentThemePortfolio 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Forexrates.md: -------------------------------------------------------------------------------- 1 | 2 | # Forexrates 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **base** | **kotlin.String** | Base currency. | [optional] 8 | **quote** | [**kotlin.Any**](.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/IPOCalendar.md: -------------------------------------------------------------------------------- 1 | 2 | # IPOCalendar 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **ipoCalendar** | [**kotlin.collections.List<IPOEvent>**](IPOEvent.md) | Array of IPO events. | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Sentiment.md: -------------------------------------------------------------------------------- 1 | 2 | # Sentiment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **bearishPercent** | **kotlin.Float** | | [optional] 8 | **bullishPercent** | **kotlin.Float** | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/InFilingSearchBody.md: -------------------------------------------------------------------------------- 1 | 2 | # InFilingSearchBody 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **query** | **kotlin.String** | Search query | 8 | **filingId** | **kotlin.String** | Filing Id to search | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MutualFundEet.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundEet 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **isin** | **kotlin.String** | ISIN. | [optional] 8 | **`data`** | [**kotlin.Any**](.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/PatternRecognition.md: -------------------------------------------------------------------------------- 1 | 2 | # PatternRecognition 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **points** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | Array of patterns. | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/AIChatMessage.md: -------------------------------------------------------------------------------- 1 | 2 | # AIChatMessage 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **role** | **kotlin.String** | Role system/user | [optional] 8 | **content** | **kotlin.String** | Content | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/BondYieldCurveInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # BondYieldCurveInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **d** | **kotlin.String** | Date of the reading | [optional] 8 | **v** | **kotlin.Float** | Value | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EmployeeCount.md: -------------------------------------------------------------------------------- 1 | 2 | # EmployeeCount 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **atDate** | **kotlin.String** | Date of the reading | [optional] 8 | **employee** | **kotlin.Float** | Value | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MutualFundEetPai.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundEetPai 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **isin** | **kotlin.String** | ISIN. | [optional] 8 | **`data`** | [**kotlin.Any**](.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SupportResistance.md: -------------------------------------------------------------------------------- 1 | 2 | # SupportResistance 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **levels** | **kotlin.collections.List<kotlin.Float>** | Array of support and resistance levels. | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ETFsProfile.md: -------------------------------------------------------------------------------- 1 | 2 | # ETFsProfile 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **profile** | [**ETFProfileData**](ETFProfileData.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TechnicalAnalysis.md: -------------------------------------------------------------------------------- 1 | 2 | # TechnicalAnalysis 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **count** | [**Indicator**](Indicator.md) | | [optional] 8 | **signal** | **kotlin.String** | Aggregate Signal | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EconomicCalendar.md: -------------------------------------------------------------------------------- 1 | 2 | # EconomicCalendar 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **economicCalendar** | [**kotlin.collections.List<EconomicEvent>**](EconomicEvent.md) | Array of economic events. | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/EconomicDataInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # EconomicDataInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **date** | **kotlin.String** | Date of the reading | [optional] 8 | **`value`** | **kotlin.Float** | Value | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MarketCapData.md: -------------------------------------------------------------------------------- 1 | 2 | # MarketCapData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **atDate** | **kotlin.String** | Date of the reading | [optional] 8 | **marketCapitalization** | **kotlin.Float** | Value | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Trend.md: -------------------------------------------------------------------------------- 1 | 2 | # Trend 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **adx** | **kotlin.Float** | ADX reading | [optional] 8 | **trending** | **kotlin.Boolean** | Whether market is trending or going sideway | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Dividends2Info.md: -------------------------------------------------------------------------------- 1 | 2 | # Dividends2Info 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **exDate** | **kotlin.String** | Ex-Dividend date. | [optional] 8 | **amount** | **kotlin.Float** | Amount in local currency. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EarningsCalendar.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningsCalendar 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **earningsCalendar** | [**kotlin.collections.List<EarningRelease>**](EarningRelease.md) | Array of earnings release. | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ETFCountryExposureData.md: -------------------------------------------------------------------------------- 1 | 2 | # ETFCountryExposureData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **country** | **kotlin.String** | Country | [optional] 8 | **exposure** | **kotlin.Float** | Percent of exposure. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ETFSectorExposureData.md: -------------------------------------------------------------------------------- 1 | 2 | # ETFSectorExposureData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **industry** | **kotlin.String** | Industry | [optional] 8 | **exposure** | **kotlin.Float** | Percent of exposure. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/AggregateIndicators.md: -------------------------------------------------------------------------------- 1 | 2 | # AggregateIndicators 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **technicalAnalysis** | [**TechnicalAnalysis**](TechnicalAnalysis.md) | | [optional] 8 | **trend** | [**Trend**](Trend.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MutualFundProfile.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundProfile 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **profile** | [**MutualFundProfileData**](MutualFundProfileData.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MutualFundSectorExposureData.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundSectorExposureData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sector** | **kotlin.String** | Sector | [optional] 8 | **exposure** | **kotlin.Float** | Percent of exposure. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/AIChatBody.md: -------------------------------------------------------------------------------- 1 | 2 | # AIChatBody 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **messages** | [**kotlin.collections.List<AIChatMessage>**](AIChatMessage.md) | Messages | 8 | **stream** | **kotlin.Boolean** | Stream responses | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Dividends2.md: -------------------------------------------------------------------------------- 1 | 2 | # Dividends2 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | **`data`** | [**kotlin.collections.List<Dividends2Info>**](Dividends2Info.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MutualFundCountryExposureData.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundCountryExposureData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **country** | **kotlin.String** | Country | [optional] 8 | **exposure** | **kotlin.Float** | Percent of exposure. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SearchFilter.md: -------------------------------------------------------------------------------- 1 | 2 | # SearchFilter 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **kotlin.String** | Filter id, use with respective field in search query body. | [optional] 8 | **name** | **kotlin.String** | Display name. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/BreakdownItem.md: -------------------------------------------------------------------------------- 1 | 2 | # BreakdownItem 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **accessNumber** | **kotlin.String** | Access number of the report from which the data is sourced. | [optional] 8 | **breakdown** | [**kotlin.Any**](.md) | | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EarningsCallLive.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningsCallLive 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **event** | [**kotlin.collections.List<EarningsCallLiveResult>**](EarningsCallLiveResult.md) | Array of earnings call events that support live streaming. | [optional] 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CompanyNewsStatistics.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyNewsStatistics 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **articlesInLastWeek** | **kotlin.Long** | | [optional] 8 | **buzz** | **kotlin.Float** | | [optional] 9 | **weeklyAverage** | **kotlin.Float** | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/BankBranchRes.md: -------------------------------------------------------------------------------- 1 | 2 | # BankBranchRes 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<BankBranchData>**](BankBranchData.md) | Array of branches. | [optional] 8 | **symbol** | **kotlin.String** | Symbol | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/UsptoPatentResult.md: -------------------------------------------------------------------------------- 1 | 2 | # UsptoPatentResult 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **`data`** | [**kotlin.collections.List<UsptoPatent>**](UsptoPatent.md) | Array of patents. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/URIAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | import java.net.URI 6 | 7 | class URIAdapter { 8 | @ToJson 9 | fun toJson(uri: URI) = uri.toString() 10 | 11 | @FromJson 12 | fun fromJson(s: String): URI = URI.create(s) 13 | } 14 | -------------------------------------------------------------------------------- /docs/IsinChangeInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # IsinChangeInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **atDate** | **kotlin.String** | Event's date. | [optional] 8 | **oldIsin** | **kotlin.String** | Old ISIN. | [optional] 9 | **newIsin** | **kotlin.String** | New ISIN. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/StockPresentation.md: -------------------------------------------------------------------------------- 1 | 2 | # StockPresentation 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **res** | [**kotlin.collections.List<PresentationData>**](PresentationData.md) | Presentation data. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SymbolLookup.md: -------------------------------------------------------------------------------- 1 | 2 | # SymbolLookup 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **result** | [**kotlin.collections.List<SymbolLookupInfo>**](SymbolLookupInfo.md) | Array of search results. | [optional] 8 | **count** | **kotlin.Long** | Number of results. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/BondYieldCurve.md: -------------------------------------------------------------------------------- 1 | 2 | # BondYieldCurve 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<BondYieldCurveInfo>**](BondYieldCurveInfo.md) | Array of data. | [optional] 8 | **code** | **kotlin.String** | Bond's code | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/LobbyingResult.md: -------------------------------------------------------------------------------- 1 | 2 | # LobbyingResult 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **`data`** | [**kotlin.collections.List<LobbyingData>**](LobbyingData.md) | Array of lobbying activities. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/PressRelease.md: -------------------------------------------------------------------------------- 1 | 2 | # PressRelease 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **majorDevelopment** | [**kotlin.collections.List<Development>**](Development.md) | Array of major developments. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/PriceMetrics.md: -------------------------------------------------------------------------------- 1 | 2 | # PriceMetrics 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **atDate** | **kotlin.String** | Data date. | [optional] 9 | **`data`** | [**kotlin.Any**](.md) | | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SectorMetric.md: -------------------------------------------------------------------------------- 1 | 2 | # SectorMetric 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **region** | **kotlin.String** | Region. | [optional] 8 | **`data`** | [**kotlin.collections.List<SectorMetricData>**](SectorMetricData.md) | Metrics for each sector. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/HistoricalCompanyESG.md: -------------------------------------------------------------------------------- 1 | 2 | # HistoricalCompanyESG 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | symbol | [optional] 8 | **`data`** | [**kotlin.collections.List<CompanyESG2>**](CompanyESG2.md) | Historical ESG data points. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Indicator.md: -------------------------------------------------------------------------------- 1 | 2 | # Indicator 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **buy** | **kotlin.Long** | Number of buy signals | [optional] 8 | **neutral** | **kotlin.Long** | Number of neutral signals | [optional] 9 | **sell** | **kotlin.Long** | Number of sell signals | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SocialSentiment.md: -------------------------------------------------------------------------------- 1 | 2 | # SocialSentiment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **`data`** | [**kotlin.collections.List<SentimentContent>**](SentimentContent.md) | Sentiment data. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SymbolChangeInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # SymbolChangeInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **atDate** | **kotlin.String** | Event's date. | [optional] 8 | **oldSymbol** | **kotlin.String** | Old symbol. | [optional] 9 | **newSymbol** | **kotlin.String** | New symbol. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/ByteArrayAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | 6 | class ByteArrayAdapter { 7 | @ToJson 8 | fun toJson(data: ByteArray): String = String(data) 9 | 10 | @FromJson 11 | fun fromJson(data: String): ByteArray = data.toByteArray() 12 | } 13 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/UUIDAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | import java.util.UUID 6 | 7 | class UUIDAdapter { 8 | @ToJson 9 | fun toJson(uuid: UUID) = uuid.toString() 10 | 11 | @FromJson 12 | fun fromJson(s: String): UUID = UUID.fromString(s) 13 | } 14 | -------------------------------------------------------------------------------- /docs/AirlinePriceIndex.md: -------------------------------------------------------------------------------- 1 | 2 | # AirlinePriceIndex 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **date** | **kotlin.String** | Date | [optional] 8 | **priceIndex** | **kotlin.Float** | Price Index | [optional] 9 | **dailyAvgPrice** | **kotlin.Float** | Daily average ticket price. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/HistoricalEmployeeCount.md: -------------------------------------------------------------------------------- 1 | 2 | # HistoricalEmployeeCount 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<EmployeeCount>**](EmployeeCount.md) | Array of market data. | [optional] 8 | **symbol** | **kotlin.String** | Symbol | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /release.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | if [ $# -eq 0 ] 3 | then 4 | echo "No arguments supplied" 5 | exit 6 | fi 7 | 8 | ./gradlew :clean :build :publish 9 | echo "Promote repo at https://s01.oss.sonatype.org/#nexus-search;quick~io.finnhub" 10 | echo "Check code update https://repo1.maven.org/maven2/io/finnhub/kotlin-client/" 11 | # git add -A 12 | # git commit -m "update v$1" 13 | # git push -------------------------------------------------------------------------------- /docs/RevenueBreakdown2.md: -------------------------------------------------------------------------------- 1 | 2 | # RevenueBreakdown2 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | **currency** | **kotlin.String** | currency | [optional] 9 | **`data`** | [**kotlin.Any**](.md) | Revenue breakdown data. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/InstitutionalProfile.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalProfile 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **cik** | **kotlin.String** | CIK. | [optional] 8 | **`data`** | [**kotlin.collections.List<InstitutionalProfileInfo>**](InstitutionalProfileInfo.md) | Array of investors. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/UsaSpendingResult.md: -------------------------------------------------------------------------------- 1 | 2 | # UsaSpendingResult 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **`data`** | [**kotlin.collections.List<UsaSpending>**](UsaSpending.md) | Array of government's spending data points. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CompanyExecutive.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyExecutive 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **executive** | [**kotlin.collections.List<Company>**](Company.md) | Array of company's executives and members of the Board. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/InsiderTransactions.md: -------------------------------------------------------------------------------- 1 | 2 | # InsiderTransactions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **`data`** | [**kotlin.collections.List<Transactions>**](Transactions.md) | Array of insider transactions. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EconomicData.md: -------------------------------------------------------------------------------- 1 | 2 | # EconomicData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<EconomicDataInfo>**](EconomicDataInfo.md) | Array of economic data for requested code. | [optional] 8 | **code** | **kotlin.String** | Finnhub economic code | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/InsiderSentiments.md: -------------------------------------------------------------------------------- 1 | 2 | # InsiderSentiments 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **`data`** | [**kotlin.collections.List<InsiderSentimentsData>**](InsiderSentimentsData.md) | Array of sentiment data. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/InvestmentThemes.md: -------------------------------------------------------------------------------- 1 | 2 | # InvestmentThemes 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **theme** | **kotlin.String** | Investment theme | [optional] 8 | **`data`** | [**kotlin.collections.List<InvestmentThemePortfolio>**](InvestmentThemePortfolio.md) | Investment theme portfolio. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Ownership.md: -------------------------------------------------------------------------------- 1 | 2 | # Ownership 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **ownership** | [**kotlin.collections.List<OwnershipInfo>**](OwnershipInfo.md) | Array of investors with detailed information about their holdings. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Split.md: -------------------------------------------------------------------------------- 1 | 2 | # Split 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **date** | **kotlin.String** | Split date. | [optional] 9 | **fromFactor** | **kotlin.Float** | From factor. | [optional] 10 | **toFactor** | **kotlin.Float** | To factor. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/SupplyChainRelationships.md: -------------------------------------------------------------------------------- 1 | 2 | # SupplyChainRelationships 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | symbol | [optional] 8 | **`data`** | [**kotlin.collections.List<KeyCustomersSuppliers>**](KeyCustomersSuppliers.md) | Key customers and suppliers. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/VisaApplicationResult.md: -------------------------------------------------------------------------------- 1 | 2 | # VisaApplicationResult 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **`data`** | [**kotlin.collections.List<VisaApplication>**](VisaApplication.md) | Array of H1b and Permanent visa applications. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ETFsSectorExposure.md: -------------------------------------------------------------------------------- 1 | 2 | # ETFsSectorExposure 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | ETF symbol. | [optional] 8 | **sectorExposure** | [**kotlin.collections.List<ETFSectorExposureData>**](ETFSectorExposureData.md) | Array of industries and exposure levels. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EarningsCallTranscriptsList.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningsCallTranscriptsList 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **transcripts** | [**kotlin.collections.List<StockTranscripts>**](StockTranscripts.md) | Array of transcripts' metadata | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/FinancialsAsReported.md: -------------------------------------------------------------------------------- 1 | 2 | # FinancialsAsReported 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | **cik** | **kotlin.String** | CIK | [optional] 9 | **`data`** | [**kotlin.collections.List<Report>**](Report.md) | Array of filings. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CongressionalTrading.md: -------------------------------------------------------------------------------- 1 | 2 | # CongressionalTrading 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **`data`** | [**kotlin.collections.List<CongressionalTransaction>**](CongressionalTransaction.md) | Array of stock trades. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ETFsCountryExposure.md: -------------------------------------------------------------------------------- 1 | 2 | # ETFsCountryExposure 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | ETF symbol. | [optional] 8 | **countryExposure** | [**kotlin.collections.List<ETFCountryExposureData>**](ETFCountryExposureData.md) | Array of countries and and exposure levels. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/FundOwnership.md: -------------------------------------------------------------------------------- 1 | 2 | # FundOwnership 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **ownership** | [**kotlin.collections.List<FundOwnershipInfo>**](FundOwnershipInfo.md) | Array of investors with detailed information about their holdings. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/FinancialStatements.md: -------------------------------------------------------------------------------- 1 | 2 | # FinancialStatements 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **financials** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | An array of map of key, value pairs containing the data for each period. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/BasicFinancials.md: -------------------------------------------------------------------------------- 1 | 2 | # BasicFinancials 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol of the company. | [optional] 8 | **metricType** | **kotlin.String** | Metric type. | [optional] 9 | **series** | [**kotlin.Any**](.md) | | [optional] 10 | **metric** | [**kotlin.Any**](.md) | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/InstitutionalOwnershipGroup.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalOwnershipGroup 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **reportDate** | **kotlin.String** | Report date. | [optional] 8 | **ownership** | [**kotlin.collections.List<InstitutionalOwnershipInfo>**](InstitutionalOwnershipInfo.md) | Array of institutional investors. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/IsinChange.md: -------------------------------------------------------------------------------- 1 | 2 | # IsinChange 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **fromDate** | **kotlin.String** | From date. | [optional] 8 | **toDate** | **kotlin.String** | To date. | [optional] 9 | **`data`** | [**kotlin.collections.List<IsinChangeInfo>**](IsinChangeInfo.md) | Array of ISIN change events. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/MarketHolidayData.md: -------------------------------------------------------------------------------- 1 | 2 | # MarketHolidayData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **eventName** | **kotlin.String** | Holiday's name. | [optional] 8 | **atDate** | **kotlin.String** | Date. | [optional] 9 | **tradingHour** | **kotlin.String** | Trading hours for this day if the market is partially closed only. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SectorMetricData.md: -------------------------------------------------------------------------------- 1 | 2 | # SectorMetricData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sector** | **kotlin.String** | Sector | [optional] 8 | **metrics** | [**kotlin.Any**](.md) | Metrics data in key-value format. <code>a</code> and <code>m</code> fields are for average and median respectively. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CovidInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # CovidInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **state** | **kotlin.String** | State. | [optional] 8 | **case** | **kotlin.Float** | Number of confirmed cases. | [optional] 9 | **death** | **kotlin.Float** | Number of confirmed deaths. | [optional] 10 | **updated** | **kotlin.String** | Updated time. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/MarketHoliday.md: -------------------------------------------------------------------------------- 1 | 2 | # MarketHoliday 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **timezone** | **kotlin.String** | Timezone. | [optional] 8 | **exchange** | **kotlin.String** | Exchange. | [optional] 9 | **`data`** | [**kotlin.collections.List<MarketHolidayData>**](MarketHolidayData.md) | Array of holidays. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/MutualFundSectorExposure.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundSectorExposure 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Mutual symbol. | [optional] 8 | **sectorExposure** | [**kotlin.collections.List<MutualFundSectorExposureData>**](MutualFundSectorExposureData.md) | Array of sector and exposure levels. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/MutualFundCountryExposure.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundCountryExposure 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **countryExposure** | [**kotlin.collections.List<MutualFundCountryExposureData>**](MutualFundCountryExposureData.md) | Array of countries and and exposure levels. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SymbolChange.md: -------------------------------------------------------------------------------- 1 | 2 | # SymbolChange 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **fromDate** | **kotlin.String** | From date. | [optional] 8 | **toDate** | **kotlin.String** | To date. | [optional] 9 | **`data`** | [**kotlin.collections.List<SymbolChangeInfo>**](SymbolChangeInfo.md) | Array of symbol change events. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/EconomicCode.md: -------------------------------------------------------------------------------- 1 | 2 | # EconomicCode 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **code** | **kotlin.String** | Finnhub economic code used to get historical data | [optional] 8 | **country** | **kotlin.String** | Country | [optional] 9 | **name** | **kotlin.String** | Indicator name | [optional] 10 | **unit** | **kotlin.String** | Unit | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/HistoricalMarketCapData.md: -------------------------------------------------------------------------------- 1 | 2 | # HistoricalMarketCapData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<MarketCapData>**](MarketCapData.md) | Array of market data. | [optional] 8 | **symbol** | **kotlin.String** | Symbol | [optional] 9 | **currency** | **kotlin.String** | Currency | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/RevenueBreakdown.md: -------------------------------------------------------------------------------- 1 | 2 | # RevenueBreakdown 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | **cik** | **kotlin.String** | CIK | [optional] 9 | **`data`** | [**kotlin.collections.List<BreakdownItem>**](BreakdownItem.md) | Array of revenue breakdown over multiple periods. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SECSentimentAnalysis.md: -------------------------------------------------------------------------------- 1 | 2 | # SECSentimentAnalysis 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **accessNumber** | **kotlin.String** | Access number. | [optional] 8 | **symbol** | **kotlin.String** | Symbol. | [optional] 9 | **cik** | **kotlin.String** | CIK. | [optional] 10 | **sentiment** | [**FilingSentiment**](FilingSentiment.md) | | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/IndicesHistoricalConstituents.md: -------------------------------------------------------------------------------- 1 | 2 | # IndicesHistoricalConstituents 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Index's symbol. | [optional] 8 | **historicalConstituents** | [**kotlin.collections.List<IndexHistoricalConstituent>**](IndexHistoricalConstituent.md) | Array of historical constituents. | [optional] 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EbitEstimates.md: -------------------------------------------------------------------------------- 1 | 2 | # EbitEstimates 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<EbitEstimatesInfo>**](EbitEstimatesInfo.md) | List of estimates | [optional] 8 | **freq** | **kotlin.String** | Frequency: annual or quarterly. | [optional] 9 | **symbol** | **kotlin.String** | Company symbol. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/IndexHistoricalConstituent.md: -------------------------------------------------------------------------------- 1 | 2 | # IndexHistoricalConstituent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | **action** | **kotlin.String** | <code>add</code> or <code>remove</code>. | [optional] 9 | **date** | **kotlin.String** | Date of joining or leaving the index. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/TranscriptParticipant.md: -------------------------------------------------------------------------------- 1 | 2 | # TranscriptParticipant 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **kotlin.String** | Participant's name | [optional] 8 | **description** | **kotlin.String** | Participant's description | [optional] 9 | **role** | **kotlin.String** | Whether the speak is a company's executive or an analyst | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/TranscriptContent.md: -------------------------------------------------------------------------------- 1 | 2 | # TranscriptContent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **kotlin.String** | Speaker's name | [optional] 8 | **speech** | **kotlin.collections.List<kotlin.String>** | Speaker's speech | [optional] 9 | **session** | **kotlin.String** | Earnings calls section (management discussion or Q&A) | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/EbitdaEstimates.md: -------------------------------------------------------------------------------- 1 | 2 | # EbitdaEstimates 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<EbitdaEstimatesInfo>**](EbitdaEstimatesInfo.md) | List of estimates | [optional] 8 | **freq** | **kotlin.String** | Frequency: annual or quarterly. | [optional] 9 | **symbol** | **kotlin.String** | Company symbol. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/RevenueEstimates.md: -------------------------------------------------------------------------------- 1 | 2 | # RevenueEstimates 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<RevenueEstimatesInfo>**](RevenueEstimatesInfo.md) | List of estimates | [optional] 8 | **freq** | **kotlin.String** | Frequency: annual or quarterly. | [optional] 9 | **symbol** | **kotlin.String** | Company symbol. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/EarningsEstimates.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningsEstimates 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<EarningsEstimatesInfo>**](EarningsEstimatesInfo.md) | List of estimates | [optional] 8 | **freq** | **kotlin.String** | Frequency: annual or quarterly. | [optional] 9 | **symbol** | **kotlin.String** | Company symbol. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ForexSymbol.md: -------------------------------------------------------------------------------- 1 | 2 | # ForexSymbol 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **kotlin.String** | Symbol description | [optional] 8 | **displaySymbol** | **kotlin.String** | Display symbol name. | [optional] 9 | **symbol** | **kotlin.String** | Unique symbol used to identify this symbol used in <code>/forex/candle</code> endpoint. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/InstitutionalPortfolio.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalPortfolio 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **kotlin.String** | Investor's name. | [optional] 8 | **cik** | **kotlin.String** | CIK. | [optional] 9 | **`data`** | [**kotlin.collections.List<InstitutionalPortfolioGroup>**](InstitutionalPortfolioGroup.md) | Array of positions. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/PresentationData.md: -------------------------------------------------------------------------------- 1 | 2 | # PresentationData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **quarter** | **kotlin.Long** | Quarter | [optional] 8 | **year** | **kotlin.Long** | Year | [optional] 9 | **url** | **kotlin.String** | Presentation url | [optional] 10 | **title** | **kotlin.String** | Title | [optional] 11 | **atTime** | **kotlin.String** | At Time. | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/CryptoSymbol.md: -------------------------------------------------------------------------------- 1 | 2 | # CryptoSymbol 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **kotlin.String** | Symbol description | [optional] 8 | **displaySymbol** | **kotlin.String** | Display symbol name. | [optional] 9 | **symbol** | **kotlin.String** | Unique symbol used to identify this symbol used in <code>/crypto/candle</code> endpoint. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/InstitutionalOwnership.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalOwnership 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **cusip** | **kotlin.String** | Cusip. | [optional] 9 | **`data`** | [**kotlin.collections.List<InstitutionalOwnershipGroup>**](InstitutionalOwnershipGroup.md) | Array of institutional investors. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/LastBidAsk.md: -------------------------------------------------------------------------------- 1 | 2 | # LastBidMinusAsk 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **b** | **kotlin.Float** | Bid price. | [optional] 8 | **a** | **kotlin.Float** | Ask price. | [optional] 9 | **bv** | **kotlin.Float** | Bid volume. | [optional] 10 | **av** | **kotlin.Float** | Ask volume. | [optional] 11 | **t** | **kotlin.Long** | Reference UNIX timestamp in ms. | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/BigIntegerAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | import java.math.BigInteger 6 | 7 | class BigIntegerAdapter { 8 | @ToJson 9 | fun toJson(value: BigInteger): String { 10 | return value.toString() 11 | } 12 | 13 | @FromJson 14 | fun fromJson(value: String): BigInteger { 15 | return BigInteger(value) 16 | } 17 | } -------------------------------------------------------------------------------- /docs/BankBranchData.md: -------------------------------------------------------------------------------- 1 | 2 | # BankBranchData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **branchId** | **kotlin.String** | Branch ID | [optional] 8 | **address** | **kotlin.String** | Branch address | [optional] 9 | **state** | **kotlin.String** | State | [optional] 10 | **zipCode** | **kotlin.String** | Zip code | [optional] 11 | **date** | **kotlin.String** | Date opened | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/BigDecimalAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | import java.math.BigDecimal 6 | 7 | class BigDecimalAdapter { 8 | @ToJson 9 | fun toJson(value: BigDecimal): String { 10 | return value.toPlainString() 11 | } 12 | 13 | @FromJson 14 | fun fromJson(value: String): BigDecimal { 15 | return BigDecimal(value) 16 | } 17 | } -------------------------------------------------------------------------------- /docs/FDAComitteeMeeting.md: -------------------------------------------------------------------------------- 1 | 2 | # FDAComitteeMeeting 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **fromDate** | **kotlin.String** | Start time of the event in EST. | [optional] 8 | **toDate** | **kotlin.String** | End time of the event in EST. | [optional] 9 | **eventDescription** | **kotlin.String** | Event's description. | [optional] 10 | **url** | **kotlin.String** | URL. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/InstitutionalPortfolioGroup.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalPortfolioGroup 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **reportDate** | **kotlin.String** | Report date. | [optional] 8 | **filingDate** | **kotlin.String** | Filing date. | [optional] 9 | **portfolio** | [**kotlin.collections.List<InstitutionalPortfolioInfo>**](InstitutionalPortfolioInfo.md) | Array of positions. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CompanyEarningsQualityScore.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyEarningsQualityScore 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | **freq** | **kotlin.String** | Frequency | [optional] 9 | **`data`** | [**kotlin.collections.List<CompanyEarningsQualityScoreData>**](CompanyEarningsQualityScoreData.md) | Array of earnings quality score. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SimilarityIndex.md: -------------------------------------------------------------------------------- 1 | 2 | # SimilarityIndex 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **cik** | **kotlin.String** | CIK. | [optional] 9 | **similarity** | [**kotlin.collections.List<SimilarityIndexInfo>**](SimilarityIndexInfo.md) | Array of filings with its cosine similarity compared to the same report of the previous year. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/AirlinePriceIndexData.md: -------------------------------------------------------------------------------- 1 | 2 | # AirlinePriceIndexData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`data`** | [**kotlin.collections.List<AirlinePriceIndex>**](AirlinePriceIndex.md) | Array of price index. | [optional] 8 | **airline** | **kotlin.String** | Airline name | [optional] 9 | **from** | **kotlin.String** | From date | [optional] 10 | **to** | **kotlin.String** | To date | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/BondCandles.md: -------------------------------------------------------------------------------- 1 | 2 | # BondCandles 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **c** | **kotlin.collections.List<kotlin.Float>** | List of close prices for returned candles. | [optional] 8 | **t** | **kotlin.collections.List<kotlin.Long>** | List of timestamp for returned candles. | [optional] 9 | **s** | **kotlin.String** | Status of the response. This field can either be ok or no_data. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ETFsHoldings.md: -------------------------------------------------------------------------------- 1 | 2 | # ETFsHoldings 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | ETF symbol. | [optional] 8 | **atDate** | **kotlin.String** | Holdings update date. | [optional] 9 | **numberOfHoldings** | **kotlin.Long** | Number of holdings. | [optional] 10 | **holdings** | [**kotlin.collections.List<ETFHoldingsData>**](ETFHoldingsData.md) | Array of holdings. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/OwnershipInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # OwnershipInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **kotlin.String** | Investor's name. | [optional] 8 | **share** | **kotlin.Long** | Number of shares held by the investor. | [optional] 9 | **change** | **kotlin.Long** | Number of share changed (net buy or sell) from the last period. | [optional] 10 | **filingDate** | **kotlin.String** | Filing date. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/ExcerptResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # ExcerptResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **content** | **kotlin.String** | Highlighted content | [optional] 8 | **snippetId** | **kotlin.String** | Location of the content in the rendered document | [optional] 9 | **startOffset** | **kotlin.String** | Start offset of highlighted content | [optional] 10 | **endOffset** | **kotlin.String** | End offset of highlighted content | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/MutualFundHoldings.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundHoldings 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **atDate** | **kotlin.String** | Holdings update date. | [optional] 9 | **numberOfHoldings** | **kotlin.Long** | Number of holdings. | [optional] 10 | **holdings** | [**kotlin.collections.List<MutualFundHoldingsData>**](MutualFundHoldingsData.md) | Array of holdings. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/InsiderSentimentsData.md: -------------------------------------------------------------------------------- 1 | 2 | # InsiderSentimentsData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **year** | **kotlin.Long** | Year. | [optional] 9 | **month** | **kotlin.Long** | Month. | [optional] 10 | **change** | **kotlin.Long** | Net buying/selling from all insiders' transactions. | [optional] 11 | **mspr** | **kotlin.Float** | Monthly share purchase ratio. | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/IndicesConstituents.md: -------------------------------------------------------------------------------- 1 | 2 | # IndicesConstituents 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Index's symbol. | [optional] 8 | **constituents** | **kotlin.collections.List<kotlin.String>** | Array of constituents. | [optional] 9 | **constituentsBreakdown** | [**kotlin.collections.List<IndicesConstituentsBreakdown>**](IndicesConstituentsBreakdown.md) | Array of constituents' details. | [optional] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SymbolLookupInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # SymbolLookupInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **kotlin.String** | Symbol description | [optional] 8 | **displaySymbol** | **kotlin.String** | Display symbol name. | [optional] 9 | **symbol** | **kotlin.String** | Unique symbol used to identify this symbol used in <code>/stock/candle</code> endpoint. | [optional] 10 | **type** | **kotlin.String** | Security type. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Development.md: -------------------------------------------------------------------------------- 1 | 2 | # Development 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **datetime** | **kotlin.String** | Published time in <code>YYYY-MM-DD HH:MM:SS</code> format. | [optional] 9 | **headline** | **kotlin.String** | Development headline. | [optional] 10 | **description** | **kotlin.String** | Development description. | [optional] 11 | **url** | **kotlin.String** | URL. | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/IndicesConstituentsBreakdown.md: -------------------------------------------------------------------------------- 1 | 2 | # IndicesConstituentsBreakdown 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **name** | **kotlin.String** | Name. | [optional] 9 | **isin** | **kotlin.String** | ISIN. | [optional] 10 | **cusip** | **kotlin.String** | Cusip. | [optional] 11 | **shareClassFIGI** | **kotlin.String** | Global Share Class FIGI. | [optional] 12 | **weight** | **kotlin.Float** | Weight. | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/SearchResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # SearchResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **count** | **kotlin.Int** | Total filing matched your search criteria. | [optional] 8 | **took** | **kotlin.Int** | Time took to execute your search query on our server, value in ms. | [optional] 9 | **page** | **kotlin.Int** | Current search page | [optional] 10 | **filings** | [**kotlin.collections.List<FilingResponse>**](FilingResponse.md) | Filing match your search criteria. | [optional] 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CompanyESG.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyESG 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | symbol | [optional] 8 | **totalESGScore** | **kotlin.Float** | Total ESG Score | [optional] 9 | **environmentScore** | **kotlin.Float** | Environment Score | [optional] 10 | **governanceScore** | **kotlin.Float** | Governance Score | [optional] 11 | **socialScore** | **kotlin.Float** | Social Score | [optional] 12 | **`data`** | [**kotlin.Any**](.md) | | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CompanyESG2.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyESG2 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **totalESGScore** | **kotlin.Float** | Total ESG Score | [optional] 8 | **environmentScore** | **kotlin.Float** | Environment Score | [optional] 9 | **governanceScore** | **kotlin.Float** | Governance Score | [optional] 10 | **socialScore** | **kotlin.Float** | Social Score | [optional] 11 | **`data`** | [**kotlin.Any**](.md) | | [optional] 12 | **period** | **kotlin.String** | Period | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Quote.md: -------------------------------------------------------------------------------- 1 | 2 | # Quote 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **o** | **kotlin.Float** | Open price of the day | [optional] 8 | **h** | **kotlin.Float** | High price of the day | [optional] 9 | **l** | **kotlin.Float** | Low price of the day | [optional] 10 | **c** | **kotlin.Float** | Current price | [optional] 11 | **pc** | **kotlin.Float** | Previous close price | [optional] 12 | **d** | **kotlin.Float** | Change | [optional] 13 | **dp** | **kotlin.Float** | Percent change | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/LocalDateAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | import java.time.LocalDate 6 | import java.time.format.DateTimeFormatter 7 | 8 | class LocalDateAdapter { 9 | @ToJson 10 | fun toJson(value: LocalDate): String { 11 | return DateTimeFormatter.ISO_LOCAL_DATE.format(value) 12 | } 13 | 14 | @FromJson 15 | fun fromJson(value: String): LocalDate { 16 | return LocalDate.parse(value, DateTimeFormatter.ISO_LOCAL_DATE) 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /docs/InstitutionalProfileInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalProfileInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **cik** | **kotlin.String** | Investor's company CIK. | [optional] 8 | **firmType** | **kotlin.String** | Firm type. | [optional] 9 | **manager** | **kotlin.String** | Manager. | [optional] 10 | **philosophy** | **kotlin.String** | Investing philosophy. | [optional] 11 | **profile** | **kotlin.String** | Profile info. | [optional] 12 | **profileImg** | **kotlin.String** | Profile image. | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/LocalDateTimeAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | import java.time.LocalDateTime 6 | import java.time.format.DateTimeFormatter 7 | 8 | class LocalDateTimeAdapter { 9 | @ToJson 10 | fun toJson(value: LocalDateTime): String { 11 | return DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(value) 12 | } 13 | 14 | @FromJson 15 | fun fromJson(value: String): LocalDateTime { 16 | return LocalDateTime.parse(value, DateTimeFormatter.ISO_LOCAL_DATE_TIME) 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /docs/Company.md: -------------------------------------------------------------------------------- 1 | 2 | # Company 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **kotlin.String** | Executive name | [optional] 8 | **age** | **kotlin.Long** | Age | [optional] 9 | **title** | **kotlin.String** | Title | [optional] 10 | **since** | **kotlin.String** | Year first appointed as executive/director of the company | [optional] 11 | **sex** | **kotlin.String** | Sex | [optional] 12 | **compensation** | **kotlin.Long** | Total compensation | [optional] 13 | **currency** | **kotlin.String** | Compensation currency | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/OffsetDateTimeAdapter.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.FromJson 4 | import com.squareup.moshi.ToJson 5 | import java.time.OffsetDateTime 6 | import java.time.format.DateTimeFormatter 7 | 8 | class OffsetDateTimeAdapter { 9 | @ToJson 10 | fun toJson(value: OffsetDateTime): String { 11 | return DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(value) 12 | } 13 | 14 | @FromJson 15 | fun fromJson(value: String): OffsetDateTime { 16 | return OffsetDateTime.parse(value, DateTimeFormatter.ISO_OFFSET_DATE_TIME) 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /docs/FundOwnershipInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # FundOwnershipInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **kotlin.String** | Investor's name. | [optional] 8 | **share** | **kotlin.Long** | Number of shares held by the investor. | [optional] 9 | **change** | **kotlin.Long** | Number of share changed (net buy or sell) from the last period. | [optional] 10 | **filingDate** | **kotlin.String** | Filing date. | [optional] 11 | **portfolioPercent** | **kotlin.Float** | Percent of the fund's portfolio comprised of the company's share. | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/NewsSentiment.md: -------------------------------------------------------------------------------- 1 | 2 | # NewsSentiment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **buzz** | [**CompanyNewsStatistics**](CompanyNewsStatistics.md) | | [optional] 8 | **companyNewsScore** | **kotlin.Float** | News score. | [optional] 9 | **sectorAverageBullishPercent** | **kotlin.Float** | Sector average bullish percent. | [optional] 10 | **sectorAverageNewsScore** | **kotlin.Float** | Sectore average score. | [optional] 11 | **sentiment** | [**Sentiment**](Sentiment.md) | | [optional] 12 | **symbol** | **kotlin.String** | Requested symbol. | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/EarningsCallLiveResult.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningsCallLiveResult 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **event** | **kotlin.String** | Event name. | [optional] 9 | **time** | **kotlin.String** | Date time in UTC. | [optional] 10 | **year** | **kotlin.Long** | Earnings year. | [optional] 11 | **quarter** | **kotlin.Long** | Earnings quarter. | [optional] 12 | **liveAudio** | **kotlin.String** | Live audio streaming file. | [optional] 13 | **recording** | **kotlin.String** | Recoding in mp3 format. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Economic event.md: -------------------------------------------------------------------------------- 1 | 2 | # EconomicEvent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`actual`** | **kotlin.Float** | Actual release | [optional] 8 | **prev** | **kotlin.Float** | Previous release | [optional] 9 | **country** | **kotlin.String** | Country | [optional] 10 | **unit** | **kotlin.String** | Unit | [optional] 11 | **estimate** | **kotlin.Float** | Estimate | [optional] 12 | **event** | **kotlin.String** | Event | [optional] 13 | **impact** | **kotlin.String** | Impact level | [optional] 14 | **time** | **kotlin.String** | Release time | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/Errors.kt: -------------------------------------------------------------------------------- 1 | @file:Suppress("unused") 2 | package io.finnhub.api.infrastructure 3 | 4 | import java.lang.RuntimeException 5 | 6 | open class ClientException(message: kotlin.String? = null, val statusCode: Int = -1, val response: Response? = null) : RuntimeException(message) { 7 | 8 | companion object { 9 | private const val serialVersionUID: Long = 123L 10 | } 11 | } 12 | 13 | open class ServerException(message: kotlin.String? = null, val statusCode: Int = -1, val response: Response? = null) : RuntimeException(message) { 14 | 15 | companion object { 16 | private const val serialVersionUID: Long = 456L 17 | } 18 | } -------------------------------------------------------------------------------- /docs/StockTranscripts.md: -------------------------------------------------------------------------------- 1 | 2 | # StockTranscripts 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **kotlin.String** | Transcript's ID used to get the <a href=\"#transcripts\">full transcript</a>. | [optional] 8 | **title** | **kotlin.String** | Title. | [optional] 9 | **time** | **kotlin.String** | Time of the event. | [optional] 10 | **year** | **kotlin.Long** | Year of earnings result in the case of earnings call transcript. | [optional] 11 | **quarter** | **kotlin.Long** | Quarter of earnings result in the case of earnings call transcript. | [optional] 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/EbitEstimatesInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # EbitEstimatesInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **ebitAvg** | **kotlin.Float** | Average EBIT estimates including Finnhub's proprietary estimates. | [optional] 8 | **ebitHigh** | **kotlin.Float** | Highest estimate. | [optional] 9 | **ebitLow** | **kotlin.Float** | Lowest estimate. | [optional] 10 | **numberAnalysts** | **kotlin.Long** | Number of Analysts. | [optional] 11 | **period** | **kotlin.String** | Period. | [optional] 12 | **year** | **kotlin.Long** | Fiscal year. | [optional] 13 | **quarter** | **kotlin.Long** | Fiscal quarter. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/RequestConfig.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | /** 4 | * Defines a config object for a given request. 5 | * NOTE: This object doesn't include 'body' because it 6 | * allows for caching of the constructed object 7 | * for many request definitions. 8 | * NOTE: Headers is a Map because rfc2616 defines 9 | * multi-valued headers as csv-only. 10 | */ 11 | data class RequestConfig( 12 | val method: RequestMethod, 13 | val path: String, 14 | val headers: MutableMap = mutableMapOf(), 15 | val query: MutableMap> = mutableMapOf(), 16 | val body: T? = null 17 | ) -------------------------------------------------------------------------------- /docs/EarningsEstimatesInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningsEstimatesInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **epsAvg** | **kotlin.Float** | Average EPS estimates including Finnhub's proprietary estimates. | [optional] 8 | **epsHigh** | **kotlin.Float** | Highest estimate. | [optional] 9 | **epsLow** | **kotlin.Float** | Lowest estimate. | [optional] 10 | **numberAnalysts** | **kotlin.Long** | Number of Analysts. | [optional] 11 | **period** | **kotlin.String** | Period. | [optional] 12 | **year** | **kotlin.Long** | Fiscal year. | [optional] 13 | **quarter** | **kotlin.Long** | Fiscal quarter. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/EbitdaEstimatesInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # EbitdaEstimatesInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **ebitdaAvg** | **kotlin.Float** | Average EBITDA estimates including Finnhub's proprietary estimates. | [optional] 8 | **ebitdaHigh** | **kotlin.Float** | Highest estimate. | [optional] 9 | **ebitdaLow** | **kotlin.Float** | Lowest estimate. | [optional] 10 | **numberAnalysts** | **kotlin.Long** | Number of Analysts. | [optional] 11 | **period** | **kotlin.String** | Period. | [optional] 12 | **year** | **kotlin.Long** | Fiscal year. | [optional] 13 | **quarter** | **kotlin.Long** | Fiscal quarter. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/CompanyEarningsQualityScoreData.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyEarningsQualityScoreData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **period** | **kotlin.String** | Period | [optional] 8 | **growth** | **kotlin.Float** | Growth Score | [optional] 9 | **profitability** | **kotlin.Float** | Profitability Score | [optional] 10 | **cashGenerationCapitalAllocation** | **kotlin.Float** | Cash Generation and Capital Allocation | [optional] 11 | **leverage** | **kotlin.Float** | Leverage Score | [optional] 12 | **score** | **kotlin.Float** | Total Score | [optional] 13 | **letterScore** | **kotlin.String** | Letter Score | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/RevenueEstimatesInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # RevenueEstimatesInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **revenueAvg** | **kotlin.Float** | Average revenue estimates including Finnhub's proprietary estimates. | [optional] 8 | **revenueHigh** | **kotlin.Float** | Highest estimate. | [optional] 9 | **revenueLow** | **kotlin.Float** | Lowest estimate. | [optional] 10 | **numberAnalysts** | **kotlin.Long** | Number of Analysts. | [optional] 11 | **period** | **kotlin.String** | Period. | [optional] 12 | **year** | **kotlin.Long** | Fiscal year. | [optional] 13 | **quarter** | **kotlin.Long** | Fiscal quarter. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/PriceTarget.md: -------------------------------------------------------------------------------- 1 | 2 | # PriceTarget 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **targetHigh** | **kotlin.Float** | Highes analysts' target. | [optional] 9 | **targetLow** | **kotlin.Float** | Lowest analysts' target. | [optional] 10 | **targetMean** | **kotlin.Float** | Mean of all analysts' targets. | [optional] 11 | **targetMedian** | **kotlin.Float** | Median of all analysts' targets. | [optional] 12 | **numberAnalysts** | **kotlin.Long** | Number of Analysts. | [optional] 13 | **lastUpdated** | **kotlin.String** | Updated time of the data | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/DocumentResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # DocumentResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **documentId** | **kotlin.String** | AlphaResearch internal document id. | [optional] 8 | **title** | **kotlin.String** | Title for this document. | [optional] 9 | **hits** | **kotlin.String** | Number of hit in this document | [optional] 10 | **url** | **kotlin.String** | Link to render this document | [optional] 11 | **format** | **kotlin.String** | Format of this document (can be html or pdf) | [optional] 12 | **excerpts** | [**kotlin.collections.List<ExcerptResponse>**](ExcerptResponse.md) | Highlighted excerpts for this document | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/Serializer.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import com.squareup.moshi.Moshi 4 | import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory 5 | 6 | object Serializer { 7 | @JvmStatic 8 | val moshiBuilder: Moshi.Builder = Moshi.Builder() 9 | .add(OffsetDateTimeAdapter()) 10 | .add(LocalDateTimeAdapter()) 11 | .add(LocalDateAdapter()) 12 | .add(UUIDAdapter()) 13 | .add(ByteArrayAdapter()) 14 | .add(URIAdapter()) 15 | .add(KotlinJsonAdapterFactory()) 16 | .add(BigDecimalAdapter()) 17 | .add(BigIntegerAdapter()) 18 | 19 | @JvmStatic 20 | val moshi: Moshi by lazy { 21 | moshiBuilder.build() 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /docs/UpgradeDowngrade.md: -------------------------------------------------------------------------------- 1 | 2 | # UpgradeDowngrade 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **gradeTime** | **kotlin.Long** | Upgrade/downgrade time in UNIX timestamp. | [optional] 9 | **fromGrade** | **kotlin.String** | From grade. | [optional] 10 | **toGrade** | **kotlin.String** | To grade. | [optional] 11 | **company** | **kotlin.String** | Company/analyst who did the upgrade/downgrade. | [optional] 12 | **action** | **kotlin.String** | Action can take any of the following values: <code>up(upgrade), down(downgrade), main(maintains), init(initiate), reit(reiterate)</code>. | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Filing.md: -------------------------------------------------------------------------------- 1 | 2 | # Filing 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **accessNumber** | **kotlin.String** | Access number. | [optional] 8 | **symbol** | **kotlin.String** | Symbol. | [optional] 9 | **cik** | **kotlin.String** | CIK. | [optional] 10 | **form** | **kotlin.String** | Form type. | [optional] 11 | **filedDate** | **kotlin.String** | Filed date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] 12 | **acceptedDate** | **kotlin.String** | Accepted date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] 13 | **reportUrl** | **kotlin.String** | Report's URL. | [optional] 14 | **filingUrl** | **kotlin.String** | Filing's URL. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/SentimentContent.md: -------------------------------------------------------------------------------- 1 | 2 | # SentimentContent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **mention** | **kotlin.Long** | Number of mentions | [optional] 8 | **positiveMention** | **kotlin.Long** | Number of positive mentions | [optional] 9 | **negativeMention** | **kotlin.Long** | Number of negative mentions | [optional] 10 | **positiveScore** | **kotlin.Float** | Positive score. Range 0-1 | [optional] 11 | **negativeScore** | **kotlin.Float** | Negative score. Range 0-1 | [optional] 12 | **score** | **kotlin.Float** | Final score. Range: -1 to 1 with 1 is very positive and -1 is very negative | [optional] 13 | **atTime** | **kotlin.String** | Period. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/EarningResult.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningResult 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **`actual`** | **kotlin.Float** | Actual earning result. | [optional] 8 | **estimate** | **kotlin.Float** | Estimated earning. | [optional] 9 | **surprise** | **kotlin.Float** | Surprise - The difference between actual and estimate. | [optional] 10 | **surprisePercent** | **kotlin.Float** | Surprise percent. | [optional] 11 | **period** | **kotlin.String** | Reported period. | [optional] 12 | **symbol** | **kotlin.String** | Company symbol. | [optional] 13 | **year** | **kotlin.Long** | Fiscal year. | [optional] 14 | **quarter** | **kotlin.Long** | Fiscal quarter. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/RedditSentimentContent.md: -------------------------------------------------------------------------------- 1 | 2 | # RedditSentimentContent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **mention** | **kotlin.Long** | Number of mentions | [optional] 8 | **positiveMention** | **kotlin.Long** | Number of positive mentions | [optional] 9 | **negativeMention** | **kotlin.Long** | Number of negative mentions | [optional] 10 | **positiveScore** | **kotlin.Float** | Positive score. Range 0-1 | [optional] 11 | **negativeScore** | **kotlin.Float** | Negative score. Range 0-1 | [optional] 12 | **score** | **kotlin.Float** | Final score. Range: -1 to 1 with 1 is very positive and -1 is very negative | [optional] 13 | **atTime** | **kotlin.String** | Period. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/MarketStatus.md: -------------------------------------------------------------------------------- 1 | 2 | # MarketStatus 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **exchange** | **kotlin.String** | Exchange. | [optional] 8 | **timezone** | **kotlin.String** | Timezone. | [optional] 9 | **session** | **kotlin.String** | Market session. Can be 1 of the following values: <code>pre-market</code>,<code>regular</code>,<code>post-market</code> or <code>null</code> if the market is closed. | [optional] 10 | **holiday** | **kotlin.String** | Holiday event. | [optional] 11 | **isOpen** | **kotlin.Boolean** | Whether the market is open at the moment. | [optional] 12 | **t** | **kotlin.Long** | Current timestamp. | [optional] 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/TwitterSentimentContent.md: -------------------------------------------------------------------------------- 1 | 2 | # TwitterSentimentContent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **mention** | **kotlin.Long** | Number of mentions | [optional] 8 | **positiveMention** | **kotlin.Long** | Number of positive mentions | [optional] 9 | **negativeMention** | **kotlin.Long** | Number of negative mentions | [optional] 10 | **positiveScore** | **kotlin.Float** | Positive score. Range 0-1 | [optional] 11 | **negativeScore** | **kotlin.Float** | Negative score. Range 0-1 | [optional] 12 | **score** | **kotlin.Float** | Final score. Range: -1 to 1 with 1 is very positive and -1 is very negative | [optional] 13 | **atTime** | **kotlin.String** | Period. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/InternationalFiling.md: -------------------------------------------------------------------------------- 1 | 2 | # InternationalFiling 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **companyName** | **kotlin.String** | Company name. | [optional] 9 | **filedDate** | **kotlin.String** | Filed date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] 10 | **category** | **kotlin.String** | Category. | [optional] 11 | **title** | **kotlin.String** | Document's title. | [optional] 12 | **description** | **kotlin.String** | Document's description. | [optional] 13 | **url** | **kotlin.String** | Url. | [optional] 14 | **language** | **kotlin.String** | Language. | [optional] 15 | **country** | **kotlin.String** | Country. | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/AIChatResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # AIChatResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **chatId** | **kotlin.String** | Chat ID. | [optional] 8 | **content** | **kotlin.String** | Response text. | [optional] 9 | **querySummary** | **kotlin.String** | Query summary | [optional] 10 | **relatedQueries** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | Related queries. | [optional] 11 | **tickers** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | List of tickers mentioned. | [optional] 12 | **sources** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | Sources. | [optional] 13 | **widgets** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | Widgets. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/RecommendationTrend.md: -------------------------------------------------------------------------------- 1 | 2 | # RecommendationTrend 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **buy** | **kotlin.Long** | Number of recommendations that fall into the Buy category | [optional] 9 | **hold** | **kotlin.Long** | Number of recommendations that fall into the Hold category | [optional] 10 | **period** | **kotlin.String** | Updated period | [optional] 11 | **sell** | **kotlin.Long** | Number of recommendations that fall into the Sell category | [optional] 12 | **strongBuy** | **kotlin.Long** | Number of recommendations that fall into the Strong Buy category | [optional] 13 | **strongSell** | **kotlin.Long** | Number of recommendations that fall into the Strong Sell category | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/UsptoPatent.md: -------------------------------------------------------------------------------- 1 | 2 | # UsptoPatent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **applicationNumber** | **kotlin.String** | Application Number. | [optional] 8 | **companyFilingName** | **kotlin.collections.List<kotlin.String>** | Array of companies' name on the patent. | [optional] 9 | **filingDate** | **kotlin.String** | Filing date. | [optional] 10 | **description** | **kotlin.String** | Description. | [optional] 11 | **filingStatus** | **kotlin.String** | Filing status. | [optional] 12 | **patentNumber** | **kotlin.String** | Patent number. | [optional] 13 | **publicationDate** | **kotlin.String** | Publication date. | [optional] 14 | **patentType** | **kotlin.String** | Patent's type. | [optional] 15 | **url** | **kotlin.String** | URL of the original article. | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/ResponseExtensions.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import okhttp3.Response 4 | 5 | /** 6 | * Provides an extension to evaluation whether the response is a 1xx code 7 | */ 8 | val Response.isInformational : Boolean get() = this.code in 100..199 9 | 10 | /** 11 | * Provides an extension to evaluation whether the response is a 3xx code 12 | */ 13 | @Suppress("EXTENSION_SHADOWED_BY_MEMBER") 14 | val Response.isRedirect : Boolean get() = this.code in 300..399 15 | 16 | /** 17 | * Provides an extension to evaluation whether the response is a 4xx code 18 | */ 19 | val Response.isClientError : Boolean get() = this.code in 400..499 20 | 21 | /** 22 | * Provides an extension to evaluation whether the response is a 5xx (Standard) through 999 (non-standard) code 23 | */ 24 | val Response.isServerError : Boolean get() = this.code in 500..999 25 | -------------------------------------------------------------------------------- /docs/IPOEvent.md: -------------------------------------------------------------------------------- 1 | 2 | # IPOEvent 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **date** | **kotlin.String** | IPO date. | [optional] 9 | **exchange** | **kotlin.String** | Exchange. | [optional] 10 | **name** | **kotlin.String** | Company's name. | [optional] 11 | **status** | **kotlin.String** | IPO status. Can take 1 of the following values: <code>expected</code>,<code>priced</code>,<code>withdrawn</code>,<code>filed</code> | [optional] 12 | **price** | **kotlin.String** | Projected price or price range. | [optional] 13 | **numberOfShares** | **kotlin.Float** | Number of shares offered during the IPO. | [optional] 14 | **totalSharesValue** | **kotlin.Float** | Total shares value. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/ETFHoldingsData.md: -------------------------------------------------------------------------------- 1 | 2 | # ETFHoldingsData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol description | [optional] 8 | **name** | **kotlin.String** | Security name | [optional] 9 | **isin** | **kotlin.String** | ISIN. | [optional] 10 | **cusip** | **kotlin.String** | CUSIP. | [optional] 11 | **share** | **kotlin.Float** | Number of shares owned by the ETF. | [optional] 12 | **percent** | **kotlin.Float** | Portfolio's percent | [optional] 13 | **`value`** | **kotlin.Float** | Market value | [optional] 14 | **assetType** | **kotlin.String** | Asset type. Can be 1 of the following values: <code>Equity</code>, <code>ETP</code>, <code>Fund</code>, <code>Bond</code>, <code>Other</code> or empty. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/MutualFundHoldingsData.md: -------------------------------------------------------------------------------- 1 | 2 | # MutualFundHoldingsData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol description | [optional] 8 | **name** | **kotlin.String** | Security name | [optional] 9 | **isin** | **kotlin.String** | ISIN. | [optional] 10 | **cusip** | **kotlin.String** | CUSIP. | [optional] 11 | **share** | **kotlin.Float** | Number of shares. | [optional] 12 | **percent** | **kotlin.Float** | Portfolio's percent | [optional] 13 | **`value`** | **kotlin.Float** | Market value | [optional] 14 | **assetType** | **kotlin.String** | Asset type. Can be 1 of the following values: <code>Equity</code>, <code>ETP</code>, <code>Fund</code>, <code>Bond</code>, <code>Other</code> or empty. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/CompanyNews.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyNews 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **category** | **kotlin.String** | News category. | [optional] 8 | **datetime** | **kotlin.Long** | Published time in UNIX timestamp. | [optional] 9 | **headline** | **kotlin.String** | News headline. | [optional] 10 | **id** | **kotlin.Long** | News ID. This value can be used for <code>minId</code> params to get the latest news only. | [optional] 11 | **image** | **kotlin.String** | Thumbnail image URL. | [optional] 12 | **related** | **kotlin.String** | Related stocks and companies mentioned in the article. | [optional] 13 | **source** | **kotlin.String** | News source. | [optional] 14 | **summary** | **kotlin.String** | News summary. | [optional] 15 | **url** | **kotlin.String** | URL of the original article. | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CryptoProfile.md: -------------------------------------------------------------------------------- 1 | 2 | # CryptoProfile 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **longName** | **kotlin.String** | Long name. | [optional] 8 | **name** | **kotlin.String** | Name. | [optional] 9 | **description** | **kotlin.String** | Description. | [optional] 10 | **website** | **kotlin.String** | Project's website. | [optional] 11 | **marketCap** | **kotlin.Float** | Market capitalization. | [optional] 12 | **totalSupply** | **kotlin.Float** | Total supply. | [optional] 13 | **maxSupply** | **kotlin.Float** | Max supply. | [optional] 14 | **circulatingSupply** | **kotlin.Float** | Circulating supply. | [optional] 15 | **logo** | **kotlin.String** | Logo image. | [optional] 16 | **launchDate** | **kotlin.String** | Launch date. | [optional] 17 | **proofType** | **kotlin.String** | Proof type. | [optional] 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/MarketNews.md: -------------------------------------------------------------------------------- 1 | 2 | # MarketNews 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **category** | **kotlin.String** | News category. | [optional] 8 | **datetime** | **kotlin.Long** | Published time in UNIX timestamp. | [optional] 9 | **headline** | **kotlin.String** | News headline. | [optional] 10 | **id** | **kotlin.Long** | News ID. This value can be used for <code>minId</code> params to get the latest news only. | [optional] 11 | **image** | **kotlin.String** | Thumbnail image URL. | [optional] 12 | **related** | **kotlin.String** | Related stocks and companies mentioned in the article. | [optional] 13 | **source** | **kotlin.String** | News source. | [optional] 14 | **summary** | **kotlin.String** | News summary. | [optional] 15 | **url** | **kotlin.String** | URL of the original article. | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CongressionalTransaction.md: -------------------------------------------------------------------------------- 1 | 2 | # CongressionalTransaction 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **amountFrom** | **kotlin.Float** | Transaction amount from. | [optional] 8 | **amountTo** | **kotlin.Float** | Transaction amount to. | [optional] 9 | **assetName** | **kotlin.String** | Asset name. | [optional] 10 | **filingDate** | **kotlin.String** | Filing date. | [optional] 11 | **name** | **kotlin.String** | Name of the representative. | [optional] 12 | **ownerType** | **kotlin.String** | Owner Type. | [optional] 13 | **position** | **kotlin.String** | Position. | [optional] 14 | **symbol** | **kotlin.String** | Symbol. | [optional] 15 | **transactionDate** | **kotlin.String** | Transaction date. | [optional] 16 | **transactionType** | **kotlin.String** | Transaction type <code>Sale</code> or <code>Purchase</code>. | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/ForexCandles.md: -------------------------------------------------------------------------------- 1 | 2 | # ForexCandles 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **o** | **kotlin.collections.List<kotlin.Float>** | List of open prices for returned candles. | [optional] 8 | **h** | **kotlin.collections.List<kotlin.Float>** | List of high prices for returned candles. | [optional] 9 | **l** | **kotlin.collections.List<kotlin.Float>** | List of low prices for returned candles. | [optional] 10 | **c** | **kotlin.collections.List<kotlin.Float>** | List of close prices for returned candles. | [optional] 11 | **v** | **kotlin.collections.List<kotlin.Float>** | List of volume data for returned candles. | [optional] 12 | **t** | **kotlin.collections.List<kotlin.Float>** | List of timestamp for returned candles. | [optional] 13 | **s** | **kotlin.String** | Status of the response. This field can either be ok or no_data. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/StockCandles.md: -------------------------------------------------------------------------------- 1 | 2 | # StockCandles 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **o** | **kotlin.collections.List<kotlin.Float>** | List of open prices for returned candles. | [optional] 8 | **h** | **kotlin.collections.List<kotlin.Float>** | List of high prices for returned candles. | [optional] 9 | **l** | **kotlin.collections.List<kotlin.Float>** | List of low prices for returned candles. | [optional] 10 | **c** | **kotlin.collections.List<kotlin.Float>** | List of close prices for returned candles. | [optional] 11 | **v** | **kotlin.collections.List<kotlin.Float>** | List of volume data for returned candles. | [optional] 12 | **t** | **kotlin.collections.List<kotlin.Long>** | List of timestamp for returned candles. | [optional] 13 | **s** | **kotlin.String** | Status of the response. This field can either be ok or no_data. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/CryptoCandles.md: -------------------------------------------------------------------------------- 1 | 2 | # CryptoCandles 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **o** | **kotlin.collections.List<kotlin.Float>** | List of open prices for returned candles. | [optional] 8 | **h** | **kotlin.collections.List<kotlin.Float>** | List of high prices for returned candles. | [optional] 9 | **l** | **kotlin.collections.List<kotlin.Float>** | List of low prices for returned candles. | [optional] 10 | **c** | **kotlin.collections.List<kotlin.Float>** | List of close prices for returned candles. | [optional] 11 | **v** | **kotlin.collections.List<kotlin.Float>** | List of volume data for returned candles. | [optional] 12 | **t** | **kotlin.collections.List<kotlin.Long>** | List of timestamp for returned candles. | [optional] 13 | **s** | **kotlin.String** | Status of the response. This field can either be ok or no_data. | [optional] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/EarningRelease.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningRelease 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **date** | **kotlin.String** | Date. | [optional] 9 | **hour** | **kotlin.String** | Indicates whether the earnings is announced before market open(<code>bmo</code>), after market close(<code>amc</code>), or during market hour(<code>dmh</code>). | [optional] 10 | **year** | **kotlin.Long** | Earnings year. | [optional] 11 | **quarter** | **kotlin.Long** | Earnings quarter. | [optional] 12 | **epsEstimate** | **kotlin.Float** | EPS estimate. | [optional] 13 | **epsActual** | **kotlin.Float** | EPS actual. | [optional] 14 | **revenueEstimate** | **kotlin.Float** | Revenue estimate including Finnhub's proprietary estimates. | [optional] 15 | **revenueActual** | **kotlin.Float** | Revenue actual. | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/FilingSentiment.md: -------------------------------------------------------------------------------- 1 | 2 | # FilingSentiment 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **negative** | **kotlin.Float** | % of negative words in the filing. | [optional] 8 | **positive** | **kotlin.Float** | % of positive words in the filing. | [optional] 9 | **polarity** | **kotlin.Float** | % of polarity words in the filing. | [optional] 10 | **litigious** | **kotlin.Float** | % of litigious words in the filing. | [optional] 11 | **uncertainty** | **kotlin.Float** | % of uncertainty words in the filing. | [optional] 12 | **constraining** | **kotlin.Float** | % of constraining words in the filing. | [optional] 13 | **modalWeak** | **kotlin.Float** | % of modal-weak words in the filing. | [optional] 14 | **modalStrong** | **kotlin.Float** | % of modal-strong words in the filing. | [optional] 15 | **modalModerate** | **kotlin.Float** | % of modal-moderate words in the filing. | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CountryMetadata.md: -------------------------------------------------------------------------------- 1 | 2 | # CountryMetadata 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **country** | **kotlin.String** | Country name | [optional] 8 | **code2** | **kotlin.String** | Alpha 2 code | [optional] 9 | **code3** | **kotlin.String** | Alpha 3 code | [optional] 10 | **codeNo** | **kotlin.String** | UN code | [optional] 11 | **currency** | **kotlin.String** | Currency name | [optional] 12 | **currencyCode** | **kotlin.String** | Currency code | [optional] 13 | **region** | **kotlin.String** | Region | [optional] 14 | **subRegion** | **kotlin.String** | Sub-Region | [optional] 15 | **rating** | **kotlin.String** | Moody's credit risk rating. | [optional] 16 | **defaultSpread** | **kotlin.Float** | Default spread | [optional] 17 | **countryRiskPremium** | **kotlin.Float** | Country risk premium | [optional] 18 | **equityRiskPremium** | **kotlin.Float** | Equity risk premium | [optional] 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/ApiAbstractions.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | typealias MultiValueMap = MutableMap> 4 | 5 | fun collectionDelimiter(collectionFormat: String) = when(collectionFormat) { 6 | "csv" -> "," 7 | "tsv" -> "\t" 8 | "pipe" -> "|" 9 | "space" -> " " 10 | else -> "" 11 | } 12 | 13 | val defaultMultiValueConverter: (item: Any?) -> String = { item -> "$item" } 14 | 15 | fun toMultiValue(items: Array, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter) 16 | = toMultiValue(items.asIterable(), collectionFormat, map) 17 | 18 | fun toMultiValue(items: Iterable, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter): List { 19 | return when(collectionFormat) { 20 | "multi" -> items.map(map) 21 | else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map)) 22 | } 23 | } -------------------------------------------------------------------------------- /docs/EarningsCallTranscripts.md: -------------------------------------------------------------------------------- 1 | 2 | # EarningsCallTranscripts 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Company symbol. | [optional] 8 | **transcript** | [**kotlin.collections.List<TranscriptContent>**](TranscriptContent.md) | Transcript content. | [optional] 9 | **participant** | [**kotlin.collections.List<TranscriptParticipant>**](TranscriptParticipant.md) | Participant list | [optional] 10 | **audio** | **kotlin.String** | Audio link. | [optional] 11 | **id** | **kotlin.String** | Transcript's ID. | [optional] 12 | **title** | **kotlin.String** | Title. | [optional] 13 | **time** | **kotlin.String** | Time of the event. | [optional] 14 | **year** | **kotlin.Long** | Year of earnings result in the case of earnings call transcript. | [optional] 15 | **quarter** | **kotlin.Long** | Quarter of earnings result in the case of earnings call transcript. | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/Report.md: -------------------------------------------------------------------------------- 1 | 2 | # Report 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **accessNumber** | **kotlin.String** | Access number. | [optional] 8 | **symbol** | **kotlin.String** | Symbol. | [optional] 9 | **cik** | **kotlin.String** | CIK. | [optional] 10 | **year** | **kotlin.Long** | Year. | [optional] 11 | **quarter** | **kotlin.Long** | Quarter. | [optional] 12 | **form** | **kotlin.String** | Form type. | [optional] 13 | **startDate** | **kotlin.String** | Period start date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] 14 | **endDate** | **kotlin.String** | Period end date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] 15 | **filedDate** | **kotlin.String** | Filed date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] 16 | **acceptedDate** | **kotlin.String** | Accepted date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] 17 | **report** | [**kotlin.Any**](.md) | | [optional] 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/InstitutionalOwnershipInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalOwnershipInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **cik** | **kotlin.String** | Investor's company CIK. | [optional] 8 | **name** | **kotlin.String** | Firm's name. | [optional] 9 | **putCall** | **kotlin.String** | <code>put</code> or <code>call</code> for options. | [optional] 10 | **change** | **kotlin.Float** | Number of shares change. | [optional] 11 | **noVoting** | **kotlin.Float** | Number of shares with no voting rights. | [optional] 12 | **percentage** | **kotlin.Float** | Percentage of portfolio. | [optional] 13 | **share** | **kotlin.Float** | News score. | [optional] 14 | **sharedVoting** | **kotlin.Float** | Number of shares with shared voting rights. | [optional] 15 | **soleVoting** | **kotlin.Float** | Number of shares with sole voting rights. | [optional] 16 | **`value`** | **kotlin.Float** | Position value. | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/InvestmentThemePortfolio.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param symbol Symbol 31 | */ 32 | 33 | data class InvestmentThemePortfolio ( 34 | 35 | /* Symbol */ 36 | @Json(name = "symbol") 37 | val symbol: kotlin.String? = null 38 | 39 | ) : Serializable { 40 | companion object { 41 | private const val serialVersionUID: Long = 123 42 | } 43 | 44 | } 45 | 46 | -------------------------------------------------------------------------------- /docs/InstitutionalPortfolioInfo.md: -------------------------------------------------------------------------------- 1 | 2 | # InstitutionalPortfolioInfo 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **cusip** | **kotlin.String** | CUSIP. | [optional] 9 | **name** | **kotlin.String** | Position's name. | [optional] 10 | **putCall** | **kotlin.String** | <code>put</code> or <code>call</code> for options. | [optional] 11 | **change** | **kotlin.Float** | Number of shares change. | [optional] 12 | **noVoting** | **kotlin.Float** | Number of shares with no voting rights. | [optional] 13 | **percentage** | **kotlin.Float** | Percentage of portfolio. | [optional] 14 | **share** | **kotlin.Float** | Number of shares. | [optional] 15 | **sharedVoting** | **kotlin.Float** | Number of shares with shared voting rights. | [optional] 16 | **soleVoting** | **kotlin.Float** | Number of shares with sole voting rights. | [optional] 17 | **`value`** | **kotlin.Float** | Position value. | [optional] 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/PatternRecognition.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param points Array of patterns. 31 | */ 32 | 33 | data class PatternRecognition ( 34 | 35 | /* Array of patterns. */ 36 | @Json(name = "points") 37 | val points: kotlin.collections.List? = null 38 | 39 | ) : Serializable { 40 | companion object { 41 | private const val serialVersionUID: Long = 123 42 | } 43 | 44 | } 45 | 46 | -------------------------------------------------------------------------------- /docs/CompanyProfile2.md: -------------------------------------------------------------------------------- 1 | 2 | # CompanyProfile2 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **country** | **kotlin.String** | Country of company's headquarter. | [optional] 8 | **currency** | **kotlin.String** | Currency used in company filings. | [optional] 9 | **exchange** | **kotlin.String** | Listed exchange. | [optional] 10 | **name** | **kotlin.String** | Company name. | [optional] 11 | **ticker** | **kotlin.String** | Company symbol/ticker as used on the listed exchange. | [optional] 12 | **ipo** | **kotlin.String** | IPO date. | [optional] 13 | **marketCapitalization** | **kotlin.Float** | Market Capitalization. | [optional] 14 | **shareOutstanding** | **kotlin.Float** | Number of oustanding shares. | [optional] 15 | **logo** | **kotlin.String** | Logo image. | [optional] 16 | **phone** | **kotlin.String** | Company phone number. | [optional] 17 | **weburl** | **kotlin.String** | Company website. | [optional] 18 | **finnhubIndustry** | **kotlin.String** | Finnhub industry classification. | [optional] 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/KeyCustomersSuppliers.md: -------------------------------------------------------------------------------- 1 | 2 | # KeyCustomersSuppliers 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol | [optional] 8 | **name** | **kotlin.String** | Name | [optional] 9 | **country** | **kotlin.String** | Country | [optional] 10 | **industry** | **kotlin.String** | Industry | [optional] 11 | **customer** | **kotlin.Boolean** | Whether the company is a customer. | [optional] 12 | **supplier** | **kotlin.Boolean** | Whether the company is a supplier | [optional] 13 | **oneMonthCorrelation** | **kotlin.Float** | 1-month price correlation | [optional] 14 | **oneYearCorrelation** | **kotlin.Float** | 1-year price correlation | [optional] 15 | **sixMonthCorrelation** | **kotlin.Float** | 6-month price correlation | [optional] 16 | **threeMonthCorrelation** | **kotlin.Float** | 3-month price correlation | [optional] 17 | **twoWeekCorrelation** | **kotlin.Float** | 2-week price correlation | [optional] 18 | **twoYearCorrelation** | **kotlin.Float** | 2-year price correlation | [optional] 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MutualFundEet.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param isin ISIN. 31 | * @param `data` 32 | */ 33 | 34 | data class MutualFundEet ( 35 | 36 | /* ISIN. */ 37 | @Json(name = "isin") 38 | val isin: kotlin.String? = null, 39 | 40 | @Json(name = "data") 41 | val `data`: kotlin.Any? = null 42 | 43 | ) : Serializable { 44 | companion object { 45 | private const val serialVersionUID: Long = 123 46 | } 47 | 48 | } 49 | 50 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MutualFundEetPai.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param isin ISIN. 31 | * @param `data` 32 | */ 33 | 34 | data class MutualFundEetPai ( 35 | 36 | /* ISIN. */ 37 | @Json(name = "isin") 38 | val isin: kotlin.String? = null, 39 | 40 | @Json(name = "data") 41 | val `data`: kotlin.Any? = null 42 | 43 | ) : Serializable { 44 | companion object { 45 | private const val serialVersionUID: Long = 123 46 | } 47 | 48 | } 49 | 50 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SupportResistance.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param levels Array of support and resistance levels. 31 | */ 32 | 33 | data class SupportResistance ( 34 | 35 | /* Array of support and resistance levels. */ 36 | @Json(name = "levels") 37 | val levels: kotlin.collections.List? = null 38 | 39 | ) : Serializable { 40 | companion object { 41 | private const val serialVersionUID: Long = 123 42 | } 43 | 44 | } 45 | 46 | -------------------------------------------------------------------------------- /docs/Transactions.md: -------------------------------------------------------------------------------- 1 | 2 | # Transactions 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **name** | **kotlin.String** | Insider's name. | [optional] 9 | **share** | **kotlin.Long** | Number of shares held after the transaction. | [optional] 10 | **change** | **kotlin.Long** | Number of share changed from the last period. A positive value suggests a <code>BUY</code> transaction. A negative value suggests a <code>SELL</code> transaction. | [optional] 11 | **filingDate** | **kotlin.String** | Filing date. | [optional] 12 | **transactionDate** | **kotlin.String** | Transaction date. | [optional] 13 | **transactionPrice** | **kotlin.Float** | Average transaction price. | [optional] 14 | **transactionCode** | **kotlin.String** | Transaction code. A list of codes and their meanings can be found <a href=\"https://www.sec.gov/about/forms/form4data.pdf\" target=\"_blank\" rel=\"noopener\">here</a>. | [optional] 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/Forexrates.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param base Base currency. 31 | * @param quote 32 | */ 33 | 34 | data class Forexrates ( 35 | 36 | /* Base currency. */ 37 | @Json(name = "base") 38 | val base: kotlin.String? = null, 39 | 40 | @Json(name = "quote") 41 | val quote: kotlin.Any? = null 42 | 43 | ) : Serializable { 44 | companion object { 45 | private const val serialVersionUID: Long = 123 46 | } 47 | 48 | } 49 | 50 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/IPOCalendar.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.IPOEvent 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param ipoCalendar Array of IPO events. 32 | */ 33 | 34 | data class IPOCalendar ( 35 | 36 | /* Array of IPO events. */ 37 | @Json(name = "ipoCalendar") 38 | val ipoCalendar: kotlin.collections.List? = null 39 | 40 | ) : Serializable { 41 | companion object { 42 | private const val serialVersionUID: Long = 123 43 | } 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/BondYieldCurveInfo.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param d Date of the reading 31 | * @param v Value 32 | */ 33 | 34 | data class BondYieldCurveInfo ( 35 | 36 | /* Date of the reading */ 37 | @Json(name = "d") 38 | val d: kotlin.String? = null, 39 | 40 | /* Value */ 41 | @Json(name = "v") 42 | val v: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/infrastructure/ApplicationDelegates.kt: -------------------------------------------------------------------------------- 1 | package io.finnhub.api.infrastructure 2 | 3 | import kotlin.properties.ReadWriteProperty 4 | import kotlin.reflect.KProperty 5 | 6 | object ApplicationDelegates { 7 | /** 8 | * Provides a property delegate, allowing the property to be set once and only once. 9 | * 10 | * If unset (no default value), a get on the property will throw [IllegalStateException]. 11 | */ 12 | fun setOnce(defaultValue: T? = null) : ReadWriteProperty = SetOnce(defaultValue) 13 | 14 | private class SetOnce(defaultValue: T? = null) : ReadWriteProperty { 15 | private var isSet = false 16 | private var value: T? = defaultValue 17 | 18 | override fun getValue(thisRef: Any?, property: KProperty<*>): T { 19 | return value ?: throw IllegalStateException("${property.name} not initialized") 20 | } 21 | 22 | override fun setValue(thisRef: Any?, property: KProperty<*>, value: T) = synchronized(this) { 23 | if (!isSet) { 24 | this.value = value 25 | isSet = true 26 | } 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/EconomicCalendar.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.EconomicEvent 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param economicCalendar Array of economic events. 32 | */ 33 | 34 | data class EconomicCalendar ( 35 | 36 | /* Array of economic events. */ 37 | @Json(name = "economicCalendar") 38 | val economicCalendar: kotlin.collections.List? = null 39 | 40 | ) : Serializable { 41 | companion object { 42 | private const val serialVersionUID: Long = 123 43 | } 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/Sentiment.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param bearishPercent 31 | * @param bullishPercent 32 | */ 33 | 34 | data class Sentiment ( 35 | 36 | /* */ 37 | @Json(name = "bearishPercent") 38 | val bearishPercent: kotlin.Float? = null, 39 | 40 | /* */ 41 | @Json(name = "bullishPercent") 42 | val bullishPercent: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /docs/LobbyingData.md: -------------------------------------------------------------------------------- 1 | 2 | # LobbyingData 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **name** | **kotlin.String** | Company's name. | [optional] 9 | **description** | **kotlin.String** | Description. | [optional] 10 | **country** | **kotlin.String** | Country. | [optional] 11 | **year** | **kotlin.Long** | Year. | [optional] 12 | **period** | **kotlin.String** | Period. | [optional] 13 | **income** | **kotlin.Float** | Income reported by lobbying firms. | [optional] 14 | **expenses** | **kotlin.Float** | Expenses reported by the company. | [optional] 15 | **documentUrl** | **kotlin.String** | Document's URL. | [optional] 16 | **postedName** | **kotlin.String** | Posted name. | [optional] 17 | **date** | **kotlin.String** | Date. | [optional] 18 | **clientId** | **kotlin.String** | Client ID. | [optional] 19 | **registrantId** | **kotlin.String** | Registrant ID. | [optional] 20 | **senateId** | **kotlin.String** | Senate ID. | [optional] 21 | **houseregistrantId** | **kotlin.String** | House registrant ID. | [optional] 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/AIChatMessage.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param role Role system/user 31 | * @param content Content 32 | */ 33 | 34 | data class AIChatMessage ( 35 | 36 | /* Role system/user */ 37 | @Json(name = "role") 38 | val role: kotlin.String? = null, 39 | 40 | /* Content */ 41 | @Json(name = "content") 42 | val content: kotlin.String? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/EarningsCalendar.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.EarningRelease 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param earningsCalendar Array of earnings release. 32 | */ 33 | 34 | data class EarningsCalendar ( 35 | 36 | /* Array of earnings release. */ 37 | @Json(name = "earningsCalendar") 38 | val earningsCalendar: kotlin.collections.List? = null 39 | 40 | ) : Serializable { 41 | companion object { 42 | private const val serialVersionUID: Long = 123 43 | } 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/ETFsProfile.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.ETFProfileData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol. 32 | * @param profile 33 | */ 34 | 35 | data class ETFsProfile ( 36 | 37 | /* Symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | @Json(name = "profile") 42 | val profile: ETFProfileData? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/EconomicDataInfo.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param date Date of the reading 31 | * @param `value` Value 32 | */ 33 | 34 | data class EconomicDataInfo ( 35 | 36 | /* Date of the reading */ 37 | @Json(name = "date") 38 | val date: kotlin.String? = null, 39 | 40 | /* Value */ 41 | @Json(name = "value") 42 | val `value`: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/EmployeeCount.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param atDate Date of the reading 31 | * @param employee Value 32 | */ 33 | 34 | data class EmployeeCount ( 35 | 36 | /* Date of the reading */ 37 | @Json(name = "atDate") 38 | val atDate: kotlin.String? = null, 39 | 40 | /* Value */ 41 | @Json(name = "employee") 42 | val employee: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/InFilingSearchBody.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param query Search query 31 | * @param filingId Filing Id to search 32 | */ 33 | 34 | data class InFilingSearchBody ( 35 | 36 | /* Search query */ 37 | @Json(name = "query") 38 | val query: kotlin.String, 39 | 40 | /* Filing Id to search */ 41 | @Json(name = "filingId") 42 | val filingId: kotlin.String 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/TechnicalAnalysis.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.Indicator 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param count 32 | * @param signal Aggregate Signal 33 | */ 34 | 35 | data class TechnicalAnalysis ( 36 | 37 | @Json(name = "count") 38 | val count: Indicator? = null, 39 | 40 | /* Aggregate Signal */ 41 | @Json(name = "signal") 42 | val signal: kotlin.String? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /docs/FilingResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # FilingResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **filingId** | **kotlin.String** | Filing Id in Alpharesearch platform | [optional] 8 | **title** | **kotlin.String** | Filing title | [optional] 9 | **filerId** | **kotlin.String** | Id of the entity submitted the filing | [optional] 10 | **symbol** | [**kotlin.Any**](.md) | List of symbol associate with this filing | [optional] 11 | **name** | **kotlin.String** | Filer name | [optional] 12 | **acceptanceDate** | **kotlin.String** | Date the filing is submitted. | [optional] 13 | **filedDate** | **kotlin.String** | Date the filing is made available to the public | [optional] 14 | **reportDate** | **kotlin.String** | Date as which the filing is reported | [optional] 15 | **form** | **kotlin.String** | Filing Form | [optional] 16 | **amend** | **kotlin.Boolean** | Amendment | [optional] 17 | **source** | **kotlin.String** | Filing Source | [optional] 18 | **pageCount** | **kotlin.Int** | Estimate number of page when printing | [optional] 19 | **documentCount** | **kotlin.Int** | Number of document in this filing | [optional] 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/StockSymbol.md: -------------------------------------------------------------------------------- 1 | 2 | # StockSymbol 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **description** | **kotlin.String** | Symbol description | [optional] 8 | **displaySymbol** | **kotlin.String** | Display symbol name. | [optional] 9 | **symbol** | **kotlin.String** | Unique symbol used to identify this symbol used in <code>/stock/candle</code> endpoint. | [optional] 10 | **type** | **kotlin.String** | Security type. | [optional] 11 | **mic** | **kotlin.String** | Primary exchange's MIC. | [optional] 12 | **figi** | **kotlin.String** | FIGI identifier. | [optional] 13 | **shareClassFIGI** | **kotlin.String** | Global Share Class FIGI. | [optional] 14 | **currency** | **kotlin.String** | Price's currency. This might be different from the reporting currency of fundamental data. | [optional] 15 | **symbol2** | **kotlin.String** | Alternative ticker for exchanges with multiple tickers for 1 stock such as BSE. | [optional] 16 | **isin** | **kotlin.String** | ISIN. This field is only available for EU stocks and selected Asian markets. Entitlement from Finnhub is required to access this field. | [optional] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MutualFundProfile.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.MutualFundProfileData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol. 32 | * @param profile 33 | */ 34 | 35 | data class MutualFundProfile ( 36 | 37 | /* Symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | @Json(name = "profile") 42 | val profile: MutualFundProfileData? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/Dividends2.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.Dividends2Info 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol 32 | * @param `data` 33 | */ 34 | 35 | data class Dividends2 ( 36 | 37 | /* Symbol */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/ETFCountryExposureData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param country Country 31 | * @param exposure Percent of exposure. 32 | */ 33 | 34 | data class ETFCountryExposureData ( 35 | 36 | /* Country */ 37 | @Json(name = "country") 38 | val country: kotlin.String? = null, 39 | 40 | /* Percent of exposure. */ 41 | @Json(name = "exposure") 42 | val exposure: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/ETFSectorExposureData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param industry Industry 31 | * @param exposure Percent of exposure. 32 | */ 33 | 34 | data class ETFSectorExposureData ( 35 | 36 | /* Industry */ 37 | @Json(name = "industry") 38 | val industry: kotlin.String? = null, 39 | 40 | /* Percent of exposure. */ 41 | @Json(name = "exposure") 42 | val exposure: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/Dividends2Info.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param exDate Ex-Dividend date. 31 | * @param amount Amount in local currency. 32 | */ 33 | 34 | data class Dividends2Info ( 35 | 36 | /* Ex-Dividend date. */ 37 | @Json(name = "exDate") 38 | val exDate: kotlin.String? = null, 39 | 40 | /* Amount in local currency. */ 41 | @Json(name = "amount") 42 | val amount: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/EarningsCallLive.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.EarningsCallLiveResult 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param event Array of earnings call events that support live streaming. 32 | */ 33 | 34 | data class EarningsCallLive ( 35 | 36 | /* Array of earnings call events that support live streaming. */ 37 | @Json(name = "event") 38 | val event: kotlin.collections.List? = null 39 | 40 | ) : Serializable { 41 | companion object { 42 | private const val serialVersionUID: Long = 123 43 | } 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MarketCapData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param atDate Date of the reading 31 | * @param marketCapitalization Value 32 | */ 33 | 34 | data class MarketCapData ( 35 | 36 | /* Date of the reading */ 37 | @Json(name = "atDate") 38 | val atDate: kotlin.String? = null, 39 | 40 | /* Value */ 41 | @Json(name = "marketCapitalization") 42 | val marketCapitalization: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MutualFundSectorExposureData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param sector Sector 31 | * @param exposure Percent of exposure. 32 | */ 33 | 34 | data class MutualFundSectorExposureData ( 35 | 36 | /* Sector */ 37 | @Json(name = "sector") 38 | val sector: kotlin.String? = null, 39 | 40 | /* Percent of exposure. */ 41 | @Json(name = "exposure") 42 | val exposure: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/Trend.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param adx ADX reading 31 | * @param trending Whether market is trending or going sideway 32 | */ 33 | 34 | data class Trend ( 35 | 36 | /* ADX reading */ 37 | @Json(name = "adx") 38 | val adx: kotlin.Float? = null, 39 | 40 | /* Whether market is trending or going sideway */ 41 | @Json(name = "trending") 42 | val trending: kotlin.Boolean? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MutualFundCountryExposureData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param country Country 31 | * @param exposure Percent of exposure. 32 | */ 33 | 34 | data class MutualFundCountryExposureData ( 35 | 36 | /* Country */ 37 | @Json(name = "country") 38 | val country: kotlin.String? = null, 39 | 40 | /* Percent of exposure. */ 41 | @Json(name = "exposure") 42 | val exposure: kotlin.Float? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/AggregateIndicators.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.TechnicalAnalysis 24 | import io.finnhub.api.models.Trend 25 | 26 | import com.squareup.moshi.Json 27 | import java.io.Serializable 28 | 29 | /** 30 | * 31 | * 32 | * @param technicalAnalysis 33 | * @param trend 34 | */ 35 | 36 | data class AggregateIndicators ( 37 | 38 | @Json(name = "technicalAnalysis") 39 | val technicalAnalysis: TechnicalAnalysis? = null, 40 | 41 | @Json(name = "trend") 42 | val trend: Trend? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/AIChatBody.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.AIChatMessage 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param messages Messages 32 | * @param stream Stream responses 33 | */ 34 | 35 | data class AIChatBody ( 36 | 37 | /* Messages */ 38 | @Json(name = "messages") 39 | val messages: kotlin.collections.List, 40 | 41 | /* Stream responses */ 42 | @Json(name = "stream") 43 | val stream: kotlin.Boolean? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/BankBranchRes.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.BankBranchData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param `data` Array of branches. 32 | * @param symbol Symbol 33 | */ 34 | 35 | data class BankBranchRes ( 36 | 37 | /* Array of branches. */ 38 | @Json(name = "data") 39 | val `data`: kotlin.collections.List? = null, 40 | 41 | /* Symbol */ 42 | @Json(name = "symbol") 43 | val symbol: kotlin.String? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SearchFilter.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param id Filter id, use with respective field in search query body. 31 | * @param name Display name. 32 | */ 33 | 34 | data class SearchFilter ( 35 | 36 | /* Filter id, use with respective field in search query body. */ 37 | @Json(name = "id") 38 | val id: kotlin.String? = null, 39 | 40 | /* Display name. */ 41 | @Json(name = "name") 42 | val name: kotlin.String? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/UsptoPatentResult.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.UsptoPatent 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol. 32 | * @param `data` Array of patents. 33 | */ 34 | 35 | data class UsptoPatentResult ( 36 | 37 | /* Symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of patents. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/BondYieldCurve.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.BondYieldCurveInfo 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param `data` Array of data. 32 | * @param code Bond's code 33 | */ 34 | 35 | data class BondYieldCurve ( 36 | 37 | /* Array of data. */ 38 | @Json(name = "data") 39 | val `data`: kotlin.collections.List? = null, 40 | 41 | /* Bond's code */ 42 | @Json(name = "code") 43 | val code: kotlin.String? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/BreakdownItem.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param accessNumber Access number of the report from which the data is sourced. 31 | * @param breakdown 32 | */ 33 | 34 | data class BreakdownItem ( 35 | 36 | /* Access number of the report from which the data is sourced. */ 37 | @Json(name = "accessNumber") 38 | val accessNumber: kotlin.String? = null, 39 | 40 | @Json(name = "breakdown") 41 | val breakdown: kotlin.Any? = null 42 | 43 | ) : Serializable { 44 | companion object { 45 | private const val serialVersionUID: Long = 123 46 | } 47 | 48 | } 49 | 50 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SectorMetric.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.SectorMetricData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param region Region. 32 | * @param `data` Metrics for each sector. 33 | */ 34 | 35 | data class SectorMetric ( 36 | 37 | /* Region. */ 38 | @Json(name = "region") 39 | val region: kotlin.String? = null, 40 | 41 | /* Metrics for each sector. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/InstitutionalProfile.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.InstitutionalProfileInfo 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param cik CIK. 32 | * @param `data` Array of investors. 33 | */ 34 | 35 | data class InstitutionalProfile ( 36 | 37 | /* CIK. */ 38 | @Json(name = "cik") 39 | val cik: kotlin.String? = null, 40 | 41 | /* Array of investors. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/LobbyingResult.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.LobbyingData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol. 32 | * @param `data` Array of lobbying activities. 33 | */ 34 | 35 | data class LobbyingResult ( 36 | 37 | /* Symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of lobbying activities. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SocialSentiment.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.SentimentContent 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Company symbol. 32 | * @param `data` Sentiment data. 33 | */ 34 | 35 | data class SocialSentiment ( 36 | 37 | /* Company symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Sentiment data. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/StockPresentation.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.PresentationData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Company symbol. 32 | * @param res Presentation data. 33 | */ 34 | 35 | data class StockPresentation ( 36 | 37 | /* Company symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Presentation data. */ 42 | @Json(name = "res") 43 | val res: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/HistoricalCompanyESG.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.CompanyESG2 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol symbol 32 | * @param `data` Historical ESG data points. 33 | */ 34 | 35 | data class HistoricalCompanyESG ( 36 | 37 | /* symbol */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Historical ESG data points. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/HistoricalEmployeeCount.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.EmployeeCount 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param `data` Array of market data. 32 | * @param symbol Symbol 33 | */ 34 | 35 | data class HistoricalEmployeeCount ( 36 | 37 | /* Array of market data. */ 38 | @Json(name = "data") 39 | val `data`: kotlin.collections.List? = null, 40 | 41 | /* Symbol */ 42 | @Json(name = "symbol") 43 | val symbol: kotlin.String? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SymbolLookup.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.SymbolLookupInfo 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param result Array of search results. 32 | * @param count Number of results. 33 | */ 34 | 35 | data class SymbolLookup ( 36 | 37 | /* Array of search results. */ 38 | @Json(name = "result") 39 | val result: kotlin.collections.List? = null, 40 | 41 | /* Number of results. */ 42 | @Json(name = "count") 43 | val count: kotlin.Long? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | README.md 25 | .openapi-generator-ignore 26 | release.sh 27 | build.gradle 28 | gradle.properties 29 | .gitignore 30 | settings.gradle 31 | LICENSE 32 | ApiClient.kt 33 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/PriceMetrics.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param symbol Symbol of the company. 31 | * @param atDate Data date. 32 | * @param `data` 33 | */ 34 | 35 | data class PriceMetrics ( 36 | 37 | /* Symbol of the company. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Data date. */ 42 | @Json(name = "atDate") 43 | val atDate: kotlin.String? = null, 44 | 45 | @Json(name = "data") 46 | val `data`: kotlin.Any? = null 47 | 48 | ) : Serializable { 49 | companion object { 50 | private const val serialVersionUID: Long = 123 51 | } 52 | 53 | } 54 | 55 | -------------------------------------------------------------------------------- /docs/Dividends.md: -------------------------------------------------------------------------------- 1 | 2 | # Dividends 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **symbol** | **kotlin.String** | Symbol. | [optional] 8 | **date** | **kotlin.String** | Ex-Dividend date. | [optional] 9 | **amount** | **kotlin.Float** | Amount in local currency. | [optional] 10 | **adjustedAmount** | **kotlin.Float** | Adjusted dividend. | [optional] 11 | **payDate** | **kotlin.String** | Pay date. | [optional] 12 | **recordDate** | **kotlin.String** | Record date. | [optional] 13 | **declarationDate** | **kotlin.String** | Declaration date. | [optional] 14 | **currency** | **kotlin.String** | Currency. | [optional] 15 | **freq** | **kotlin.String** | <p>Dividend frequency. Can be 1 of the following values:</p><ul> <li><code>0: Annually</code></li> <li><code>1: Monthly</code></li> <li><code>2: Quarterly</code></li> <li><code>3: Semi-annually</code></li> <li><code>4: Other/Unknown</code></li> <li><code>5: Bimonthly</code></li> <li><code>6: Trimesterly</code></li> <li><code>7: Weekly</code></li> </ul> | [optional] 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SupplyChainRelationships.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.KeyCustomersSuppliers 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol symbol 32 | * @param `data` Key customers and suppliers. 33 | */ 34 | 35 | data class SupplyChainRelationships ( 36 | 37 | /* symbol */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Key customers and suppliers. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/UsaSpendingResult.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.UsaSpending 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol. 32 | * @param `data` Array of government's spending data points. 33 | */ 34 | 35 | data class UsaSpendingResult ( 36 | 37 | /* Symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of government's spending data points. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/CompanyNewsStatistics.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param articlesInLastWeek 31 | * @param buzz 32 | * @param weeklyAverage 33 | */ 34 | 35 | data class CompanyNewsStatistics ( 36 | 37 | /* */ 38 | @Json(name = "articlesInLastWeek") 39 | val articlesInLastWeek: kotlin.Long? = null, 40 | 41 | /* */ 42 | @Json(name = "buzz") 43 | val buzz: kotlin.Float? = null, 44 | 45 | /* */ 46 | @Json(name = "weeklyAverage") 47 | val weeklyAverage: kotlin.Float? = null 48 | 49 | ) : Serializable { 50 | companion object { 51 | private const val serialVersionUID: Long = 123 52 | } 53 | 54 | } 55 | 56 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/InvestmentThemes.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.InvestmentThemePortfolio 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param theme Investment theme 32 | * @param `data` Investment theme portfolio. 33 | */ 34 | 35 | data class InvestmentThemes ( 36 | 37 | /* Investment theme */ 38 | @Json(name = "theme") 39 | val theme: kotlin.String? = null, 40 | 41 | /* Investment theme portfolio. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/PressRelease.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.Development 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Company symbol. 32 | * @param majorDevelopment Array of major developments. 33 | */ 34 | 35 | data class PressRelease ( 36 | 37 | /* Company symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of major developments. */ 42 | @Json(name = "majorDevelopment") 43 | val majorDevelopment: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/InsiderSentiments.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.InsiderSentimentsData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol of the company. 32 | * @param `data` Array of sentiment data. 33 | */ 34 | 35 | data class InsiderSentiments ( 36 | 37 | /* Symbol of the company. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of sentiment data. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/InsiderTransactions.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.Transactions 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol of the company. 32 | * @param `data` Array of insider transactions. 33 | */ 34 | 35 | data class InsiderTransactions ( 36 | 37 | /* Symbol of the company. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of insider transactions. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/IsinChangeInfo.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param atDate Event's date. 31 | * @param oldIsin Old ISIN. 32 | * @param newIsin New ISIN. 33 | */ 34 | 35 | data class IsinChangeInfo ( 36 | 37 | /* Event's date. */ 38 | @Json(name = "atDate") 39 | val atDate: kotlin.String? = null, 40 | 41 | /* Old ISIN. */ 42 | @Json(name = "oldIsin") 43 | val oldIsin: kotlin.String? = null, 44 | 45 | /* New ISIN. */ 46 | @Json(name = "newIsin") 47 | val newIsin: kotlin.String? = null 48 | 49 | ) : Serializable { 50 | companion object { 51 | private const val serialVersionUID: Long = 123 52 | } 53 | 54 | } 55 | 56 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/CongressionalTrading.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.CongressionalTransaction 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol of the company. 32 | * @param `data` Array of stock trades. 33 | */ 34 | 35 | data class CongressionalTrading ( 36 | 37 | /* Symbol of the company. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of stock trades. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/EconomicData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.EconomicDataInfo 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param `data` Array of economic data for requested code. 32 | * @param code Finnhub economic code 33 | */ 34 | 35 | data class EconomicData ( 36 | 37 | /* Array of economic data for requested code. */ 38 | @Json(name = "data") 39 | val `data`: kotlin.collections.List? = null, 40 | 41 | /* Finnhub economic code */ 42 | @Json(name = "code") 43 | val code: kotlin.String? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/VisaApplicationResult.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.VisaApplication 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol. 32 | * @param `data` Array of H1b and Permanent visa applications. 33 | */ 34 | 35 | data class VisaApplicationResult ( 36 | 37 | /* Symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of H1b and Permanent visa applications. */ 42 | @Json(name = "data") 43 | val `data`: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/RevenueBreakdown2.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param symbol Symbol 31 | * @param currency currency 32 | * @param `data` Revenue breakdown data. 33 | */ 34 | 35 | data class RevenueBreakdown2 ( 36 | 37 | /* Symbol */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* currency */ 42 | @Json(name = "currency") 43 | val currency: kotlin.String? = null, 44 | 45 | /* Revenue breakdown data. */ 46 | @Json(name = "data") 47 | val `data`: kotlin.Any? = null 48 | 49 | ) : Serializable { 50 | companion object { 51 | private const val serialVersionUID: Long = 123 52 | } 53 | 54 | } 55 | 56 | -------------------------------------------------------------------------------- /docs/InFilingResponse.md: -------------------------------------------------------------------------------- 1 | 2 | # InFilingResponse 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **filingId** | **kotlin.String** | Filing Id in Alpharesearch platform | [optional] 8 | **title** | **kotlin.String** | Filing title | [optional] 9 | **filerId** | **kotlin.String** | Id of the entity submitted the filing | [optional] 10 | **symbol** | [**kotlin.Any**](.md) | List of symbol associate with this filing | [optional] 11 | **name** | **kotlin.String** | Filer name | [optional] 12 | **acceptanceDate** | **kotlin.String** | Date the filing is submitted. | [optional] 13 | **filedDate** | **kotlin.String** | Date the filing is make available to the public | [optional] 14 | **reportDate** | **kotlin.String** | Date as which the filing is reported | [optional] 15 | **form** | **kotlin.String** | Filing Form | [optional] 16 | **amend** | **kotlin.Boolean** | Amendment | [optional] 17 | **source** | **kotlin.String** | Filing Source | [optional] 18 | **pageCount** | **kotlin.Int** | Estimate number of page when printing | [optional] 19 | **documentCount** | **kotlin.Int** | Number of document in this filing | [optional] 20 | **documents** | [**kotlin.collections.List<DocumentResponse>**](DocumentResponse.md) | Document for this filing. | [optional] 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/EarningsCallTranscriptsList.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.StockTranscripts 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Company symbol. 32 | * @param transcripts Array of transcripts' metadata 33 | */ 34 | 35 | data class EarningsCallTranscriptsList ( 36 | 37 | /* Company symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of transcripts' metadata */ 42 | @Json(name = "transcripts") 43 | val transcripts: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/CompanyExecutive.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.Company 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Company symbol. 32 | * @param executive Array of company's executives and members of the Board. 33 | */ 34 | 35 | data class CompanyExecutive ( 36 | 37 | /* Company symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of company's executives and members of the Board. */ 42 | @Json(name = "executive") 43 | val executive: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SymbolChangeInfo.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param atDate Event's date. 31 | * @param oldSymbol Old symbol. 32 | * @param newSymbol New symbol. 33 | */ 34 | 35 | data class SymbolChangeInfo ( 36 | 37 | /* Event's date. */ 38 | @Json(name = "atDate") 39 | val atDate: kotlin.String? = null, 40 | 41 | /* Old symbol. */ 42 | @Json(name = "oldSymbol") 43 | val oldSymbol: kotlin.String? = null, 44 | 45 | /* New symbol. */ 46 | @Json(name = "newSymbol") 47 | val newSymbol: kotlin.String? = null 48 | 49 | ) : Serializable { 50 | companion object { 51 | private const val serialVersionUID: Long = 123 52 | } 53 | 54 | } 55 | 56 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/ETFsSectorExposure.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.ETFSectorExposureData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol ETF symbol. 32 | * @param sectorExposure Array of industries and exposure levels. 33 | */ 34 | 35 | data class ETFsSectorExposure ( 36 | 37 | /* ETF symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of industries and exposure levels. */ 42 | @Json(name = "sectorExposure") 43 | val sectorExposure: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/FinancialStatements.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param symbol Symbol of the company. 31 | * @param financials An array of map of key, value pairs containing the data for each period. 32 | */ 33 | 34 | data class FinancialStatements ( 35 | 36 | /* Symbol of the company. */ 37 | @Json(name = "symbol") 38 | val symbol: kotlin.String? = null, 39 | 40 | /* An array of map of key, value pairs containing the data for each period. */ 41 | @Json(name = "financials") 42 | val financials: kotlin.collections.List? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/Indicator.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param buy Number of buy signals 31 | * @param neutral Number of neutral signals 32 | * @param sell Number of sell signals 33 | */ 34 | 35 | data class Indicator ( 36 | 37 | /* Number of buy signals */ 38 | @Json(name = "buy") 39 | val buy: kotlin.Long? = null, 40 | 41 | /* Number of neutral signals */ 42 | @Json(name = "neutral") 43 | val neutral: kotlin.Long? = null, 44 | 45 | /* Number of sell signals */ 46 | @Json(name = "sell") 47 | val sell: kotlin.Long? = null 48 | 49 | ) : Serializable { 50 | companion object { 51 | private const val serialVersionUID: Long = 123 52 | } 53 | 54 | } 55 | 56 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/AirlinePriceIndex.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param date Date 31 | * @param priceIndex Price Index 32 | * @param dailyAvgPrice Daily average ticket price. 33 | */ 34 | 35 | data class AirlinePriceIndex ( 36 | 37 | /* Date */ 38 | @Json(name = "date") 39 | val date: kotlin.String? = null, 40 | 41 | /* Price Index */ 42 | @Json(name = "priceIndex") 43 | val priceIndex: kotlin.Float? = null, 44 | 45 | /* Daily average ticket price. */ 46 | @Json(name = "dailyAvgPrice") 47 | val dailyAvgPrice: kotlin.Float? = null 48 | 49 | ) : Serializable { 50 | companion object { 51 | private const val serialVersionUID: Long = 123 52 | } 53 | 54 | } 55 | 56 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/ETFsCountryExposure.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.ETFCountryExposureData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol ETF symbol. 32 | * @param countryExposure Array of countries and and exposure levels. 33 | */ 34 | 35 | data class ETFsCountryExposure ( 36 | 37 | /* ETF symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of countries and and exposure levels. */ 42 | @Json(name = "countryExposure") 43 | val countryExposure: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/FinancialsAsReported.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.Report 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol 32 | * @param cik CIK 33 | * @param `data` Array of filings. 34 | */ 35 | 36 | data class FinancialsAsReported ( 37 | 38 | /* Symbol */ 39 | @Json(name = "symbol") 40 | val symbol: kotlin.String? = null, 41 | 42 | /* CIK */ 43 | @Json(name = "cik") 44 | val cik: kotlin.String? = null, 45 | 46 | /* Array of filings. */ 47 | @Json(name = "data") 48 | val `data`: kotlin.collections.List? = null 49 | 50 | ) : Serializable { 51 | companion object { 52 | private const val serialVersionUID: Long = 123 53 | } 54 | 55 | } 56 | 57 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/InstitutionalOwnershipGroup.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.InstitutionalOwnershipInfo 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param reportDate Report date. 32 | * @param ownership Array of institutional investors. 33 | */ 34 | 35 | data class InstitutionalOwnershipGroup ( 36 | 37 | /* Report date. */ 38 | @Json(name = "reportDate") 39 | val reportDate: kotlin.String? = null, 40 | 41 | /* Array of institutional investors. */ 42 | @Json(name = "ownership") 43 | val ownership: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MutualFundSectorExposure.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.MutualFundSectorExposureData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Mutual symbol. 32 | * @param sectorExposure Array of sector and exposure levels. 33 | */ 34 | 35 | data class MutualFundSectorExposure ( 36 | 37 | /* Mutual symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of sector and exposure levels. */ 42 | @Json(name = "sectorExposure") 43 | val sectorExposure: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/SectorMetricData.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | 24 | import com.squareup.moshi.Json 25 | import java.io.Serializable 26 | 27 | /** 28 | * 29 | * 30 | * @param sector Sector 31 | * @param metrics Metrics data in key-value format. a and m fields are for average and median respectively. 32 | */ 33 | 34 | data class SectorMetricData ( 35 | 36 | /* Sector */ 37 | @Json(name = "sector") 38 | val sector: kotlin.String? = null, 39 | 40 | /* Metrics data in key-value format. a and m fields are for average and median respectively. */ 41 | @Json(name = "metrics") 42 | val metrics: kotlin.Any? = null 43 | 44 | ) : Serializable { 45 | companion object { 46 | private const val serialVersionUID: Long = 123 47 | } 48 | 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/Ownership.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.OwnershipInfo 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol of the company. 32 | * @param ownership Array of investors with detailed information about their holdings. 33 | */ 34 | 35 | data class Ownership ( 36 | 37 | /* Symbol of the company. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of investors with detailed information about their holdings. */ 42 | @Json(name = "ownership") 43 | val ownership: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MutualFundCountryExposure.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.MutualFundCountryExposureData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol. 32 | * @param countryExposure Array of countries and and exposure levels. 33 | */ 34 | 35 | data class MutualFundCountryExposure ( 36 | 37 | /* Symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of countries and and exposure levels. */ 42 | @Json(name = "countryExposure") 43 | val countryExposure: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/FundOwnership.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.FundOwnershipInfo 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Symbol of the company. 32 | * @param ownership Array of investors with detailed information about their holdings. 33 | */ 34 | 35 | data class FundOwnership ( 36 | 37 | /* Symbol of the company. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of investors with detailed information about their holdings. */ 42 | @Json(name = "ownership") 43 | val ownership: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/IndicesHistoricalConstituents.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.IndexHistoricalConstituent 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param symbol Index's symbol. 32 | * @param historicalConstituents Array of historical constituents. 33 | */ 34 | 35 | data class IndicesHistoricalConstituents ( 36 | 37 | /* Index's symbol. */ 38 | @Json(name = "symbol") 39 | val symbol: kotlin.String? = null, 40 | 41 | /* Array of historical constituents. */ 42 | @Json(name = "historicalConstituents") 43 | val historicalConstituents: kotlin.collections.List? = null 44 | 45 | ) : Serializable { 46 | companion object { 47 | private const val serialVersionUID: Long = 123 48 | } 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/kotlin/io/finnhub/api/models/MarketHoliday.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Finnhub API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 1.0.0 7 | * 8 | * 9 | * Please note: 10 | * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 11 | * Do not edit this file manually. 12 | */ 13 | 14 | @file:Suppress( 15 | "ArrayInDataClass", 16 | "EnumEntryName", 17 | "RemoveRedundantQualifierName", 18 | "UnusedImport" 19 | ) 20 | 21 | package io.finnhub.api.models 22 | 23 | import io.finnhub.api.models.MarketHolidayData 24 | 25 | import com.squareup.moshi.Json 26 | import java.io.Serializable 27 | 28 | /** 29 | * 30 | * 31 | * @param timezone Timezone. 32 | * @param exchange Exchange. 33 | * @param `data` Array of holidays. 34 | */ 35 | 36 | data class MarketHoliday ( 37 | 38 | /* Timezone. */ 39 | @Json(name = "timezone") 40 | val timezone: kotlin.String? = null, 41 | 42 | /* Exchange. */ 43 | @Json(name = "exchange") 44 | val exchange: kotlin.String? = null, 45 | 46 | /* Array of holidays. */ 47 | @Json(name = "data") 48 | val `data`: kotlin.collections.List? = null 49 | 50 | ) : Serializable { 51 | companion object { 52 | private const val serialVersionUID: Long = 123 53 | } 54 | 55 | } 56 | 57 | --------------------------------------------------------------------------------