finnhub_ruby 1.1.4 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -12
  3. data/docs/CompanyESG.md +28 -0
  4. data/docs/CompanyExecutive.md +1 -1
  5. data/docs/CompanyNews.md +34 -0
  6. data/docs/CompanyProfile.md +1 -1
  7. data/docs/CovidInfo.md +1 -1
  8. data/docs/DefaultApi.md +214 -77
  9. data/docs/Development.md +1 -1
  10. data/docs/{Dividends2Basic.md → Dividends2.md} +3 -3
  11. data/docs/Dividends2Info.md +20 -0
  12. data/docs/ETFsCountryExposure.md +1 -1
  13. data/docs/ETFsHoldings.md +1 -1
  14. data/docs/ETFsSectorExposure.md +1 -1
  15. data/docs/EarningRelease.md +2 -2
  16. data/docs/EarningsCalendar.md +1 -1
  17. data/docs/EarningsCallTranscripts.md +3 -3
  18. data/docs/EarningsCallTranscriptsList.md +1 -1
  19. data/docs/EarningsEstimates.md +1 -1
  20. data/docs/EarningsEstimatesInfo.md +26 -0
  21. data/docs/EconomicCalendar.md +1 -1
  22. data/docs/EconomicData.md +1 -1
  23. data/docs/EconomicDataInfo.md +20 -0
  24. data/docs/FDAComitteeMeeting.md +2 -2
  25. data/docs/Filing.md +2 -2
  26. data/docs/FinancialsAsReported.md +1 -1
  27. data/docs/FundOwnership.md +1 -1
  28. data/docs/FundOwnershipInfo.md +26 -0
  29. data/docs/HistoricalNBBO.md +1 -1
  30. data/docs/IPOCalendar.md +1 -1
  31. data/docs/IPOEvent.md +2 -2
  32. data/docs/IndicesHistoricalConstituents.md +1 -1
  33. data/docs/InsiderTransactions.md +1 -1
  34. data/docs/InternationalFiling.md +1 -1
  35. data/docs/{InvestmentThemesThematicInvesting.md → InvestmentThemes.md} +3 -3
  36. data/docs/KeyCustomersSuppliers.md +13 -1
  37. data/docs/{News.md → MarketNews.md} +2 -2
  38. data/docs/MutualFundCountryExposure.md +20 -0
  39. data/docs/{MutualFundsHoldings.md → MutualFundHoldings.md} +3 -3
  40. data/docs/MutualFundHoldingsData.md +30 -0
  41. data/docs/{MutualFundsProfile.md → MutualFundProfile.md} +3 -3
  42. data/docs/MutualFundProfileData.md +58 -0
  43. data/docs/MutualFundSectorExposure.md +1 -1
  44. data/docs/Ownership.md +1 -1
  45. data/docs/{Investor.md → OwnershipInfo.md} +2 -2
  46. data/docs/{MajorPressReleases.md → PressRelease.md} +3 -3
  47. data/docs/PriceTarget.md +1 -1
  48. data/docs/RedditSentimentContent.md +1 -1
  49. data/docs/Report.md +4 -4
  50. data/docs/RevenueBreakdown.md +1 -1
  51. data/docs/RevenueEstimates.md +1 -1
  52. data/docs/RevenueEstimatesInfo.md +26 -0
  53. data/docs/Sentiment.md +2 -2
  54. data/docs/SimilarityIndex.md +1 -1
  55. data/docs/SimilarityIndexInfo.md +40 -0
  56. data/docs/SocialSentiment.md +2 -2
  57. data/docs/StockSymbol.md +30 -0
  58. data/docs/StockTranscripts.md +1 -1
  59. data/docs/SupplyChainRelationships.md +1 -1
  60. data/docs/SymbolLookup.md +1 -1
  61. data/docs/{Stock.md → SymbolLookupInfo.md} +2 -2
  62. data/docs/TickData.md +1 -1
  63. data/docs/Transactions.md +1 -1
  64. data/docs/TwitterSentimentContent.md +1 -1
  65. data/finnhub_ruby-1.1.7.gem +0 -0
  66. data/finnhub_ruby.gemspec +1 -1
  67. data/lib/finnhub_ruby.rb +21 -12
  68. data/lib/finnhub_ruby/api/default_api.rb +183 -65
  69. data/lib/finnhub_ruby/api_client.rb +1 -1
  70. data/lib/finnhub_ruby/api_error.rb +1 -1
  71. data/lib/finnhub_ruby/configuration.rb +1 -1
  72. data/lib/finnhub_ruby/models/aggregate_indicators.rb +1 -1
  73. data/lib/finnhub_ruby/models/basic_financials.rb +1 -1
  74. data/lib/finnhub_ruby/models/breakdown_item.rb +1 -1
  75. data/lib/finnhub_ruby/models/company.rb +1 -1
  76. data/lib/finnhub_ruby/models/company_esg.rb +268 -0
  77. data/lib/finnhub_ruby/models/company_executive.rb +2 -2
  78. data/lib/finnhub_ruby/models/company_news.rb +299 -0
  79. data/lib/finnhub_ruby/models/company_news_statistics.rb +1 -1
  80. data/lib/finnhub_ruby/models/company_profile.rb +2 -2
  81. data/lib/finnhub_ruby/models/company_profile2.rb +1 -1
  82. data/lib/finnhub_ruby/models/country_metadata.rb +1 -1
  83. data/lib/finnhub_ruby/models/covid_info.rb +2 -2
  84. data/lib/finnhub_ruby/models/crypto_candles.rb +1 -1
  85. data/lib/finnhub_ruby/models/crypto_symbol.rb +1 -1
  86. data/lib/finnhub_ruby/models/development.rb +2 -2
  87. data/lib/finnhub_ruby/models/dividends.rb +1 -1
  88. data/lib/finnhub_ruby/models/dividends2.rb +231 -0
  89. data/lib/finnhub_ruby/models/dividends2_info.rb +229 -0
  90. data/lib/finnhub_ruby/models/earning_release.rb +3 -3
  91. data/lib/finnhub_ruby/models/earning_result.rb +1 -1
  92. data/lib/finnhub_ruby/models/earnings_calendar.rb +2 -2
  93. data/lib/finnhub_ruby/models/earnings_call_transcripts.rb +4 -4
  94. data/lib/finnhub_ruby/models/earnings_call_transcripts_list.rb +2 -2
  95. data/lib/finnhub_ruby/models/earnings_estimates.rb +2 -2
  96. data/lib/finnhub_ruby/models/earnings_estimates_info.rb +259 -0
  97. data/lib/finnhub_ruby/models/economic_calendar.rb +2 -2
  98. data/lib/finnhub_ruby/models/economic_code.rb +1 -1
  99. data/lib/finnhub_ruby/models/economic_data.rb +2 -2
  100. data/lib/finnhub_ruby/models/economic_data_info.rb +229 -0
  101. data/lib/finnhub_ruby/models/economic_event.rb +1 -1
  102. data/lib/finnhub_ruby/models/etf_country_exposure_data.rb +1 -1
  103. data/lib/finnhub_ruby/models/etf_holdings_data.rb +1 -1
  104. data/lib/finnhub_ruby/models/etf_profile_data.rb +1 -1
  105. data/lib/finnhub_ruby/models/etf_sector_exposure_data.rb +1 -1
  106. data/lib/finnhub_ruby/models/etfs_country_exposure.rb +2 -2
  107. data/lib/finnhub_ruby/models/etfs_holdings.rb +2 -2
  108. data/lib/finnhub_ruby/models/etfs_profile.rb +1 -1
  109. data/lib/finnhub_ruby/models/etfs_sector_exposure.rb +2 -2
  110. data/lib/finnhub_ruby/models/fda_comittee_meeting.rb +3 -3
  111. data/lib/finnhub_ruby/models/filing.rb +3 -3
  112. data/lib/finnhub_ruby/models/filing_sentiment.rb +1 -1
  113. data/lib/finnhub_ruby/models/financial_statements.rb +1 -1
  114. data/lib/finnhub_ruby/models/financials_as_reported.rb +2 -2
  115. data/lib/finnhub_ruby/models/forex_candles.rb +1 -1
  116. data/lib/finnhub_ruby/models/forex_symbol.rb +1 -1
  117. data/lib/finnhub_ruby/models/forexrates.rb +1 -1
  118. data/lib/finnhub_ruby/models/fund_ownership.rb +2 -2
  119. data/lib/finnhub_ruby/models/fund_ownership_info.rb +259 -0
  120. data/lib/finnhub_ruby/models/historical_nbbo.rb +2 -2
  121. data/lib/finnhub_ruby/models/index_historical_constituent.rb +1 -1
  122. data/lib/finnhub_ruby/models/indicator.rb +1 -1
  123. data/lib/finnhub_ruby/models/indices_constituents.rb +1 -1
  124. data/lib/finnhub_ruby/models/indices_historical_constituents.rb +2 -2
  125. data/lib/finnhub_ruby/models/insider_transactions.rb +2 -2
  126. data/lib/finnhub_ruby/models/international_filing.rb +2 -2
  127. data/lib/finnhub_ruby/models/investment_theme_portfolio.rb +1 -1
  128. data/lib/finnhub_ruby/models/investment_themes.rb +231 -0
  129. data/lib/finnhub_ruby/models/ipo_calendar.rb +2 -2
  130. data/lib/finnhub_ruby/models/ipo_event.rb +3 -3
  131. data/lib/finnhub_ruby/models/key_customers_suppliers.rb +65 -5
  132. data/lib/finnhub_ruby/models/last_bid_ask.rb +1 -1
  133. data/lib/finnhub_ruby/models/market_news.rb +299 -0
  134. data/lib/finnhub_ruby/models/mutual_fund_country_exposure.rb +231 -0
  135. data/lib/finnhub_ruby/models/mutual_fund_country_exposure_data.rb +1 -1
  136. data/lib/finnhub_ruby/models/mutual_fund_holdings.rb +251 -0
  137. data/lib/finnhub_ruby/models/mutual_fund_holdings_data.rb +279 -0
  138. data/lib/finnhub_ruby/models/mutual_fund_profile.rb +228 -0
  139. data/lib/finnhub_ruby/models/mutual_fund_profile_data.rb +419 -0
  140. data/lib/finnhub_ruby/models/mutual_fund_sector_exposure.rb +2 -2
  141. data/lib/finnhub_ruby/models/mutual_fund_sector_exposure_data.rb +1 -1
  142. data/lib/finnhub_ruby/models/news_sentiment.rb +1 -1
  143. data/lib/finnhub_ruby/models/ownership.rb +2 -2
  144. data/lib/finnhub_ruby/models/ownership_info.rb +249 -0
  145. data/lib/finnhub_ruby/models/pattern_recognition.rb +1 -1
  146. data/lib/finnhub_ruby/models/press_release.rb +231 -0
  147. data/lib/finnhub_ruby/models/price_target.rb +2 -2
  148. data/lib/finnhub_ruby/models/quote.rb +1 -1
  149. data/lib/finnhub_ruby/models/recommendation_trend.rb +1 -1
  150. data/lib/finnhub_ruby/models/reddit_sentiment_content.rb +2 -2
  151. data/lib/finnhub_ruby/models/report.rb +5 -5
  152. data/lib/finnhub_ruby/models/revenue_breakdown.rb +2 -2
  153. data/lib/finnhub_ruby/models/revenue_estimates.rb +2 -2
  154. data/lib/finnhub_ruby/models/revenue_estimates_info.rb +259 -0
  155. data/lib/finnhub_ruby/models/sec_sentiment_analysis.rb +1 -1
  156. data/lib/finnhub_ruby/models/sentiment.rb +3 -3
  157. data/lib/finnhub_ruby/models/similarity_index.rb +2 -2
  158. data/lib/finnhub_ruby/models/similarity_index_info.rb +329 -0
  159. data/lib/finnhub_ruby/models/social_sentiment.rb +3 -3
  160. data/lib/finnhub_ruby/models/split.rb +1 -1
  161. data/lib/finnhub_ruby/models/stock_candles.rb +1 -1
  162. data/lib/finnhub_ruby/models/stock_symbol.rb +279 -0
  163. data/lib/finnhub_ruby/models/stock_transcripts.rb +2 -2
  164. data/lib/finnhub_ruby/models/supply_chain_relationships.rb +2 -2
  165. data/lib/finnhub_ruby/models/support_resistance.rb +1 -1
  166. data/lib/finnhub_ruby/models/symbol_lookup.rb +2 -2
  167. data/lib/finnhub_ruby/models/symbol_lookup_info.rb +249 -0
  168. data/lib/finnhub_ruby/models/technical_analysis.rb +1 -1
  169. data/lib/finnhub_ruby/models/tick_data.rb +2 -2
  170. data/lib/finnhub_ruby/models/transactions.rb +2 -2
  171. data/lib/finnhub_ruby/models/transcript_content.rb +1 -1
  172. data/lib/finnhub_ruby/models/transcript_participant.rb +1 -1
  173. data/lib/finnhub_ruby/models/trend.rb +1 -1
  174. data/lib/finnhub_ruby/models/twitter_sentiment_content.rb +2 -2
  175. data/lib/finnhub_ruby/models/upgrade_downgrade.rb +1 -1
  176. data/lib/finnhub_ruby/version.rb +2 -2
  177. data/release.sh +12 -2
  178. data/spec/api_client_spec.rb +1 -1
  179. data/spec/configuration_spec.rb +1 -1
  180. data/spec/models/aggregate_indicators_spec.rb +4 -11
  181. data/spec/models/basic_financials_spec.rb +10 -11
  182. data/spec/models/company_esg_spec.rb +64 -0
  183. data/spec/models/company_executive_spec.rb +4 -11
  184. data/spec/models/{news_spec.rb → company_news_spec.rb} +7 -14
  185. data/spec/models/company_news_statistics_spec.rb +4 -11
  186. data/spec/models/company_profile2_spec.rb +4 -11
  187. data/spec/models/company_profile_spec.rb +4 -11
  188. data/spec/models/company_spec.rb +4 -11
  189. data/spec/models/country_metadata_spec.rb +4 -11
  190. data/spec/models/covid_info_spec.rb +4 -11
  191. data/spec/models/crypto_candles_spec.rb +4 -11
  192. data/spec/models/crypto_symbol_spec.rb +4 -11
  193. data/spec/models/development_spec.rb +10 -11
  194. data/spec/models/dividends2_info_spec.rb +40 -0
  195. data/spec/models/{dividends2_basic_spec.rb → dividends2_spec.rb} +6 -6
  196. data/spec/models/dividends_spec.rb +4 -11
  197. data/spec/models/earning_estimate_spec.rb +4 -11
  198. data/spec/models/earning_release_spec.rb +4 -11
  199. data/spec/models/earning_result_spec.rb +16 -11
  200. data/spec/models/earnings_calendar_spec.rb +4 -11
  201. data/spec/models/earnings_call_transcripts_list_spec.rb +4 -11
  202. data/spec/models/earnings_call_transcripts_spec.rb +4 -11
  203. data/spec/models/earnings_estimates_info_spec.rb +58 -0
  204. data/spec/models/earnings_estimates_spec.rb +4 -11
  205. data/spec/models/economic_calendar_spec.rb +4 -11
  206. data/spec/models/economic_code_spec.rb +4 -11
  207. data/spec/models/economic_data_info_spec.rb +40 -0
  208. data/spec/models/economic_data_spec.rb +4 -11
  209. data/spec/models/economic_event_spec.rb +4 -11
  210. data/spec/models/estimate_spec.rb +4 -11
  211. data/spec/models/etf_country_exposure_data_spec.rb +4 -11
  212. data/spec/models/etf_holdings_data_spec.rb +28 -11
  213. data/spec/models/etf_sector_exposure_data_spec.rb +4 -11
  214. data/spec/models/filing_spec.rb +4 -11
  215. data/spec/models/financial_statements_spec.rb +4 -11
  216. data/spec/models/financials_as_reported_spec.rb +4 -11
  217. data/spec/models/forex_candles_spec.rb +4 -11
  218. data/spec/models/forex_symbol_spec.rb +4 -11
  219. data/spec/models/forexrates_spec.rb +4 -11
  220. data/spec/models/fund_ownership_info_spec.rb +58 -0
  221. data/spec/models/fund_ownership_spec.rb +4 -11
  222. data/spec/models/index_historical_constituent_spec.rb +4 -11
  223. data/spec/models/indicator_spec.rb +4 -11
  224. data/spec/models/indices_constituents_spec.rb +4 -11
  225. data/spec/models/indices_historical_constituents_spec.rb +4 -11
  226. data/spec/models/{investment_themes_thematic_investing_spec.rb → investment_themes_spec.rb} +6 -6
  227. data/spec/models/ipo_calendar_spec.rb +4 -11
  228. data/spec/models/ipo_event_spec.rb +4 -11
  229. data/spec/models/last_bid_ask_spec.rb +4 -11
  230. data/spec/models/market_news_spec.rb +82 -0
  231. data/spec/models/{mutual_funds_country_exposure_spec.rb → mutual_fund_country_exposure_spec.rb} +6 -6
  232. data/spec/models/mutual_fund_holdings_data_spec.rb +70 -0
  233. data/spec/models/{mutual_funds_holdings_spec.rb → mutual_fund_holdings_spec.rb} +6 -6
  234. data/spec/models/mutual_fund_profile_data_spec.rb +154 -0
  235. data/spec/models/{mutual_funds_profile_spec.rb → mutual_fund_profile_spec.rb} +6 -6
  236. data/spec/models/news_sentiment_spec.rb +4 -11
  237. data/spec/models/{investor_spec.rb → ownership_info_spec.rb} +7 -14
  238. data/spec/models/pattern_recognition_spec.rb +4 -11
  239. data/spec/models/{major_press_releases_spec.rb → press_release_spec.rb} +6 -6
  240. data/spec/models/price_target_spec.rb +4 -11
  241. data/spec/models/quote_spec.rb +16 -11
  242. data/spec/models/recommendation_trend_spec.rb +4 -11
  243. data/spec/models/report_spec.rb +4 -11
  244. data/spec/models/revenue_estimates_info_spec.rb +58 -0
  245. data/spec/models/revenue_estimates_spec.rb +4 -11
  246. data/spec/models/sentiment_spec.rb +4 -11
  247. data/spec/models/similarity_index_info_spec.rb +100 -0
  248. data/spec/models/similarity_index_spec.rb +4 -11
  249. data/spec/models/split_spec.rb +4 -11
  250. data/spec/models/stock_candles_spec.rb +4 -11
  251. data/spec/models/stock_symbol_spec.rb +70 -0
  252. data/spec/models/stock_transcripts_spec.rb +4 -11
  253. data/spec/models/support_resistance_spec.rb +4 -11
  254. data/spec/models/{stock_spec.rb → symbol_lookup_info_spec.rb} +7 -20
  255. data/spec/models/technical_analysis_spec.rb +4 -11
  256. data/spec/models/tick_data_spec.rb +10 -11
  257. data/spec/models/transcript_content_spec.rb +10 -11
  258. data/spec/models/transcript_participant_spec.rb +10 -11
  259. data/spec/models/trend_spec.rb +4 -11
  260. data/spec/models/upgrade_downgrade_spec.rb +4 -11
  261. data/spec/spec_helper.rb +1 -1
  262. metadata +83 -44
  263. data/docs/ETFsIndustryExposure.md +0 -19
  264. data/docs/InvestorsOwnership.md +0 -19
  265. data/docs/MajorDevelopments.md +0 -19
  266. data/docs/MutualFundsCountryExposure.md +0 -20
  267. data/spec/models/et_fs_country_exposure_spec.rb +0 -47
  268. data/spec/models/et_fs_holdings_spec.rb +0 -47
  269. data/spec/models/et_fs_industry_exposure_spec.rb +0 -47
  270. data/spec/models/et_fs_profile_spec.rb +0 -47
  271. data/spec/models/investors_ownership_spec.rb +0 -47
  272. data/spec/models/major_developments_spec.rb +0 -47
