finnhub_ruby 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/docs/CompanyExecutive.md +1 -1
  4. data/docs/CompanyNews.md +34 -0
  5. data/docs/CovidInfo.md +1 -1
  6. data/docs/DefaultApi.md +135 -66
  7. data/docs/Development.md +1 -1
  8. data/docs/{Dividends2Basic.md → Dividends2.md} +3 -3
  9. data/docs/Dividends2Info.md +20 -0
  10. data/docs/ETFsCountryExposure.md +1 -1
  11. data/docs/ETFsHoldings.md +1 -1
  12. data/docs/ETFsSectorExposure.md +1 -1
  13. data/docs/EarningsCalendar.md +1 -1
  14. data/docs/EarningsCallTranscripts.md +3 -3
  15. data/docs/EarningsCallTranscriptsList.md +1 -1
  16. data/docs/EarningsEstimates.md +1 -1
  17. data/docs/EconomicCalendar.md +1 -1
  18. data/docs/EconomicData.md +1 -1
  19. data/docs/EconomicDataInfo.md +20 -0
  20. data/docs/FDAComitteeMeeting.md +2 -2
  21. data/docs/Filing.md +2 -2
  22. data/docs/FinancialsAsReported.md +1 -1
  23. data/docs/FundOwnership.md +1 -1
  24. data/docs/FundOwnershipInfo.md +26 -0
  25. data/docs/HistoricalNBBO.md +1 -1
  26. data/docs/IPOCalendar.md +1 -1
  27. data/docs/IndicesHistoricalConstituents.md +1 -1
  28. data/docs/InsiderTransactions.md +1 -1
  29. data/docs/InternationalFiling.md +1 -1
  30. data/docs/{InvestmentThemesThematicInvesting.md → InvestmentThemes.md} +3 -3
  31. data/docs/{News.md → MarketNews.md} +2 -2
  32. data/docs/MutualFundCountryExposure.md +20 -0
  33. data/docs/{MutualFundsHoldings.md → MutualFundHoldings.md} +3 -3
  34. data/docs/MutualFundHoldingsData.md +30 -0
  35. data/docs/{MutualFundsProfile.md → MutualFundProfile.md} +3 -3
  36. data/docs/MutualFundProfileData.md +58 -0
  37. data/docs/MutualFundSectorExposure.md +1 -1
  38. data/docs/Ownership.md +1 -1
  39. data/docs/{Investor.md → OwnershipInfo.md} +2 -2
  40. data/docs/{MajorPressReleases.md → PressRelease.md} +3 -3
  41. data/docs/PriceTarget.md +1 -1
  42. data/docs/RedditSentimentContent.md +1 -1
  43. data/docs/Report.md +4 -4
  44. data/docs/RevenueBreakdown.md +1 -1
  45. data/docs/RevenueEstimates.md +1 -1
  46. data/docs/SimilarityIndex.md +1 -1
  47. data/docs/SocialSentiment.md +2 -2
  48. data/docs/StockSymbol.md +30 -0
  49. data/docs/StockTranscripts.md +1 -1
  50. data/docs/SupplyChainRelationships.md +1 -1
  51. data/docs/SymbolLookup.md +1 -1
  52. data/docs/{Stock.md → SymbolLookupInfo.md} +2 -2
  53. data/docs/TickData.md +1 -1
  54. data/docs/TwitterSentimentContent.md +1 -1
  55. data/finnhub_ruby-1.1.4.gem +0 -0
  56. data/lib/finnhub_ruby.rb +16 -9
  57. data/lib/finnhub_ruby/api/default_api.rb +114 -57
  58. data/lib/finnhub_ruby/models/company_executive.rb +1 -1
  59. data/lib/finnhub_ruby/models/company_news.rb +299 -0
  60. data/lib/finnhub_ruby/models/covid_info.rb +1 -1
  61. data/lib/finnhub_ruby/models/development.rb +1 -1
  62. data/lib/finnhub_ruby/models/dividends2.rb +231 -0
  63. data/lib/finnhub_ruby/models/dividends2_info.rb +229 -0
  64. data/lib/finnhub_ruby/models/earnings_calendar.rb +1 -1
  65. data/lib/finnhub_ruby/models/earnings_call_transcripts.rb +3 -3
  66. data/lib/finnhub_ruby/models/earnings_call_transcripts_list.rb +1 -1
  67. data/lib/finnhub_ruby/models/earnings_estimates.rb +1 -1
  68. data/lib/finnhub_ruby/models/economic_calendar.rb +1 -1
  69. data/lib/finnhub_ruby/models/economic_data.rb +1 -1
  70. data/lib/finnhub_ruby/models/economic_data_info.rb +229 -0
  71. data/lib/finnhub_ruby/models/etfs_country_exposure.rb +1 -1
  72. data/lib/finnhub_ruby/models/etfs_holdings.rb +1 -1
  73. data/lib/finnhub_ruby/models/etfs_sector_exposure.rb +1 -1
  74. data/lib/finnhub_ruby/models/fda_comittee_meeting.rb +2 -2
  75. data/lib/finnhub_ruby/models/filing.rb +2 -2
  76. data/lib/finnhub_ruby/models/financials_as_reported.rb +1 -1
  77. data/lib/finnhub_ruby/models/fund_ownership.rb +1 -1
  78. data/lib/finnhub_ruby/models/fund_ownership_info.rb +259 -0
  79. data/lib/finnhub_ruby/models/historical_nbbo.rb +1 -1
  80. data/lib/finnhub_ruby/models/indices_historical_constituents.rb +1 -1
  81. data/lib/finnhub_ruby/models/insider_transactions.rb +1 -1
  82. data/lib/finnhub_ruby/models/international_filing.rb +1 -1
  83. data/lib/finnhub_ruby/models/investment_themes.rb +231 -0
  84. data/lib/finnhub_ruby/models/ipo_calendar.rb +1 -1
  85. data/lib/finnhub_ruby/models/market_news.rb +299 -0
  86. data/lib/finnhub_ruby/models/mutual_fund_country_exposure.rb +231 -0
  87. data/lib/finnhub_ruby/models/mutual_fund_holdings.rb +251 -0
  88. data/lib/finnhub_ruby/models/mutual_fund_holdings_data.rb +279 -0
  89. data/lib/finnhub_ruby/models/mutual_fund_profile.rb +228 -0
  90. data/lib/finnhub_ruby/models/mutual_fund_profile_data.rb +419 -0
  91. data/lib/finnhub_ruby/models/mutual_fund_sector_exposure.rb +1 -1
  92. data/lib/finnhub_ruby/models/ownership.rb +1 -1
  93. data/lib/finnhub_ruby/models/ownership_info.rb +249 -0
  94. data/lib/finnhub_ruby/models/press_release.rb +231 -0
  95. data/lib/finnhub_ruby/models/price_target.rb +1 -1
  96. data/lib/finnhub_ruby/models/reddit_sentiment_content.rb +1 -1
  97. data/lib/finnhub_ruby/models/report.rb +4 -4
  98. data/lib/finnhub_ruby/models/revenue_breakdown.rb +1 -1
  99. data/lib/finnhub_ruby/models/revenue_estimates.rb +1 -1
  100. data/lib/finnhub_ruby/models/similarity_index.rb +1 -1
  101. data/lib/finnhub_ruby/models/social_sentiment.rb +2 -2
  102. data/lib/finnhub_ruby/models/stock_symbol.rb +279 -0
  103. data/lib/finnhub_ruby/models/stock_transcripts.rb +1 -1
  104. data/lib/finnhub_ruby/models/supply_chain_relationships.rb +1 -1
  105. data/lib/finnhub_ruby/models/symbol_lookup.rb +1 -1
  106. data/lib/finnhub_ruby/models/symbol_lookup_info.rb +249 -0
  107. data/lib/finnhub_ruby/models/tick_data.rb +1 -1
  108. data/lib/finnhub_ruby/models/twitter_sentiment_content.rb +1 -1
  109. data/lib/finnhub_ruby/version.rb +1 -1
  110. data/release.sh +7 -2
  111. data/spec/models/aggregate_indicators_spec.rb +4 -11
  112. data/spec/models/basic_financials_spec.rb +10 -11
  113. data/spec/models/company_executive_spec.rb +4 -11
  114. data/spec/models/{news_spec.rb → company_news_spec.rb} +7 -14
  115. data/spec/models/company_news_statistics_spec.rb +4 -11
  116. data/spec/models/company_profile2_spec.rb +4 -11
  117. data/spec/models/company_profile_spec.rb +4 -11
  118. data/spec/models/company_spec.rb +4 -11
  119. data/spec/models/country_metadata_spec.rb +4 -11
  120. data/spec/models/covid_info_spec.rb +4 -11
  121. data/spec/models/crypto_candles_spec.rb +4 -11
  122. data/spec/models/crypto_symbol_spec.rb +4 -11
  123. data/spec/models/development_spec.rb +10 -11
  124. data/spec/models/dividends2_info_spec.rb +40 -0
  125. data/spec/models/{dividends2_basic_spec.rb → dividends2_spec.rb} +6 -6
  126. data/spec/models/dividends_spec.rb +4 -11
  127. data/spec/models/earning_estimate_spec.rb +4 -11
  128. data/spec/models/earning_release_spec.rb +4 -11
  129. data/spec/models/earning_result_spec.rb +16 -11
  130. data/spec/models/earnings_calendar_spec.rb +4 -11
  131. data/spec/models/earnings_call_transcripts_list_spec.rb +4 -11
  132. data/spec/models/earnings_call_transcripts_spec.rb +4 -11
  133. data/spec/models/earnings_estimates_spec.rb +4 -11
  134. data/spec/models/economic_calendar_spec.rb +4 -11
  135. data/spec/models/economic_code_spec.rb +4 -11
  136. data/spec/models/economic_data_info_spec.rb +40 -0
  137. data/spec/models/economic_data_spec.rb +4 -11
  138. data/spec/models/economic_event_spec.rb +4 -11
  139. data/spec/models/estimate_spec.rb +4 -11
  140. data/spec/models/etf_country_exposure_data_spec.rb +4 -11
  141. data/spec/models/etf_holdings_data_spec.rb +28 -11
  142. data/spec/models/etf_sector_exposure_data_spec.rb +4 -11
  143. data/spec/models/filing_spec.rb +4 -11
  144. data/spec/models/financial_statements_spec.rb +4 -11
  145. data/spec/models/financials_as_reported_spec.rb +4 -11
  146. data/spec/models/forex_candles_spec.rb +4 -11
  147. data/spec/models/forex_symbol_spec.rb +4 -11
  148. data/spec/models/forexrates_spec.rb +4 -11
  149. data/spec/models/fund_ownership_info_spec.rb +58 -0
  150. data/spec/models/fund_ownership_spec.rb +4 -11
  151. data/spec/models/index_historical_constituent_spec.rb +4 -11
  152. data/spec/models/indicator_spec.rb +4 -11
  153. data/spec/models/indices_constituents_spec.rb +4 -11
  154. data/spec/models/indices_historical_constituents_spec.rb +4 -11
  155. data/spec/models/{investment_themes_thematic_investing_spec.rb → investment_themes_spec.rb} +6 -6
  156. data/spec/models/ipo_calendar_spec.rb +4 -11
  157. data/spec/models/ipo_event_spec.rb +4 -11
  158. data/spec/models/last_bid_ask_spec.rb +4 -11
  159. data/spec/models/market_news_spec.rb +82 -0
  160. data/spec/models/{mutual_funds_country_exposure_spec.rb → mutual_fund_country_exposure_spec.rb} +6 -6
  161. data/spec/models/mutual_fund_holdings_data_spec.rb +70 -0
  162. data/spec/models/{mutual_funds_holdings_spec.rb → mutual_fund_holdings_spec.rb} +6 -6
  163. data/spec/models/mutual_fund_profile_data_spec.rb +154 -0
  164. data/spec/models/{mutual_funds_profile_spec.rb → mutual_fund_profile_spec.rb} +6 -6
  165. data/spec/models/news_sentiment_spec.rb +4 -11
  166. data/spec/models/{investor_spec.rb → ownership_info_spec.rb} +7 -14
  167. data/spec/models/pattern_recognition_spec.rb +4 -11
  168. data/spec/models/{major_press_releases_spec.rb → press_release_spec.rb} +6 -6
  169. data/spec/models/price_target_spec.rb +4 -11
  170. data/spec/models/quote_spec.rb +16 -11
  171. data/spec/models/recommendation_trend_spec.rb +4 -11
  172. data/spec/models/report_spec.rb +4 -11
  173. data/spec/models/revenue_estimates_spec.rb +4 -11
  174. data/spec/models/sentiment_spec.rb +4 -11
  175. data/spec/models/similarity_index_spec.rb +4 -11
  176. data/spec/models/split_spec.rb +4 -11
  177. data/spec/models/stock_candles_spec.rb +4 -11
  178. data/spec/models/stock_symbol_spec.rb +70 -0
  179. data/spec/models/stock_transcripts_spec.rb +4 -11
  180. data/spec/models/support_resistance_spec.rb +4 -11
  181. data/spec/models/{stock_spec.rb → symbol_lookup_info_spec.rb} +7 -20
  182. data/spec/models/technical_analysis_spec.rb +4 -11
  183. data/spec/models/tick_data_spec.rb +10 -11
  184. data/spec/models/transcript_content_spec.rb +10 -11
  185. data/spec/models/transcript_participant_spec.rb +10 -11
  186. data/spec/models/trend_spec.rb +4 -11
  187. data/spec/models/upgrade_downgrade_spec.rb +4 -11
  188. metadata +67 -44
  189. data/docs/ETFsIndustryExposure.md +0 -19
  190. data/docs/InvestorsOwnership.md +0 -19
  191. data/docs/MajorDevelopments.md +0 -19
  192. data/docs/MutualFundsCountryExposure.md +0 -20
  193. data/spec/models/et_fs_country_exposure_spec.rb +0 -47
  194. data/spec/models/et_fs_holdings_spec.rb +0 -47
  195. data/spec/models/et_fs_industry_exposure_spec.rb +0 -47
  196. data/spec/models/et_fs_profile_spec.rb +0 -47
  197. data/spec/models/investors_ownership_spec.rb +0 -47
  198. data/spec/models/major_developments_spec.rb +0 -47
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **symbol** | **String** | Mutual symbol. | [optional] |
8
- | **sector_exposure** | **Array<Object>** | Array of sector and exposure levels. | [optional] |
8
+ | **sector_exposure** | [**Array<MutualFundSectorExposureData>**](MutualFundSectorExposureData.md) | Array of sector and exposure levels. | [optional] |
9
9
 