data/finnhub_ruby.gemspec CHANGED
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 1.0.0
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.2.0
11
+ OpenAPI Generator version: 5.2.1
12
12
 
13
13
  =end
14
14
 
data/lib/finnhub_ruby.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.0
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,9 @@ require 'finnhub_ruby/models/aggregate_indicators'
21
21
  require 'finnhub_ruby/models/basic_financials'
22
22
  require 'finnhub_ruby/models/breakdown_item'
23
23
  require 'finnhub_ruby/models/company'
24
+ require 'finnhub_ruby/models/company_esg'
24
25
  require 'finnhub_ruby/models/company_executive'
26
+ require 'finnhub_ruby/models/company_news'
25
27
  require 'finnhub_ruby/models/company_news_statistics'
26
28
  require 'finnhub_ruby/models/company_profile'
27
29
  require 'finnhub_ruby/models/company_profile2'
@@ -31,7 +33,8 @@ require 'finnhub_ruby/models/crypto_candles'
31
33
  require 'finnhub_ruby/models/crypto_symbol'
32
34
  require 'finnhub_ruby/models/development'
33
35
  require 'finnhub_ruby/models/dividends'
34
- require 'finnhub_ruby/models/dividends2_basic'
36
+ require 'finnhub_ruby/models/dividends2'
37
+ require 'finnhub_ruby/models/dividends2_info'
35
38
  require 'finnhub_ruby/models/etf_country_exposure_data'
36
39
  require 'finnhub_ruby/models/etf_holdings_data'
37
40
  require 'finnhub_ruby/models/etf_profile_data'
@@ -40,18 +43,18 @@ require 'finnhub_ruby/models/etfs_country_exposure'
40
43
  require 'finnhub_ruby/models/etfs_holdings'
41
44
  require 'finnhub_ruby/models/etfs_profile'
42
45
  require 'finnhub_ruby/models/etfs_sector_exposure'
43
- require 'finnhub_ruby/models/earning_estimate'
44
46
  require 'finnhub_ruby/models/earning_release'
45
47
  require 'finnhub_ruby/models/earning_result'
46
48
  require 'finnhub_ruby/models/earnings_calendar'
47
49
  require 'finnhub_ruby/models/earnings_call_transcripts'
48
50
  require 'finnhub_ruby/models/earnings_call_transcripts_list'
49
51
  require 'finnhub_ruby/models/earnings_estimates'
52
+ require 'finnhub_ruby/models/earnings_estimates_info'
50
53
  require 'finnhub_ruby/models/economic_calendar'
51
54
  require 'finnhub_ruby/models/economic_code'
52
55
  require 'finnhub_ruby/models/economic_data'
56
+ require 'finnhub_ruby/models/economic_data_info'
53
57
  require 'finnhub_ruby/models/economic_event'