10
10
  ## Example
11
11
 
data/docs/Ownership.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **symbol** | **String** | Symbol of the company. | [optional] |
8
- | **ownership** | **Array<Object>** | Array of investors with detailed information about their holdings. | [optional] |
8
+ | **ownership** | [**Array<OwnershipInfo>**](OwnershipInfo.md) | Array of investors with detailed information about their holdings. | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -1,4 +1,4 @@
1
- # FinnhubRuby::Investor
1
+ # FinnhubRuby::OwnershipInfo
2
2
 
3
3
  ## Properties
4
4
 
@@ -14,7 +14,7 @@
14
14
  ```ruby
15
15
  require 'finnhub_ruby'
16
16
 
17
- instance = FinnhubRuby::Investor.new(
17
+ instance = FinnhubRuby::OwnershipInfo.new(
18
18
  name: null,
19
19
  share: null,
20
20
  change: null,
@@ -1,18 +1,18 @@
1
- # FinnhubRuby::MajorPressReleases
1
+ # FinnhubRuby::PressRelease
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **symbol** | **String** | Company symbol. | [optional] |
8
- | **major_development** | **Array<Object>** | Array of major developments. | [optional] |
8
+ | **major_development** | [**Array<Development>**](Development.md) | Array of major developments. | [optional] |
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```ruby
13
13
  require 'finnhub_ruby'