54
- require 'finnhub_ruby/models/estimate'
55
58
  require 'finnhub_ruby/models/fda_comittee_meeting'
56
59
  require 'finnhub_ruby/models/filing'
57
60
  require 'finnhub_ruby/models/filing_sentiment'
@@ -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'
@@ -93,17 +99,20 @@ require 'finnhub_ruby/models/reddit_sentiment_content'
93
99
  require 'finnhub_ruby/models/report'
94
100
  require 'finnhub_ruby/models/revenue_breakdown'
95
101
  require 'finnhub_ruby/models/revenue_estimates'
102
+ require 'finnhub_ruby/models/revenue_estimates_info'
96
103
  require 'finnhub_ruby/models/sec_sentiment_analysis'
97
104
  require 'finnhub_ruby/models/sentiment'
98
105
  require 'finnhub_ruby/models/similarity_index'
106
+ require 'finnhub_ruby/models/similarity_index_info'
99
107
  require 'finnhub_ruby/models/social_sentiment'
100
108
  require 'finnhub_ruby/models/split'
101
- require 'finnhub_ruby/models/stock'
102
109
  require 'finnhub_ruby/models/stock_candles'
110
+ require 'finnhub_ruby/models/stock_symbol'
103
111
  require 'finnhub_ruby/models/stock_transcripts'
104
112
  require 'finnhub_ruby/models/supply_chain_relationships'
105
113
  require 'finnhub_ruby/models/support_resistance'
106
114
  require 'finnhub_ruby/models/symbol_lookup'
115
+ require 'finnhub_ruby/models/symbol_lookup_info'
107
116
  require 'finnhub_ruby/models/technical_analysis'
108
117
  require 'finnhub_ruby/models/tick_data'
109
118
  require 'finnhub_ruby/models/transactions'
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.0
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
@@ -295,6 +295,70 @@ module FinnhubRuby
295
295
  return data, status_code, headers
296
296
  end
297
297
 
298
+ # Company ESG Scores
299
+ # <p>This endpoint provides ESG scores and important indicators for 1000+ global companies. The data is collected through company's public ESG disclosure and public sources.</p><p>Our ESG scoring models takes into account more than 150 different inputs to calculate the level of ESG risks and how well a company is managing them. A higher score means lower ESG risk or better ESG management. ESG scores are in the the range of 0-100. Some key indicators might contain letter-grade score from C- to A+ with C- is the lowest score and A+ is the highest score.</p>
300
+ # @param symbol [String] Symbol.
301
+ # @param [Hash] opts the optional parameters
302
+ # @return [CompanyESG]
303
+ def company_esg_score(symbol, opts = {})
304
+ data, _status_code, _headers = company_esg_score_with_http_info(symbol, opts)
305
+ data
306
+ end
307
+
308
+ # Company ESG Scores
309
+ # &lt;p&gt;This endpoint provides ESG scores and important indicators for 1000+ global companies. The data is collected through company&#39;s public ESG disclosure and public sources.&lt;/p&gt;&lt;p&gt;Our ESG scoring models takes into account more than 150 different inputs to calculate the level of ESG risks and how well a company is managing them. A higher score means lower ESG risk or better ESG management. ESG scores are in the the range of 0-100. Some key indicators might contain letter-grade score from C- to A+ with C- is the lowest score and A+ is the highest score.&lt;/p&gt;
310
+ # @param symbol [String] Symbol.
311
+ # @param [Hash] opts the optional parameters
312
+ # @return [Array<(CompanyESG, Integer, Hash)>] CompanyESG data, response status code and response headers
313
+ def company_esg_score_with_http_info(symbol, opts = {})
314
+ if @api_client.config.debugging
315
+ @api_client.config.logger.debug 'Calling API: DefaultApi.company_esg_score ...'
316
+ end
317
+ # verify the required parameter 'symbol' is set
318
+ if @api_client.config.client_side_validation && symbol.nil?
319
+ fail ArgumentError, "Missing the required parameter 'symbol' when calling DefaultApi.company_esg_score"
320
+ end
321
+ # resource path
322
+ local_var_path = '/stock/esg'
323
+
324
+ # query parameters
325
+ query_params = opts[:query_params] || {}
326
+ query_params[:'symbol'] = symbol
327
+
328
+ # header parameters
329
+ header_params = opts[:header_params] || {}
330
+ # HTTP header 'Accept' (if needed)
331
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
332
+
333
+ # form parameters
334
+ form_params = opts[:form_params] || {}
335
+
336
+ # http body (model)
337
+ post_body = opts[:debug_body]
338
+
339
+ # return_type
340
+ return_type = opts[:debug_return_type] || 'CompanyESG'
341
+
342
+ # auth_names
343
+ auth_names = opts[:debug_auth_names] || ['api_key']
344
+
345
+ new_options = opts.merge(
346
+ :operation => :"DefaultApi.company_esg_score",
347
+ :header_params => header_params,
348
+ :query_params => query_params,
349
+ :form_params => form_params,
350
+ :body => post_body,
351
+ :auth_names => auth_names,
352
+ :return_type => return_type
353
+ )
354
+
355
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
356
+ if @api_client.config.debugging
357
+ @api_client.config.logger.debug "API called: DefaultApi#company_esg_score\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
358
+ end
359
+ return data, status_code, headers
360
+ end
361
+
298
362
  # Company Executive
299
363
  # Get a list of company's executives and members of the Board.
300
364
  # @param symbol [String] Symbol of the company: AAPL.
@@ -365,7 +429,7 @@ module FinnhubRuby
365
429
  # @param from [Date] From date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
366
430
  # @param to [Date] To date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
367
431
  # @param [Hash] opts the optional parameters
368
- # @return [Array<News>]
432
+ # @return [Array<CompanyNews>]
369
433
  def company_news(symbol, from, to, opts = {})
370
434
  data, _status_code, _headers = company_news_with_http_info(symbol, from, to, opts)
371
435
  data
@@ -377,7 +441,7 @@ module FinnhubRuby
377
441
  # @param from [Date] From date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
378
442
  # @param to [Date] To date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
379
443
  # @param [Hash] opts the optional parameters
380
- # @return [Array<(Array<News>, Integer, Hash)>] Array<News> data, response status code and response headers
444
+ # @return [Array<(Array<CompanyNews>, Integer, Hash)>] Array<CompanyNews> data, response status code and response headers
381
445
  def company_news_with_http_info(symbol, from, to, opts = {})
382
446
  if @api_client.config.debugging
383
447
  @api_client.config.logger.debug 'Calling API: DefaultApi.company_news ...'
@@ -415,7 +479,7 @@ module FinnhubRuby
415
479
  post_body = opts[:debug_body]
416
480
 
417
481
  # return_type
418
- return_type = opts[:debug_return_type] || 'Array<News>'
482
+ return_type = opts[:debug_return_type] || 'Array<CompanyNews>'
419
483
 
420
484
  # auth_names
421
485
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -1089,35 +1153,28 @@ module FinnhubRuby
1089
1153
  return data, status_code, headers
1090
1154
  end
1091
1155
 
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;.
1156
+ # Economic Calendar
1157
+ # <p>Get recent and upcoming economic releases.</p><p>Historical events and surprises are available for Enterprise clients.</p>
1095
1158
  # @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)
1159
+ # @return [EconomicCalendar]
1160
+ def economic_calendar(opts = {})
1161
+ data, _status_code, _headers = economic_calendar_with_http_info(opts)
1099
1162
  data
1100
1163
  end
1101
1164
 
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;.
1165
+ # Economic Calendar
1166
+ # &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
1167
  # @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 = {})
1168
+ # @return [Array<(EconomicCalendar, Integer, Hash)>] EconomicCalendar data, response status code and response headers
1169
+ def economic_calendar_with_http_info(opts = {})
1108
1170
  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"
1171
+ @api_client.config.logger.debug 'Calling API: DefaultApi.economic_calendar ...'
1114
1172
  end
1115
1173
  # resource path
1116
- local_var_path = '/stock/transcripts'
1174
+ local_var_path = '/calendar/economic'
1117
1175
 
1118
1176
  # query parameters
1119
1177
  query_params = opts[:query_params] || {}
1120
- query_params[:'id'] = id
1121
1178
 
1122
1179
  # header parameters
1123
1180
  header_params = opts[:header_params] || {}
@@ -1131,13 +1188,13 @@ module FinnhubRuby
1131
1188
  post_body = opts[:debug_body]
1132
1189
 
1133
1190
  # return_type
1134
- return_type = opts[:debug_return_type] || 'EarningsCallTranscripts'
1191
+ return_type = opts[:debug_return_type] || 'EconomicCalendar'
1135
1192
 
1136
1193
  # auth_names
1137
1194
  auth_names = opts[:debug_auth_names] || ['api_key']
1138
1195
 
1139
1196
  new_options = opts.merge(
1140
- :operation => :"DefaultApi.earnings_call_transcripts_api",
1197
+ :operation => :"DefaultApi.economic_calendar",
1141
1198
  :header_params => header_params,
1142
1199
  :query_params => query_params,
1143
1200
  :form_params => form_params,
@@ -1148,7 +1205,7 @@ module FinnhubRuby
1148
1205
 
1149
1206
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1150
1207
  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}"
1208
+ @api_client.config.logger.debug "API called: DefaultApi#economic_calendar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1152
1209
  end
1153
1210
  return data, status_code, headers
1154
1211
  end
@@ -2472,9 +2529,9 @@ module FinnhubRuby
2472
2529
  # <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
2530
  # @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
2531
  # @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)
2532
+ # @return [InvestmentThemes]
2533
+ def investment_themes(theme, opts = {})
2534
+ data, _status_code, _headers = investment_themes_with_http_info(theme, opts)
2478
2535
  data
2479
2536
  end
2480
2537
 
@@ -2482,14 +2539,14 @@ module FinnhubRuby
2482
2539
  # &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
2540
  # @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
2541
  # @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 = {})
2542
+ # @return [Array<(InvestmentThemes, Integer, Hash)>] InvestmentThemes data, response status code and response headers
2543
+ def investment_themes_with_http_info(theme, opts = {})
2487
2544
  if @api_client.config.debugging
2488
- @api_client.config.logger.debug 'Calling API: DefaultApi.investment_themes_thematic_investing ...'
2545
+ @api_client.config.logger.debug 'Calling API: DefaultApi.investment_themes ...'
2489
2546
  end
2490
2547
  # verify the required parameter 'theme' is set
2491
2548
  if @api_client.config.client_side_validation && theme.nil?
2492
- fail ArgumentError, "Missing the required parameter 'theme' when calling DefaultApi.investment_themes_thematic_investing"
2549
+ fail ArgumentError, "Missing the required parameter 'theme' when calling DefaultApi.investment_themes"
2493
2550
  end