14
14
 
15
- instance = FinnhubRuby::MajorPressReleases.new(
15
+ instance = FinnhubRuby::PressRelease.new(
16
16
  symbol: null,
17
17
  major_development: null
18
18
  )
data/docs/PriceTarget.md CHANGED
@@ -9,7 +9,7 @@
9
9
  | **target_low** | **Float** | Lowest analysts' target. | [optional] |
10
10
  | **target_mean** | **Float** | Mean of all analysts' targets. | [optional] |
11
11
  | **target_median** | **Float** | Median of all analysts' targets. | [optional] |
12
- | **last_updated** | **Time** | Updated time of the data | [optional] |
12
+ | **last_updated** | **String** | Updated time of the data | [optional] |
13
13
 
14
14
  ## Example
15
15
 
@@ -10,7 +10,7 @@
10
10
  | **positive_score** | **Float** | Positive score. Range 0-1 | [optional] |
11
11
  | **negative_score** | **Float** | Negative score. Range 0-1 | [optional] |
12
12
  | **score** | **Float** | Final score. Range: -1 to 1 with 1 is very positive and -1 is very negative | [optional] |
13
- | **at_time** | **Time** | Period. | [optional] |
13
+ | **at_time** | **String** | Period. | [optional] |
14
14
 
15
15
  ## Example
16
16
 
data/docs/Report.md CHANGED
@@ -10,10 +10,10 @@
10
10
  | **year** | **Integer** | Year. | [optional] |
11
11
  | **quarter** | **Integer** | Quarter. | [optional] |
12
12
  | **form** | **String** | Form type. | [optional] |
13
- | **start_date** | **Time** | Period start date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
14
- | **end_date** | **Time** | Period end date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
15
- | **filed_date** | **Time** | Filed date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
16
- | **accepted_date** | **Time** | Accepted date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
13
+ | **start_date** | **String** | Period start date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
14
+ | **end_date** | **String** | Period end date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
15
+ | **filed_date** | **String** | Filed date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
16
+ | **accepted_date** | **String** | Accepted date <code>%Y-%m-%d %H:%M:%S</code>. | [optional] |
17
17
  | **report** | **Object** | | [optional] |
18
18
 
19
19
  ## Example
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **symbol** | **String** | Symbol | [optional] |
8
8
  | **cik** | **String** | CIK | [optional] |
9
- | **data** | **Array<Object>** | Array of revenue breakdown over multiple periods. | [optional] |
9
+ | **data** | [**Array<BreakdownItem>**](BreakdownItem.md) | Array of revenue breakdown over multiple periods. | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **data** | **Array<Object>** | List of estimates | [optional] |
7
+ | **data** | [**Array<Estimate>**](Estimate.md) | List of estimates | [optional] |
8
8
  | **freq** | **String** | Frequency: annual or quarterly. | [optional] |
9
9
  | **symbol** | **String** | Company symbol. | [optional] |
10
10
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **symbol** | **String** | Symbol. | [optional] |
8
8
  | **cik** | **String** | CIK. | [optional] |
9
- | **similarity** | **Array<Object>** | Array of filings with its cosine similarity compared to the same report of the previous year. | [optional] |
9
+ | **similarity** | [**Array<Filing>**](Filing.md) | Array of filings with its cosine similarity compared to the same report of the previous year. | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -5,8 +5,8 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **symbol** | **String** | Company symbol. | [optional] |
8
- | **reddit** | **Array<Object>** | Reddit sentiment. | [optional] |
9
- | **twitter** | **Array<Object>** | Twitter sentiment. | [optional] |
8
+ | **reddit** | [**Array<RedditSentimentContent>**](RedditSentimentContent.md) | Reddit sentiment. | [optional] |
9
+ | **twitter** | [**Array<TwitterSentimentContent>**](TwitterSentimentContent.md) | Twitter sentiment. | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -0,0 +1,30 @@
1
+ # FinnhubRuby::StockSymbol
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | Symbol description | [optional] |
8
+ | **display_symbol** | **String** | Display symbol name. | [optional] |
9
+ | **symbol** | **String** | Unique symbol used to identify this symbol used in <code>/stock/candle</code> endpoint. | [optional] |
10
+ | **type** | **String** | Security type. | [optional] |
11
+ | **mic** | **String** | Primary exchange's MIC. | [optional] |
12
+ | **figi** | **String** | FIGI identifier. | [optional] |
13
+ | **currency** | **String** | Price's currency. This might be different from the reporting currency of fundamental data. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'finnhub_ruby'
19
+
20
+ instance = FinnhubRuby::StockSymbol.new(
21
+ description: null,
22
+ display_symbol: null,
23
+ symbol: null,
24
+ type: null,
25
+ mic: null,
26
+ figi: null,
27
+ currency: null
28
+ )
29
+ ```
30
+
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | Transcript's ID used to get the <a href=\"#transcripts\">full transcript</a>. | [optional] |
8
8
  | **title** | **String** | Title. | [optional] |
9
- | **time** | **Time** | Time of the event. | [optional] |
9
+ | **time** | **String** | Time of the event. | [optional] |
10
10
  | **year** | **Integer** | Year of earnings result in the case of earnings call transcript. | [optional] |
11
11
  | **quarter** | **Integer** | Quarter of earnings result in the case of earnings call transcript. | [optional] |
12
12
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **symbol** | **String** | symbol | [optional] |
8
- | **data** | **Array<Object>** | Key customers and suppliers. | [optional] |
8
+ | **data** | [**Array<KeyCustomersSuppliers>**](KeyCustomersSuppliers.md) | Key customers and suppliers. | [optional] |
9
9
 
10
10
  ## Example
11
11
 
data/docs/SymbolLookup.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **result** | **Array<Object>** | Array of search results. | [optional] |
7
+ | **result** | [**Array<SymbolLookupInfo>**](SymbolLookupInfo.md) | Array of search results. | [optional] |
8
8
  | **count** | **Integer** | Number of results. | [optional] |
9
9
 
10
10
  ## Example
@@ -1,4 +1,4 @@
1
- # FinnhubRuby::Stock
1
+ # FinnhubRuby::SymbolLookupInfo
2
2
 
3
3
  ## Properties
4
4
 
@@ -14,7 +14,7 @@
14
14
  ```ruby
15
15
  require 'finnhub_ruby'
16
16
 
17
- instance = FinnhubRuby::Stock.new(
17
+ instance = FinnhubRuby::SymbolLookupInfo.new(
18
18
  description: null,
19
19
  display_symbol: null,
20
20
  symbol: null,
data/docs/TickData.md CHANGED
@@ -12,7 +12,7 @@
12
12
  | **p** | **Array<Float>** | List of price data. | [optional] |
13
13
  | **t** | **Array<Integer>** | List of timestamp in UNIX ms. | [optional] |
14
14
  | **x** | **Array<String>** | List of venues/exchanges. A list of exchange codes can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1Tj53M1svmr-hfEtbk6_NpVR1yAyGLMaH6ByYU6CG0ZY/edit?usp=sharing\",>here</a> | [optional] |
15
- | **c** | **Array<Array<NULL_SCHEMA_ERR>>** | List of trade conditions. A comprehensive list of trade conditions code can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1PUxiSWPHSODbaTaoL2Vef6DgU-yFtlRGZf19oBb9Hp0/edit?usp=sharing\">here</a> | [optional] |
15
+ | **c** | **Array<Array<String>>** | List of trade conditions. A comprehensive list of trade conditions code can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1PUxiSWPHSODbaTaoL2Vef6DgU-yFtlRGZf19oBb9Hp0/edit?usp=sharing\">here</a> | [optional] |
16
16
 
17
17
  ## Example
18
18
 
@@ -10,7 +10,7 @@
10
10
  | **positive_score** | **Float** | Positive score. Range 0-1 | [optional] |
11
11
  | **negative_score** | **Float** | Negative score. Range 0-1 | [optional] |
12
12
  | **score** | **Float** | Final score. Range: -1 to 1 with 1 is very positive and -1 is very negative | [optional] |
13
- | **at_time** | **Time** | Period. | [optional] |
13
+ | **at_time** | **String** | Period. | [optional] |
14
14
 
15
15
  ## Example
16
16
 
Binary file
data/lib/finnhub_ruby.rb CHANGED
@@ -22,6 +22,7 @@ require 'finnhub_ruby/models/basic_financials'
22
22
  require 'finnhub_ruby/models/breakdown_item'
23
23
  require 'finnhub_ruby/models/company'
24
24
  require 'finnhub_ruby/models/company_executive'
25
+ require 'finnhub_ruby/models/company_news'
25
26
  require 'finnhub_ruby/models/company_news_statistics'
26
27
  require 'finnhub_ruby/models/company_profile'
27
28
  require 'finnhub_ruby/models/company_profile2'
@@ -31,7 +32,8 @@ require 'finnhub_ruby/models/crypto_candles'
31
32
  require 'finnhub_ruby/models/crypto_symbol'
32
33
  require 'finnhub_ruby/models/development'
33
34
  require 'finnhub_ruby/models/dividends'
34
- require 'finnhub_ruby/models/dividends2_basic'
35
+ require 'finnhub_ruby/models/dividends2'
36
+ require 'finnhub_ruby/models/dividends2_info'
35
37
  require 'finnhub_ruby/models/etf_country_exposure_data'
36
38
  require 'finnhub_ruby/models/etf_holdings_data'
37
39
  require 'finnhub_ruby/models/etf_profile_data'
@@ -50,6 +52,7 @@ require 'finnhub_ruby/models/earnings_estimates'
50
52
  require 'finnhub_ruby/models/economic_calendar'
51
53
  require 'finnhub_ruby/models/economic_code'
52
54
  require 'finnhub_ruby/models/economic_data'
55
+ require 'finnhub_ruby/models/economic_data_info'
53
56
  require 'finnhub_ruby/models/economic_event'
54
57
  require 'finnhub_ruby/models/estimate'
55
58
  require 'finnhub_ruby/models/fda_comittee_meeting'
@@ -61,6 +64,7 @@ require 'finnhub_ruby/models/forex_candles'
61
64
  require 'finnhub_ruby/models/forex_symbol'
62
65
  require 'finnhub_ruby/models/forexrates'
63
66
  require 'finnhub_ruby/models/fund_ownership'
67
+ require 'finnhub_ruby/models/fund_ownership_info'
64
68
  require 'finnhub_ruby/models/historical_nbbo'
65
69
  require 'finnhub_ruby/models/ipo_calendar'
66
70
  require 'finnhub_ruby/models/ipo_event'
@@ -71,21 +75,23 @@ require 'finnhub_ruby/models/indices_historical_constituents'
71
75
  require 'finnhub_ruby/models/insider_transactions'
72
76
  require 'finnhub_ruby/models/international_filing'
73
77
  require 'finnhub_ruby/models/investment_theme_portfolio'
74
- require 'finnhub_ruby/models/investment_themes_thematic_investing'
75
- require 'finnhub_ruby/models/investor'
78
+ require 'finnhub_ruby/models/investment_themes'
76
79
  require 'finnhub_ruby/models/key_customers_suppliers'
77
80
  require 'finnhub_ruby/models/last_bid_ask'
78
- require 'finnhub_ruby/models/major_press_releases'
81
+ require 'finnhub_ruby/models/market_news'
82
+ require 'finnhub_ruby/models/mutual_fund_country_exposure'
79
83
  require 'finnhub_ruby/models/mutual_fund_country_exposure_data'
84
+ require 'finnhub_ruby/models/mutual_fund_holdings'
85
+ require 'finnhub_ruby/models/mutual_fund_holdings_data'
86
+ require 'finnhub_ruby/models/mutual_fund_profile'
87
+ require 'finnhub_ruby/models/mutual_fund_profile_data'
80
88
  require 'finnhub_ruby/models/mutual_fund_sector_exposure'
81
89
  require 'finnhub_ruby/models/mutual_fund_sector_exposure_data'
82
- require 'finnhub_ruby/models/mutual_funds_country_exposure'
83
- require 'finnhub_ruby/models/mutual_funds_holdings'
84
- require 'finnhub_ruby/models/mutual_funds_profile'
85
- require 'finnhub_ruby/models/news'
86
90
  require 'finnhub_ruby/models/news_sentiment'
87
91
  require 'finnhub_ruby/models/ownership'
92
+ require 'finnhub_ruby/models/ownership_info'
88
93
  require 'finnhub_ruby/models/pattern_recognition'
94
+ require 'finnhub_ruby/models/press_release'
89
95
  require 'finnhub_ruby/models/price_target'
90
96
  require 'finnhub_ruby/models/quote'
91
97
  require 'finnhub_ruby/models/recommendation_trend'
@@ -98,12 +104,13 @@ require 'finnhub_ruby/models/sentiment'
98
104
  require 'finnhub_ruby/models/similarity_index'
99
105
  require 'finnhub_ruby/models/social_sentiment'
100
106
  require 'finnhub_ruby/models/split'
101
- require 'finnhub_ruby/models/stock'
102
107
  require 'finnhub_ruby/models/stock_candles'
108
+ require 'finnhub_ruby/models/stock_symbol'
103
109
  require 'finnhub_ruby/models/stock_transcripts'
104
110
  require 'finnhub_ruby/models/supply_chain_relationships'
105
111
  require 'finnhub_ruby/models/support_resistance'
106
112
  require 'finnhub_ruby/models/symbol_lookup'
113
+ require 'finnhub_ruby/models/symbol_lookup_info'
107
114
  require 'finnhub_ruby/models/technical_analysis'
108
115
  require 'finnhub_ruby/models/tick_data'
109
116
  require 'finnhub_ruby/models/transactions'
@@ -365,7 +365,7 @@ module FinnhubRuby
365
365
  # @param from [Date] From date <code>YYYY-MM-DD</code>.
366
366
  # @param to [Date] To date <code>YYYY-MM-DD</code>.
367
367
  # @param [Hash] opts the optional parameters
368
- # @return [Array<News>]
368
+ # @return [Array<CompanyNews>]
369
369
  def company_news(symbol, from, to, opts = {})
370
370
  data, _status_code, _headers = company_news_with_http_info(symbol, from, to, opts)
371
371
  data
@@ -377,7 +377,7 @@ module FinnhubRuby
377
377
  # @param from [Date] From date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
378
378
  # @param to [Date] To date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
379
379
  # @param [Hash] opts the optional parameters
380
- # @return [Array<(Array<News>, Integer, Hash)>] Array<News> data, response status code and response headers
380
+ # @return [Array<(Array<CompanyNews>, Integer, Hash)>] Array<CompanyNews> data, response status code and response headers
381
381
  def company_news_with_http_info(symbol, from, to, opts = {})
382
382
  if @api_client.config.debugging
383
383
  @api_client.config.logger.debug 'Calling API: DefaultApi.company_news ...'
@@ -415,7 +415,7 @@ module FinnhubRuby
415
415
  post_body = opts[:debug_body]
416
416
 
417
417
  # return_type
418
- return_type = opts[:debug_return_type] || 'Array<News>'
418
+ return_type = opts[:debug_return_type] || 'Array<CompanyNews>'
419
419
 
420
420
  # auth_names
421
421
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -1089,35 +1089,28 @@ module FinnhubRuby
1089
1089
  return data, status_code, headers
1090
1090
  end
1091
1091
 
1092
- # Earnings Call Transcripts
1093
- # <p>Get earnings call transcripts, audio and participants' list. This endpoint is only available for US, UK, and Candian companies. <p>15+ years of data is available with 220,000+ audio which add up to 7TB in size.</p>
1094
- # @param id [String] Transcript&#39;s id obtained with &lt;a href&#x3D;\&quot;#transcripts-list\&quot;&gt;Transcripts List endpoint&lt;/a&gt;.
1092
+ # Economic Calendar
1093
+ # <p>Get recent and upcoming economic releases.</p><p>Historical events and surprises are available for Enterprise clients.</p>
1095
1094
  # @param [Hash] opts the optional parameters
1096
- # @return [EarningsCallTranscripts]
1097
- def earnings_call_transcripts_api(id, opts = {})
1098
- data, _status_code, _headers = earnings_call_transcripts_api_with_http_info(id, opts)
1095
+ # @return [EconomicCalendar]
1096
+ def economic_calendar(opts = {})
1097
+ data, _status_code, _headers = economic_calendar_with_http_info(opts)
1099
1098
  data
1100
1099
  end
1101
1100
 
1102
- # Earnings Call Transcripts
1103
- # &lt;p&gt;Get earnings call transcripts, audio and participants&#39; list. This endpoint is only available for US, UK, and Candian companies. &lt;p&gt;15+ years of data is available with 220,000+ audio which add up to 7TB in size.&lt;/p&gt;
1104
- # @param id [String] Transcript&#39;s id obtained with &lt;a href&#x3D;\&quot;#transcripts-list\&quot;&gt;Transcripts List endpoint&lt;/a&gt;.
1101
+ # Economic Calendar
1102
+ # &lt;p&gt;Get recent and upcoming economic releases.&lt;/p&gt;&lt;p&gt;Historical events and surprises are available for Enterprise clients.&lt;/p&gt;
1105
1103
  # @param [Hash] opts the optional parameters
1106
- # @return [Array<(EarningsCallTranscripts, Integer, Hash)>] EarningsCallTranscripts data, response status code and response headers
1107
- def earnings_call_transcripts_api_with_http_info(id, opts = {})
1104
+ # @return [Array<(EconomicCalendar, Integer, Hash)>] EconomicCalendar data, response status code and response headers
1105
+ def economic_calendar_with_http_info(opts = {})
1108
1106
  if @api_client.config.debugging
1109
- @api_client.config.logger.debug 'Calling API: DefaultApi.earnings_call_transcripts_api ...'
1110
- end
1111
- # verify the required parameter 'id' is set
1112
- if @api_client.config.client_side_validation && id.nil?
1113
- fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.earnings_call_transcripts_api"
1107
+ @api_client.config.logger.debug 'Calling API: DefaultApi.economic_calendar ...'
1114
1108
  end
1115
1109
  # resource path
1116
- local_var_path = '/stock/transcripts'
1110
+ local_var_path = '/calendar/economic'
1117
1111
 
1118
1112
  # query parameters
1119
1113
  query_params = opts[:query_params] || {}
1120
- query_params[:'id'] = id
1121
1114
 
1122
1115
  # header parameters
1123
1116
  header_params = opts[:header_params] || {}
@@ -1131,13 +1124,13 @@ module FinnhubRuby
1131
1124
  post_body = opts[:debug_body]
1132
1125
 
1133
1126
  # return_type
1134
- return_type = opts[:debug_return_type] || 'EarningsCallTranscripts'
1127
+ return_type = opts[:debug_return_type] || 'EconomicCalendar'
1135
1128
 
1136
1129
  # auth_names
1137
1130
  auth_names = opts[:debug_auth_names] || ['api_key']
1138
1131
 
1139
1132
  new_options = opts.merge(
1140
- :operation => :"DefaultApi.earnings_call_transcripts_api",
1133
+ :operation => :"DefaultApi.economic_calendar",
1141
1134
  :header_params => header_params,
1142
1135
  :query_params => query_params,
1143
1136
  :form_params => form_params,
@@ -1148,7 +1141,7 @@ module FinnhubRuby
1148
1141
 
1149
1142
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1150
1143
  if @api_client.config.debugging
1151
- @api_client.config.logger.debug "API called: DefaultApi#earnings_call_transcripts_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1144
+ @api_client.config.logger.debug "API called: DefaultApi#economic_calendar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1152
1145
  end
1153
1146
  return data, status_code, headers
1154
1147
  end
@@ -2472,9 +2465,9 @@ module FinnhubRuby
2472
2465
  # <p>Thematic investing involves creating a portfolio (or portion of a portfolio) by gathering together a collection of companies involved in certain areas that you predict will generate above-market returns over the long term. Themes can be based on a concept such as ageing populations or a sub-sector such as robotics, and drones. Thematic investing focuses on predicted long-term trends rather than specific companies or sectors, enabling investors to access structural, one-off shifts that can change an entire industry.</p><p>This endpoint will help you get portfolios of different investment themes that are changing our life and are the way of the future.</p><p>A full list of themes supported can be found <a target=\"_blank\" href=\"https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp=sharing\">here</a>. The theme coverage and portfolios are updated bi-weekly by our analysts. Our approach excludes penny, super-small cap and illiquid stocks.</p>
2473
2466
  # @param theme [String] Investment theme. A full list of themes supported can be found &lt;a target&#x3D;\&quot;_blank\&quot; href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp&#x3D;sharing\&quot;&gt;here&lt;/a&gt;.
2474
2467
  # @param [Hash] opts the optional parameters
2475
- # @return [InvestmentThemesThematicInvesting]
2476
- def investment_themes_thematic_investing(theme, opts = {})
2477
- data, _status_code, _headers = investment_themes_thematic_investing_with_http_info(theme, opts)
2468
+ # @return [InvestmentThemes]
2469
+ def investment_themes(theme, opts = {})
2470
+ data, _status_code, _headers = investment_themes_with_http_info(theme, opts)
2478
2471
  data
2479
2472
  end
2480
2473
 
@@ -2482,14 +2475,14 @@ module FinnhubRuby
2482
2475
  # &lt;p&gt;Thematic investing involves creating a portfolio (or portion of a portfolio) by gathering together a collection of companies involved in certain areas that you predict will generate above-market returns over the long term. Themes can be based on a concept such as ageing populations or a sub-sector such as robotics, and drones. Thematic investing focuses on predicted long-term trends rather than specific companies or sectors, enabling investors to access structural, one-off shifts that can change an entire industry.&lt;/p&gt;&lt;p&gt;This endpoint will help you get portfolios of different investment themes that are changing our life and are the way of the future.&lt;/p&gt;&lt;p&gt;A full list of themes supported can be found &lt;a target&#x3D;\&quot;_blank\&quot; href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp&#x3D;sharing\&quot;&gt;here&lt;/a&gt;. The theme coverage and portfolios are updated bi-weekly by our analysts. Our approach excludes penny, super-small cap and illiquid stocks.&lt;/p&gt;
2483
2476
  # @param theme [String] Investment theme. A full list of themes supported can be found &lt;a target&#x3D;\&quot;_blank\&quot; href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1ULj9xDh4iPoQj279M084adZ2_S852ttRthKKJ7madYc/edit?usp&#x3D;sharing\&quot;&gt;here&lt;/a&gt;.
2484
2477
  # @param [Hash] opts the optional parameters
2485
- # @return [Array<(InvestmentThemesThematicInvesting, Integer, Hash)>] InvestmentThemesThematicInvesting data, response status code and response headers
2486
- def investment_themes_thematic_investing_with_http_info(theme, opts = {})
2478
+ # @return [Array<(InvestmentThemes, Integer, Hash)>] InvestmentThemes data, response status code and response headers
2479
+ def investment_themes_with_http_info(theme, opts = {})
2487
2480
  if @api_client.config.debugging
2488
- @api_client.config.logger.debug 'Calling API: DefaultApi.investment_themes_thematic_investing ...'
2481
+ @api_client.config.logger.debug 'Calling API: DefaultApi.investment_themes ...'
2489
2482
  end
2490
2483
  # verify the required parameter 'theme' is set
2491
2484
  if @api_client.config.client_side_validation && theme.nil?
2492
- fail ArgumentError, "Missing the required parameter 'theme' when calling DefaultApi.investment_themes_thematic_investing"
2485
+ fail ArgumentError, "Missing the required parameter 'theme' when calling DefaultApi.investment_themes"
2493
2486
  end
2494
2487
  # resource path
2495
2488
  local_var_path = '/stock/investment-theme'
@@ -2510,13 +2503,13 @@ module FinnhubRuby
2510
2503
  post_body = opts[:debug_body]
2511
2504
 
2512
2505
  # return_type
2513
- return_type = opts[:debug_return_type] || 'InvestmentThemesThematicInvesting'
2506
+ return_type = opts[:debug_return_type] || 'InvestmentThemes'
2514
2507
 
2515
2508
  # auth_names
2516
2509
  auth_names = opts[:debug_auth_names] || ['api_key']
2517
2510
 
2518
2511
  new_options = opts.merge(
2519
- :operation => :"DefaultApi.investment_themes_thematic_investing",
2512
+ :operation => :"DefaultApi.investment_themes",
2520
2513
  :header_params => header_params,
2521
2514
  :query_params => query_params,
2522
2515
  :form_params => form_params,
@@ -2527,7 +2520,7 @@ module FinnhubRuby
2527
2520
 
2528
2521
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2529
2522
  if @api_client.config.debugging
2530
- @api_client.config.logger.debug "API called: DefaultApi#investment_themes_thematic_investing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2523
+ @api_client.config.logger.debug "API called: DefaultApi#investment_themes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2531
2524
  end
2532
2525
  return data, status_code, headers
2533
2526
  end
@@ -2608,7 +2601,7 @@ module FinnhubRuby
2608
2601
  # @param category [String] This parameter can be 1 of the following values &lt;code&gt;general, forex, crypto, merger&lt;/code&gt;.
2609
2602
  # @param [Hash] opts the optional parameters
2610
2603
  # @option opts [String] :min_id Use this field to get only news after this ID. Default to 0
2611
- # @return [Array<News>]
2604
+ # @return [Array<MarketNews>]
2612
2605
  def market_news(category, opts = {})
2613
2606
  data, _status_code, _headers = market_news_with_http_info(category, opts)
2614
2607
  data
@@ -2619,7 +2612,7 @@ module FinnhubRuby
2619
2612
  # @param category [String] This parameter can be 1 of the following values &lt;code&gt;general, forex, crypto, merger&lt;/code&gt;.
2620
2613
  # @param [Hash] opts the optional parameters
2621
2614
  # @option opts [String] :min_id Use this field to get only news after this ID. Default to 0
2622
- # @return [Array<(Array<News>, Integer, Hash)>] Array<News> data, response status code and response headers
2615
+ # @return [Array<(Array<MarketNews>, Integer, Hash)>] Array<MarketNews> data, response status code and response headers
2623
2616
  def market_news_with_http_info(category, opts = {})
2624
2617
  if @api_client.config.debugging
2625
2618
  @api_client.config.logger.debug 'Calling API: DefaultApi.market_news ...'
@@ -2648,7 +2641,7 @@ module FinnhubRuby
2648
2641
  post_body = opts[:debug_body]
2649
2642
 
2650
2643
  # return_type
2651
- return_type = opts[:debug_return_type] || 'Array<News>'
2644
+ return_type = opts[:debug_return_type] || 'Array<MarketNews>'
2652
2645
 
2653
2646
  # auth_names
2654
2647
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2674,7 +2667,7 @@ module FinnhubRuby
2674
2667
  # Get Mutual Funds country exposure data.
2675
2668
  # @param symbol [String] Symbol.
2676
2669
  # @param [Hash] opts the optional parameters
2677
- # @return [MutualFundsCountryExposure]
2670
+ # @return [MutualFundCountryExposure]
2678
2671
  def mutual_fund_country_exposure(symbol, opts = {})
2679
2672
  data, _status_code, _headers = mutual_fund_country_exposure_with_http_info(symbol, opts)
2680
2673
  data
@@ -2684,7 +2677,7 @@ module FinnhubRuby
2684
2677
  # Get Mutual Funds country exposure data.
2685
2678
  # @param symbol [String] Symbol.
2686
2679
  # @param [Hash] opts the optional parameters
2687
- # @return [Array<(MutualFundsCountryExposure, Integer, Hash)>] MutualFundsCountryExposure data, response status code and response headers
2680
+ # @return [Array<(MutualFundCountryExposure, Integer, Hash)>] MutualFundCountryExposure data, response status code and response headers
2688
2681
  def mutual_fund_country_exposure_with_http_info(symbol, opts = {})
2689
2682
  if @api_client.config.debugging
2690
2683
  @api_client.config.logger.debug 'Calling API: DefaultApi.mutual_fund_country_exposure ...'
@@ -2712,7 +2705,7 @@ module FinnhubRuby
2712
2705
  post_body = opts[:debug_body]
2713
2706
 
2714
2707
  # return_type
2715
- return_type = opts[:debug_return_type] || 'MutualFundsCountryExposure'
2708
+ return_type = opts[:debug_return_type] || 'MutualFundCountryExposure'
2716
2709
 
2717
2710
  # auth_names
2718
2711
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2740,7 +2733,7 @@ module FinnhubRuby
2740
2733
  # @option opts [String] :symbol Fund&#39;s symbol.
2741
2734
  # @option opts [String] :isin Fund&#39;s isin.
2742
2735
  # @option opts [Integer] :skip Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip&#x3D;0 or not set.
2743
- # @return [MutualFundsHoldings]
2736
+ # @return [MutualFundHoldings]
2744
2737
  def mutual_fund_holdings(opts = {})
2745
2738
  data, _status_code, _headers = mutual_fund_holdings_with_http_info(opts)
2746
2739
  data
@@ -2752,7 +2745,7 @@ module FinnhubRuby
2752
2745
  # @option opts [String] :symbol Fund&#39;s symbol.
2753
2746
  # @option opts [String] :isin Fund&#39;s isin.
2754
2747
  # @option opts [Integer] :skip Skip the first n results. You can use this parameter to query historical constituents data. The latest result is returned if skip&#x3D;0 or not set.
2755
- # @return [Array<(MutualFundsHoldings, Integer, Hash)>] MutualFundsHoldings data, response status code and response headers
2748
+ # @return [Array<(MutualFundHoldings, Integer, Hash)>] MutualFundHoldings data, response status code and response headers
2756
2749
  def mutual_fund_holdings_with_http_info(opts = {})
2757
2750
  if @api_client.config.debugging
2758
2751
  @api_client.config.logger.debug 'Calling API: DefaultApi.mutual_fund_holdings ...'
@@ -2778,7 +2771,7 @@ module FinnhubRuby
2778
2771
  post_body = opts[:debug_body]
2779
2772
 
2780
2773
  # return_type
2781
- return_type = opts[:debug_return_type] || 'MutualFundsHoldings'
2774
+ return_type = opts[:debug_return_type] || 'MutualFundHoldings'
2782
2775
 
2783
2776
  # auth_names
2784
2777
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2805,7 +2798,7 @@ module FinnhubRuby
2805
2798
  # @param [Hash] opts the optional parameters
2806
2799
  # @option opts [String] :symbol Fund&#39;s symbol.
2807
2800
  # @option opts [String] :isin Fund&#39;s isin.
2808
- # @return [MutualFundsProfile]
2801
+ # @return [MutualFundProfile]
2809
2802
  def mutual_fund_profile(opts = {})
2810
2803
  data, _status_code, _headers = mutual_fund_profile_with_http_info(opts)
2811
2804
  data
@@ -2816,7 +2809,7 @@ module FinnhubRuby
2816
2809
  # @param [Hash] opts the optional parameters
2817
2810
  # @option opts [String] :symbol Fund&#39;s symbol.
2818
2811
  # @option opts [String] :isin Fund&#39;s isin.
2819
- # @return [Array<(MutualFundsProfile, Integer, Hash)>] MutualFundsProfile data, response status code and response headers
2812
+ # @return [Array<(MutualFundProfile, Integer, Hash)>] MutualFundProfile data, response status code and response headers
2820
2813
  def mutual_fund_profile_with_http_info(opts = {})
2821
2814
  if @api_client.config.debugging
2822
2815
  @api_client.config.logger.debug 'Calling API: DefaultApi.mutual_fund_profile ...'
@@ -2841,7 +2834,7 @@ module FinnhubRuby
2841
2834
  post_body = opts[:debug_body]
2842
2835
 
2843
2836
  # return_type
2844
- return_type = opts[:debug_return_type] || 'MutualFundsProfile'
2837
+ return_type = opts[:debug_return_type] || 'MutualFundProfile'
2845
2838
 
2846
2839
  # auth_names
2847
2840
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2863,7 +2856,7 @@ module FinnhubRuby
2863
2856
  return data, status_code, headers
2864
2857
  end
2865
2858
 
2866
- # Mutual-fund Sector Exposure
2859
+ # Mutual Funds Sector Exposure
2867
2860
  # Get Mutual Funds sector exposure data.
2868
2861
  # @param symbol [String] Mutual Fund symbol.
2869
2862
  # @param [Hash] opts the optional parameters
@@ -2873,7 +2866,7 @@ module FinnhubRuby
2873
2866
  data
2874
2867
  end
2875
2868
 
2876
- # Mutual-fund Sector Exposure
2869
+ # Mutual Funds Sector Exposure
2877
2870
  # Get Mutual Funds sector exposure data.
2878
2871
  # @param symbol [String] Mutual Fund symbol.
2879
2872
  # @param [Hash] opts the optional parameters
@@ -3135,7 +3128,7 @@ module FinnhubRuby
3135
3128
  # @param [Hash] opts the optional parameters
3136
3129
  # @option opts [Date] :from From time: 2020-01-01.
3137
3130
  # @option opts [Date] :to To time: 2020-01-05.
3138
- # @return [MajorPressReleases]
3131
+ # @return [PressRelease]
3139
3132
  def press_releases(symbol, opts = {})
3140
3133
  data, _status_code, _headers = press_releases_with_http_info(symbol, opts)
3141
3134
  data
@@ -3147,7 +3140,7 @@ module FinnhubRuby
3147
3140
  # @param [Hash] opts the optional parameters
3148
3141
  # @option opts [Date] :from From time: 2020-01-01.
3149
3142
  # @option opts [Date] :to To time: 2020-01-05.
3150
- # @return [Array<(MajorPressReleases, Integer, Hash)>] MajorPressReleases data, response status code and response headers
3143
+ # @return [Array<(PressRelease, Integer, Hash)>] PressRelease data, response status code and response headers
3151
3144
  def press_releases_with_http_info(symbol, opts = {})
3152
3145
  if @api_client.config.debugging
3153
3146
  @api_client.config.logger.debug 'Calling API: DefaultApi.press_releases ...'
@@ -3177,7 +3170,7 @@ module FinnhubRuby
3177
3170
  post_body = opts[:debug_body]
3178
3171
 
3179
3172
  # return_type
3180
- return_type = opts[:debug_return_type] || 'MajorPressReleases'
3173
+ return_type = opts[:debug_return_type] || 'PressRelease'
3181
3174
 
3182
3175
  # auth_names
3183
3176
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -3594,7 +3587,7 @@ module FinnhubRuby
3594
3587
  # Get global dividends data.
3595
3588
  # @param symbol [String] Symbol.
3596
3589
  # @param [Hash] opts the optional parameters
3597
- # @return [Dividends2Basic]
3590
+ # @return [Dividends2]
3598
3591
  def stock_basic_dividends(symbol, opts = {})
3599
3592
  data, _status_code, _headers = stock_basic_dividends_with_http_info(symbol, opts)
3600
3593
  data
@@ -3604,7 +3597,7 @@ module FinnhubRuby
3604
3597
  # Get global dividends data.
3605
3598
  # @param symbol [String] Symbol.
3606
3599
  # @param [Hash] opts the optional parameters
3607
- # @return [Array<(Dividends2Basic, Integer, Hash)>] Dividends2Basic data, response status code and response headers
3600
+ # @return [Array<(Dividends2, Integer, Hash)>] Dividends2 data, response status code and response headers
3608
3601
  def stock_basic_dividends_with_http_info(symbol, opts = {})
3609
3602
  if @api_client.config.debugging
3610
3603
  @api_client.config.logger.debug 'Calling API: DefaultApi.stock_basic_dividends ...'
@@ -3632,7 +3625,7 @@ module FinnhubRuby
3632
3625
  post_body = opts[:debug_body]
3633
3626
 
3634
3627
  # return_type
3635
- return_type = opts[:debug_return_type] || 'Dividends2Basic'
3628
+ return_type = opts[:debug_return_type] || 'Dividends2'
3636
3629
 
3637
3630
  # auth_names
3638
3631
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -4054,7 +4047,7 @@ module FinnhubRuby
4054
4047
  # @option opts [String] :mic Filter by MIC code.
4055
4048
  # @option opts [String] :security_type Filter by security type used by OpenFigi standard.
4056
4049
  # @option opts [String] :currency Filter by currency.
4057
- # @return [Array<Stock>]
4050
+ # @return [Array<StockSymbol>]
4058
4051
  def stock_symbols(exchange, opts = {})
4059
4052
  data, _status_code, _headers = stock_symbols_with_http_info(exchange, opts)
4060
4053
  data
@@ -4067,7 +4060,7 @@ module FinnhubRuby
4067
4060
  # @option opts [String] :mic Filter by MIC code.
4068
4061
  # @option opts [String] :security_type Filter by security type used by OpenFigi standard.
4069
4062
  # @option opts [String] :currency Filter by currency.
4070
- # @return [Array<(Array<Stock>, Integer, Hash)>] Array<Stock> data, response status code and response headers
4063
+ # @return [Array<(Array<StockSymbol>, Integer, Hash)>] Array<StockSymbol> data, response status code and response headers
4071
4064
  def stock_symbols_with_http_info(exchange, opts = {})
4072
4065
  if @api_client.config.debugging
4073
4066
  @api_client.config.logger.debug 'Calling API: DefaultApi.stock_symbols ...'
@@ -4098,7 +4091,7 @@ module FinnhubRuby
4098
4091
  post_body = opts[:debug_body]
4099
4092
 
4100
4093
  # return_type
4101
- return_type = opts[:debug_return_type] || 'Array<Stock>'
4094
+ return_type = opts[:debug_return_type] || 'Array<StockSymbol>'
4102
4095
 
4103
4096
  # auth_names
4104
4097
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -4500,6 +4493,70 @@ module FinnhubRuby
4500
4493
  return data, status_code, headers
4501
4494
  end
4502
4495
 
4496
+ # Earnings Call Transcripts
4497
+ # <p>Get earnings call transcripts, audio and participants' list. This endpoint is only available for US, UK, and Candian companies. <p>15+ years of data is available with 220,000+ audio which add up to 7TB in size.</p>
4498
+ # @param id [String] Transcript&#39;s id obtained with &lt;a href&#x3D;\&quot;#transcripts-list\&quot;&gt;Transcripts List endpoint&lt;/a&gt;.
4499
+ # @param [Hash] opts the optional parameters
4500
+ # @return [EarningsCallTranscripts]
4501
+ def transcripts(id, opts = {})
4502
+ data, _status_code, _headers = transcripts_with_http_info(id, opts)
4503
+ data
4504
+ end
4505
+
4506
+ # Earnings Call Transcripts
4507
+ # &lt;p&gt;Get earnings call transcripts, audio and participants&#39; list. This endpoint is only available for US, UK, and Candian companies. &lt;p&gt;15+ years of data is available with 220,000+ audio which add up to 7TB in size.&lt;/p&gt;
4508
+ # @param id [String] Transcript&#39;s id obtained with &lt;a href&#x3D;\&quot;#transcripts-list\&quot;&gt;Transcripts List endpoint&lt;/a&gt;.
4509
+ # @param [Hash] opts the optional parameters
4510
+ # @return [Array<(EarningsCallTranscripts, Integer, Hash)>] EarningsCallTranscripts data, response status code and response headers
4511
+ def transcripts_with_http_info(id, opts = {})
4512
+ if @api_client.config.debugging
4513
+ @api_client.config.logger.debug 'Calling API: DefaultApi.transcripts ...'
4514
+ end
4515
+ # verify the required parameter 'id' is set
4516
+ if @api_client.config.client_side_validation && id.nil?
4517
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.transcripts"
4518
+ end
4519
+ # resource path
4520
+ local_var_path = '/stock/transcripts'
4521
+
4522
+ # query parameters
4523
+ query_params = opts[:query_params] || {}
4524
+ query_params[:'id'] = id
4525
+
4526
+ # header parameters
4527
+ header_params = opts[:header_params] || {}
4528
+ # HTTP header 'Accept' (if needed)
4529
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4530
+
4531
+ # form parameters
4532
+ form_params = opts[:form_params] || {}
4533
+
4534
+ # http body (model)
4535
+ post_body = opts[:debug_body]
4536
+
4537
+ # return_type
4538
+ return_type = opts[:debug_return_type] || 'EarningsCallTranscripts'
4539
+
4540
+ # auth_names
4541
+ auth_names = opts[:debug_auth_names] || ['api_key']
4542
+
4543
+ new_options = opts.merge(
4544
+ :operation => :"DefaultApi.transcripts",
4545
+ :header_params => header_params,
4546
+ :query_params => query_params,
4547
+ :form_params => form_params,
4548
+ :body => post_body,
4549
+ :auth_names => auth_names,
4550
+ :return_type => return_type
4551
+ )
4552
+
4553
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4554
+ if @api_client.config.debugging
4555
+ @api_client.config.logger.debug "API called: DefaultApi#transcripts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4556
+ end
4557
+ return data, status_code, headers
4558
+ end
4559
+
4503
4560
  # Earnings Call Transcripts List
4504
4561
  # List earnings call transcripts' metadata. This endpoint is available for US, UK and Canadian companies.
4505
4562
  # @param symbol [String] Company symbol: AAPL. Leave empty to list the latest transcripts