2494
2551
  # resource path
2495
2552
  local_var_path = '/stock/investment-theme'
@@ -2510,13 +2567,13 @@ module FinnhubRuby
2510
2567
  post_body = opts[:debug_body]
2511
2568
 
2512
2569
  # return_type
2513
- return_type = opts[:debug_return_type] || 'InvestmentThemesThematicInvesting'
2570
+ return_type = opts[:debug_return_type] || 'InvestmentThemes'
2514
2571
 
2515
2572
  # auth_names
2516
2573
  auth_names = opts[:debug_auth_names] || ['api_key']
2517
2574
 
2518
2575
  new_options = opts.merge(
2519
- :operation => :"DefaultApi.investment_themes_thematic_investing",
2576
+ :operation => :"DefaultApi.investment_themes",
2520
2577
  :header_params => header_params,
2521
2578
  :query_params => query_params,
2522
2579
  :form_params => form_params,
@@ -2527,7 +2584,7 @@ module FinnhubRuby
2527
2584
 
2528
2585
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2529
2586
  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}"
2587
+ @api_client.config.logger.debug "API called: DefaultApi#investment_themes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2531
2588
  end
2532
2589
  return data, status_code, headers
2533
2590
  end
@@ -2607,8 +2664,8 @@ module FinnhubRuby
2607
2664
  # Get latest market news.
2608
2665
  # @param category [String] This parameter can be 1 of the following values &lt;code&gt;general, forex, crypto, merger&lt;/code&gt;.
2609
2666
  # @param [Hash] opts the optional parameters
2610
- # @option opts [String] :min_id Use this field to get only news after this ID. Default to 0
2611
- # @return [Array<News>]
2667
+ # @option opts [Integer] :min_id Use this field to get only news after this ID. Default to 0
2668
+ # @return [Array<MarketNews>]
2612
2669
  def market_news(category, opts = {})
2613
2670
  data, _status_code, _headers = market_news_with_http_info(category, opts)
2614
2671
  data
@@ -2618,8 +2675,8 @@ module FinnhubRuby
2618
2675
  # Get latest market news.
2619
2676
  # @param category [String] This parameter can be 1 of the following values &lt;code&gt;general, forex, crypto, merger&lt;/code&gt;.
2620
2677
  # @param [Hash] opts the optional parameters
2621
- # @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
2678
+ # @option opts [Integer] :min_id Use this field to get only news after this ID. Default to 0
2679
+ # @return [Array<(Array<MarketNews>, Integer, Hash)>] Array<MarketNews> data, response status code and response headers
2623
2680
  def market_news_with_http_info(category, opts = {})
2624
2681
  if @api_client.config.debugging
2625
2682
  @api_client.config.logger.debug 'Calling API: DefaultApi.market_news ...'
@@ -2648,7 +2705,7 @@ module FinnhubRuby
2648
2705
  post_body = opts[:debug_body]
2649
2706
 
2650
2707
  # return_type
2651
- return_type = opts[:debug_return_type] || 'Array<News>'
2708
+ return_type = opts[:debug_return_type] || 'Array<MarketNews>'
2652
2709
 
2653
2710
  # auth_names
2654
2711
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2674,7 +2731,7 @@ module FinnhubRuby
2674
2731
  # Get Mutual Funds country exposure data.
2675
2732
  # @param symbol [String] Symbol.
2676
2733
  # @param [Hash] opts the optional parameters
2677
- # @return [MutualFundsCountryExposure]
2734
+ # @return [MutualFundCountryExposure]
2678
2735
  def mutual_fund_country_exposure(symbol, opts = {})
2679
2736
  data, _status_code, _headers = mutual_fund_country_exposure_with_http_info(symbol, opts)
2680
2737
  data
@@ -2684,7 +2741,7 @@ module FinnhubRuby
2684
2741
  # Get Mutual Funds country exposure data.
2685
2742
  # @param symbol [String] Symbol.
2686
2743
  # @param [Hash] opts the optional parameters
2687
- # @return [Array<(MutualFundsCountryExposure, Integer, Hash)>] MutualFundsCountryExposure data, response status code and response headers
2744
+ # @return [Array<(MutualFundCountryExposure, Integer, Hash)>] MutualFundCountryExposure data, response status code and response headers
2688
2745
  def mutual_fund_country_exposure_with_http_info(symbol, opts = {})
2689
2746
  if @api_client.config.debugging
2690
2747
  @api_client.config.logger.debug 'Calling API: DefaultApi.mutual_fund_country_exposure ...'
@@ -2712,7 +2769,7 @@ module FinnhubRuby
2712
2769
  post_body = opts[:debug_body]
2713
2770
 
2714
2771
  # return_type
2715
- return_type = opts[:debug_return_type] || 'MutualFundsCountryExposure'
2772
+ return_type = opts[:debug_return_type] || 'MutualFundCountryExposure'
2716
2773
 
2717
2774
  # auth_names
2718
2775
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2740,7 +2797,7 @@ module FinnhubRuby
2740
2797
  # @option opts [String] :symbol Fund&#39;s symbol.
2741
2798
  # @option opts [String] :isin Fund&#39;s isin.
2742
2799
  # @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]
2800
+ # @return [MutualFundHoldings]
2744
2801
  def mutual_fund_holdings(opts = {})
2745
2802
  data, _status_code, _headers = mutual_fund_holdings_with_http_info(opts)
2746
2803
  data
@@ -2752,7 +2809,7 @@ module FinnhubRuby
2752
2809
  # @option opts [String] :symbol Fund&#39;s symbol.
2753
2810
  # @option opts [String] :isin Fund&#39;s isin.
2754
2811
  # @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
2812
+ # @return [Array<(MutualFundHoldings, Integer, Hash)>] MutualFundHoldings data, response status code and response headers
2756
2813
  def mutual_fund_holdings_with_http_info(opts = {})
2757
2814
  if @api_client.config.debugging
2758
2815
  @api_client.config.logger.debug 'Calling API: DefaultApi.mutual_fund_holdings ...'
@@ -2778,7 +2835,7 @@ module FinnhubRuby
2778
2835
  post_body = opts[:debug_body]
2779
2836
 
2780
2837
  # return_type
2781
- return_type = opts[:debug_return_type] || 'MutualFundsHoldings'
2838
+ return_type = opts[:debug_return_type] || 'MutualFundHoldings'
2782
2839
 
2783
2840
  # auth_names
2784
2841
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2805,7 +2862,7 @@ module FinnhubRuby
2805
2862
  # @param [Hash] opts the optional parameters
2806
2863
  # @option opts [String] :symbol Fund&#39;s symbol.
2807
2864
  # @option opts [String] :isin Fund&#39;s isin.
2808
- # @return [MutualFundsProfile]
2865
+ # @return [MutualFundProfile]
2809
2866
  def mutual_fund_profile(opts = {})
2810
2867
  data, _status_code, _headers = mutual_fund_profile_with_http_info(opts)
2811
2868
  data
@@ -2816,7 +2873,7 @@ module FinnhubRuby
2816
2873
  # @param [Hash] opts the optional parameters
2817
2874
  # @option opts [String] :symbol Fund&#39;s symbol.
2818
2875
  # @option opts [String] :isin Fund&#39;s isin.
2819
- # @return [Array<(MutualFundsProfile, Integer, Hash)>] MutualFundsProfile data, response status code and response headers
2876
+ # @return [Array<(MutualFundProfile, Integer, Hash)>] MutualFundProfile data, response status code and response headers
2820
2877
  def mutual_fund_profile_with_http_info(opts = {})
2821
2878
  if @api_client.config.debugging
2822
2879
  @api_client.config.logger.debug 'Calling API: DefaultApi.mutual_fund_profile ...'
@@ -2841,7 +2898,7 @@ module FinnhubRuby
2841
2898
  post_body = opts[:debug_body]
2842
2899
 
2843
2900
  # return_type
2844
- return_type = opts[:debug_return_type] || 'MutualFundsProfile'
2901
+ return_type = opts[:debug_return_type] || 'MutualFundProfile'
2845
2902
 
2846
2903
  # auth_names
2847
2904
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -2863,7 +2920,7 @@ module FinnhubRuby
2863
2920
  return data, status_code, headers
2864
2921
  end
2865
2922
 
2866
- # Mutual-fund Sector Exposure
2923
+ # Mutual Funds Sector Exposure
2867
2924
  # Get Mutual Funds sector exposure data.
2868
2925
  # @param symbol [String] Mutual Fund symbol.
2869
2926
  # @param [Hash] opts the optional parameters
@@ -2873,7 +2930,7 @@ module FinnhubRuby
2873
2930
  data
2874
2931
  end
2875
2932
 
2876
- # Mutual-fund Sector Exposure
2933
+ # Mutual Funds Sector Exposure
2877
2934
  # Get Mutual Funds sector exposure data.
2878
2935
  # @param symbol [String] Mutual Fund symbol.
2879
2936
  # @param [Hash] opts the optional parameters
@@ -3135,7 +3192,7 @@ module FinnhubRuby
3135
3192
  # @param [Hash] opts the optional parameters
3136
3193
  # @option opts [Date] :from From time: 2020-01-01.
3137
3194
  # @option opts [Date] :to To time: 2020-01-05.
3138
- # @return [MajorPressReleases]
3195
+ # @return [PressRelease]
3139
3196
  def press_releases(symbol, opts = {})
3140
3197
  data, _status_code, _headers = press_releases_with_http_info(symbol, opts)
3141
3198
  data
@@ -3147,7 +3204,7 @@ module FinnhubRuby
3147
3204
  # @param [Hash] opts the optional parameters
3148
3205
  # @option opts [Date] :from From time: 2020-01-01.
3149
3206
  # @option opts [Date] :to To time: 2020-01-05.
3150
- # @return [Array<(MajorPressReleases, Integer, Hash)>] MajorPressReleases data, response status code and response headers
3207
+ # @return [Array<(PressRelease, Integer, Hash)>] PressRelease data, response status code and response headers
3151
3208
  def press_releases_with_http_info(symbol, opts = {})
3152
3209
  if @api_client.config.debugging
3153
3210
  @api_client.config.logger.debug 'Calling API: DefaultApi.press_releases ...'
@@ -3177,7 +3234,7 @@ module FinnhubRuby
3177
3234
  post_body = opts[:debug_body]
3178
3235
 
3179
3236
  # return_type
3180
- return_type = opts[:debug_return_type] || 'MajorPressReleases'
3237
+ return_type = opts[:debug_return_type] || 'PressRelease'
3181
3238
 
3182
3239
  # auth_names
3183
3240
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -3594,7 +3651,7 @@ module FinnhubRuby
3594
3651
  # Get global dividends data.
3595
3652
  # @param symbol [String] Symbol.
3596
3653
  # @param [Hash] opts the optional parameters
3597
- # @return [Dividends2Basic]
3654
+ # @return [Dividends2]
3598
3655
  def stock_basic_dividends(symbol, opts = {})
3599
3656
  data, _status_code, _headers = stock_basic_dividends_with_http_info(symbol, opts)
3600
3657
  data
@@ -3604,7 +3661,7 @@ module FinnhubRuby
3604
3661
  # Get global dividends data.
3605
3662
  # @param symbol [String] Symbol.
3606
3663
  # @param [Hash] opts the optional parameters
3607
- # @return [Array<(Dividends2Basic, Integer, Hash)>] Dividends2Basic data, response status code and response headers
3664
+ # @return [Array<(Dividends2, Integer, Hash)>] Dividends2 data, response status code and response headers
3608
3665
  def stock_basic_dividends_with_http_info(symbol, opts = {})
3609
3666
  if @api_client.config.debugging
3610
3667
  @api_client.config.logger.debug 'Calling API: DefaultApi.stock_basic_dividends ...'
@@ -3632,7 +3689,7 @@ module FinnhubRuby
3632
3689
  post_body = opts[:debug_body]
3633
3690
 
3634
3691
  # return_type
3635
- return_type = opts[:debug_return_type] || 'Dividends2Basic'
3692
+ return_type = opts[:debug_return_type] || 'Dividends2'
3636
3693
 
3637
3694
  # auth_names
3638
3695
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -3719,13 +3776,12 @@ module FinnhubRuby
3719
3776
  end
3720
3777
 
3721
3778
  # Stock Candles
3722
- # <p>Get candlestick data (OHLCV) for stocks
3779
+ # <p>Get candlestick data (OHLCV) for stocks.</p><p>Daily data will be adjusted for Splits. Intraday data will remain unadjusted.</p>
3723
3780
  # @param symbol [String] Symbol.
3724
3781
  # @param resolution [String] Supported resolution includes &lt;code&gt;1, 5, 15, 30, 60, D, W, M &lt;/code&gt;.Some timeframes might not be available depending on the exchange.
3725
3782
  # @param from [Integer] UNIX timestamp. Interval initial value.
3726
3783
  # @param to [Integer] UNIX timestamp. Interval end value.
3727
3784
  # @param [Hash] opts the optional parameters
3728
- # @option opts [String] :adjusted DEPRECATED: this option has been deprecated. All Daily data will be adjusted for Splits and intraday data will remain unadjusted.
3729
3785
  # @return [StockCandles]
3730
3786
  def stock_candles(symbol, resolution, from, to, opts = {})
3731
3787
  data, _status_code, _headers = stock_candles_with_http_info(symbol, resolution, from, to, opts)
@@ -3733,13 +3789,12 @@ module FinnhubRuby
3733
3789
  end
3734
3790
 
3735
3791
  # Stock Candles
3736
- # &lt;p&gt;Get candlestick data (OHLCV) for stocks
3792
+ # &lt;p&gt;Get candlestick data (OHLCV) for stocks.&lt;/p&gt;&lt;p&gt;Daily data will be adjusted for Splits. Intraday data will remain unadjusted.&lt;/p&gt;
3737
3793
  # @param symbol [String] Symbol.
3738
3794
  # @param resolution [String] Supported resolution includes &lt;code&gt;1, 5, 15, 30, 60, D, W, M &lt;/code&gt;.Some timeframes might not be available depending on the exchange.
3739
3795
  # @param from [Integer] UNIX timestamp. Interval initial value.
3740
3796
  # @param to [Integer] UNIX timestamp. Interval end value.
3741
3797
  # @param [Hash] opts the optional parameters
3742
- # @option opts [String] :adjusted DEPRECATED: this option has been deprecated. All Daily data will be adjusted for Splits and intraday data will remain unadjusted.
3743
3798
  # @return [Array<(StockCandles, Integer, Hash)>] StockCandles data, response status code and response headers
3744
3799
  def stock_candles_with_http_info(symbol, resolution, from, to, opts = {})
3745
3800
  if @api_client.config.debugging
@@ -3770,7 +3825,6 @@ module FinnhubRuby
3770
3825
  query_params[:'resolution'] = resolution
3771
3826
  query_params[:'from'] = from
3772
3827
  query_params[:'to'] = to
3773
- query_params[:'adjusted'] = opts[:'adjusted'] if !opts[:'adjusted'].nil?
3774
3828
 
3775
3829
  # header parameters
3776
3830
  header_params = opts[:header_params] || {}
@@ -4054,7 +4108,7 @@ module FinnhubRuby
4054
4108
  # @option opts [String] :mic Filter by MIC code.
4055
4109
  # @option opts [String] :security_type Filter by security type used by OpenFigi standard.
4056
4110
  # @option opts [String] :currency Filter by currency.
4057
- # @return [Array<Stock>]
4111
+ # @return [Array<StockSymbol>]
4058
4112
  def stock_symbols(exchange, opts = {})
4059
4113
  data, _status_code, _headers = stock_symbols_with_http_info(exchange, opts)
4060
4114
  data
@@ -4067,7 +4121,7 @@ module FinnhubRuby
4067
4121
  # @option opts [String] :mic Filter by MIC code.
4068
4122
  # @option opts [String] :security_type Filter by security type used by OpenFigi standard.
4069
4123
  # @option opts [String] :currency Filter by currency.
4070
- # @return [Array<(Array<Stock>, Integer, Hash)>] Array<Stock> data, response status code and response headers
4124
+ # @return [Array<(Array<StockSymbol>, Integer, Hash)>] Array<StockSymbol> data, response status code and response headers
4071
4125
  def stock_symbols_with_http_info(exchange, opts = {})
4072
4126
  if @api_client.config.debugging
4073
4127
  @api_client.config.logger.debug 'Calling API: DefaultApi.stock_symbols ...'
@@ -4098,7 +4152,7 @@ module FinnhubRuby
4098
4152
  post_body = opts[:debug_body]
4099
4153
 
4100
4154
  # return_type
4101
- return_type = opts[:debug_return_type] || 'Array<Stock>'
4155
+ return_type = opts[:debug_return_type] || 'Array<StockSymbol>'
4102
4156
 
4103
4157
  # auth_names
4104
4158
  auth_names = opts[:debug_auth_names] || ['api_key']
@@ -4500,6 +4554,70 @@ module FinnhubRuby
4500
4554
  return data, status_code, headers
4501
4555
  end
4502
4556
 
4557
+ # Earnings Call Transcripts
4558
+ # <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>
4559
+ # @param id [String] Transcript&#39;s id obtained with &lt;a href&#x3D;\&quot;#transcripts-list\&quot;&gt;Transcripts List endpoint&lt;/a&gt;.
4560
+ # @param [Hash] opts the optional parameters
4561
+ # @return [EarningsCallTranscripts]
4562
+ def transcripts(id, opts = {})
4563
+ data, _status_code, _headers = transcripts_with_http_info(id, opts)
4564
+ data
4565
+ end
4566
+
4567
+ # Earnings Call Transcripts
4568
+ # &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;
4569
+ # @param id [String] Transcript&#39;s id obtained with &lt;a href&#x3D;\&quot;#transcripts-list\&quot;&gt;Transcripts List endpoint&lt;/a&gt;.
4570
+ # @param [Hash] opts the optional parameters
4571
+ # @return [Array<(EarningsCallTranscripts, Integer, Hash)>] EarningsCallTranscripts data, response status code and response headers
4572
+ def transcripts_with_http_info(id, opts = {})
4573
+ if @api_client.config.debugging
4574
+ @api_client.config.logger.debug 'Calling API: DefaultApi.transcripts ...'
4575
+ end
4576
+ # verify the required parameter 'id' is set
4577
+ if @api_client.config.client_side_validation && id.nil?
4578
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.transcripts"
4579
+ end
4580
+ # resource path
4581
+ local_var_path = '/stock/transcripts'
4582
+
4583
+ # query parameters
4584
+ query_params = opts[:query_params] || {}
4585
+ query_params[:'id'] = id
4586
+
4587
+ # header parameters
4588
+ header_params = opts[:header_params] || {}
4589
+ # HTTP header 'Accept' (if needed)
4590
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4591
+
4592
+ # form parameters
4593
+ form_params = opts[:form_params] || {}
4594
+
4595
+ # http body (model)
4596
+ post_body = opts[:debug_body]
4597
+
4598
+ # return_type
4599
+ return_type = opts[:debug_return_type] || 'EarningsCallTranscripts'
4600
+
4601
+ # auth_names
4602
+ auth_names = opts[:debug_auth_names] || ['api_key']
4603
+
4604
+ new_options = opts.merge(
4605
+ :operation => :"DefaultApi.transcripts",
4606
+ :header_params => header_params,
4607
+ :query_params => query_params,
4608
+ :form_params => form_params,
4609
+ :body => post_body,
4610
+ :auth_names => auth_names,
4611
+ :return_type => return_type
4612
+ )
4613
+
4614
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4615
+ if @api_client.config.debugging
4616
+ @api_client.config.logger.debug "API called: DefaultApi#transcripts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4617
+ end
4618
+ return data, status_code, headers
4619
+ end
4620
+
4503
4621
  # Earnings Call Transcripts List
4504
4622
  # List earnings call transcripts' metadata. This endpoint is available for US, UK and Canadian companies.
4505
4623
  # @param symbol [String] Company symbol: AAPL. Leave empty to list the latest transcripts