finnhub_ruby 1.1.19 → 2.0.1

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 (385) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +39 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +148 -0
  5. data/.travis.yml +14 -0
  6. data/README.md +4 -4
  7. data/docs/AirlinePriceIndex.md +22 -0
  8. data/docs/AirlinePriceIndexData.md +24 -0
  9. data/docs/CompanyESG2.md +28 -0
  10. data/docs/CompanyProfile.md +6 -0
  11. data/docs/CountryMetadata.md +9 -1
  12. data/docs/DefaultApi.md +582 -38
  13. data/docs/ETFProfileData.md +2 -0
  14. data/docs/EarningResult.md +2 -2
  15. data/docs/EarningsEstimatesInfo.md +5 -1
  16. data/docs/EbitEstimatesInfo.md +5 -1
  17. data/docs/EbitdaEstimatesInfo.md +5 -1
  18. data/docs/EmployeeCount.md +20 -0
  19. data/docs/FilingResponse.md +1 -1
  20. data/docs/HistoricalCompanyESG.md +20 -0
  21. data/docs/HistoricalEmployeeCount.md +20 -0
  22. data/docs/HistoricalMarketCapData.md +22 -0
  23. data/docs/IndicesConstituents.md +3 -1
  24. data/docs/IndicesConstituentsBreakdown.md +28 -0
  25. data/docs/MarketCapData.md +20 -0
  26. data/docs/MarketHoliday.md +22 -0
  27. data/docs/MarketHolidayData.md +22 -0
  28. data/docs/MarketStatus.md +28 -0
  29. data/docs/MutualFundProfileData.md +2 -0
  30. data/docs/PriceTarget.md +2 -0
  31. data/docs/RevenueEstimatesInfo.md +5 -1
  32. data/docs/SentimentContent.md +30 -0
  33. data/docs/SocialSentiment.md +2 -4
  34. data/finnhub_ruby.gemspec +9 -9
  35. data/git_push.sh +0 -0
  36. data/lib/finnhub_ruby/version.rb +2 -14
  37. data/lib/finnhub_ruby.rb +522 -178
  38. data/test.rb +234 -0
  39. data/test_release.rb +235 -0
  40. metadata +31 -521
  41. data/finnhub_ruby-1.1.10.gem +0 -0
  42. data/finnhub_ruby-1.1.11.gem +0 -0
  43. data/finnhub_ruby-1.1.12.gem +0 -0
  44. data/finnhub_ruby-1.1.13.gem +0 -0
  45. data/finnhub_ruby-1.1.14.gem +0 -0
  46. data/finnhub_ruby-1.1.15.gem +0 -0
  47. data/finnhub_ruby-1.1.16.gem +0 -0
  48. data/finnhub_ruby-1.1.17.gem +0 -0
  49. data/finnhub_ruby-1.1.18.gem +0 -0
  50. data/finnhub_ruby-1.1.7.gem +0 -0
  51. data/finnhub_ruby-1.1.8.gem +0 -0
  52. data/finnhub_ruby-1.1.9.gem +0 -0
  53. data/lib/finnhub_ruby/api/default_api.rb +0 -6370
  54. data/lib/finnhub_ruby/api_client.rb +0 -391
  55. data/lib/finnhub_ruby/api_error.rb +0 -57
  56. data/lib/finnhub_ruby/configuration.rb +0 -277
  57. data/lib/finnhub_ruby/models/aggregate_indicators.rb +0 -227
  58. data/lib/finnhub_ruby/models/basic_financials.rb +0 -247
  59. data/lib/finnhub_ruby/models/bond_candles.rb +0 -243
  60. data/lib/finnhub_ruby/models/bond_profile.rb +0 -419
  61. data/lib/finnhub_ruby/models/bond_tick_data.rb +0 -347
  62. data/lib/finnhub_ruby/models/bond_yield_curve.rb +0 -231
  63. data/lib/finnhub_ruby/models/bond_yield_curve_info.rb +0 -229
  64. data/lib/finnhub_ruby/models/breakdown_item.rb +0 -228
  65. data/lib/finnhub_ruby/models/company.rb +0 -279
  66. data/lib/finnhub_ruby/models/company_earnings_quality_score.rb +0 -241
  67. data/lib/finnhub_ruby/models/company_earnings_quality_score_data.rb +0 -279
  68. data/lib/finnhub_ruby/models/company_esg.rb +0 -268
  69. data/lib/finnhub_ruby/models/company_executive.rb +0 -231
  70. data/lib/finnhub_ruby/models/company_news.rb +0 -299
  71. data/lib/finnhub_ruby/models/company_news_statistics.rb +0 -239
  72. data/lib/finnhub_ruby/models/company_profile.rb +0 -509
  73. data/lib/finnhub_ruby/models/company_profile2.rb +0 -329
  74. data/lib/finnhub_ruby/models/congressional_trading.rb +0 -231
  75. data/lib/finnhub_ruby/models/congressional_transaction.rb +0 -309
  76. data/lib/finnhub_ruby/models/country_metadata.rb +0 -289
  77. data/lib/finnhub_ruby/models/covid_info.rb +0 -249
  78. data/lib/finnhub_ruby/models/crypto_candles.rb +0 -291
  79. data/lib/finnhub_ruby/models/crypto_profile.rb +0 -319
  80. data/lib/finnhub_ruby/models/crypto_symbol.rb +0 -239
  81. data/lib/finnhub_ruby/models/development.rb +0 -259
  82. data/lib/finnhub_ruby/models/dividends.rb +0 -299
  83. data/lib/finnhub_ruby/models/dividends2.rb +0 -231
  84. data/lib/finnhub_ruby/models/dividends2_basic.rb +0 -231
  85. data/lib/finnhub_ruby/models/dividends2_info.rb +0 -229
  86. data/lib/finnhub_ruby/models/document_response.rb +0 -271
  87. data/lib/finnhub_ruby/models/earning_estimate.rb +0 -259
  88. data/lib/finnhub_ruby/models/earning_release.rb +0 -299
  89. data/lib/finnhub_ruby/models/earning_result.rb +0 -289
  90. data/lib/finnhub_ruby/models/earnings_calendar.rb +0 -221
  91. data/lib/finnhub_ruby/models/earnings_call_transcripts.rb +0 -303
  92. data/lib/finnhub_ruby/models/earnings_call_transcripts_list.rb +0 -231
  93. data/lib/finnhub_ruby/models/earnings_estimates.rb +0 -241
  94. data/lib/finnhub_ruby/models/earnings_estimates_info.rb +0 -259
  95. data/lib/finnhub_ruby/models/ebit_estimates.rb +0 -241
  96. data/lib/finnhub_ruby/models/ebit_estimates_info.rb +0 -259
  97. data/lib/finnhub_ruby/models/ebitda_estimates.rb +0 -241
  98. data/lib/finnhub_ruby/models/ebitda_estimates_info.rb +0 -259
  99. data/lib/finnhub_ruby/models/economic_calendar.rb +0 -221
  100. data/lib/finnhub_ruby/models/economic_code.rb +0 -249
  101. data/lib/finnhub_ruby/models/economic_data.rb +0 -231
  102. data/lib/finnhub_ruby/models/economic_data_info.rb +0 -229
  103. data/lib/finnhub_ruby/models/economic_event.rb +0 -289
  104. data/lib/finnhub_ruby/models/estimate.rb +0 -259
  105. data/lib/finnhub_ruby/models/et_fs_country_exposure.rb +0 -219
  106. data/lib/finnhub_ruby/models/et_fs_holdings.rb +0 -219
  107. data/lib/finnhub_ruby/models/et_fs_industry_exposure.rb +0 -219
  108. data/lib/finnhub_ruby/models/et_fs_profile.rb +0 -216
  109. data/lib/finnhub_ruby/models/etf_country_exposure_data.rb +0 -229
  110. data/lib/finnhub_ruby/models/etf_holdings_data.rb +0 -289
  111. data/lib/finnhub_ruby/models/etf_profile_data.rb +0 -419
  112. data/lib/finnhub_ruby/models/etf_sector_exposure_data.rb +0 -229
  113. data/lib/finnhub_ruby/models/etfs_country_exposure.rb +0 -231
  114. data/lib/finnhub_ruby/models/etfs_holdings.rb +0 -251
  115. data/lib/finnhub_ruby/models/etfs_profile.rb +0 -228
  116. data/lib/finnhub_ruby/models/etfs_sector_exposure.rb +0 -231
  117. data/lib/finnhub_ruby/models/excerpt_response.rb +0 -249
  118. data/lib/finnhub_ruby/models/fda_comittee_meeting.rb +0 -249
  119. data/lib/finnhub_ruby/models/filing.rb +0 -289
  120. data/lib/finnhub_ruby/models/filing_response.rb +0 -339
  121. data/lib/finnhub_ruby/models/filing_sentiment.rb +0 -299
  122. data/lib/finnhub_ruby/models/financial_statements.rb +0 -231
  123. data/lib/finnhub_ruby/models/financials_as_reported.rb +0 -241
  124. data/lib/finnhub_ruby/models/forex_candles.rb +0 -291
  125. data/lib/finnhub_ruby/models/forex_symbol.rb +0 -239
  126. data/lib/finnhub_ruby/models/forexrates.rb +0 -228
  127. data/lib/finnhub_ruby/models/fund_ownership.rb +0 -231
  128. data/lib/finnhub_ruby/models/fund_ownership_info.rb +0 -259
  129. data/lib/finnhub_ruby/models/historical_nbbo.rb +0 -345
  130. data/lib/finnhub_ruby/models/in_filing_response.rb +0 -351
  131. data/lib/finnhub_ruby/models/in_filing_search_body.rb +0 -239
  132. data/lib/finnhub_ruby/models/index_historical_constituent.rb +0 -239
  133. data/lib/finnhub_ruby/models/indicator.rb +0 -239
  134. data/lib/finnhub_ruby/models/indices_constituents.rb +0 -231
  135. data/lib/finnhub_ruby/models/indices_historical_constituents.rb +0 -231
  136. data/lib/finnhub_ruby/models/insider_sentiments.rb +0 -231
  137. data/lib/finnhub_ruby/models/insider_sentiments_data.rb +0 -259
  138. data/lib/finnhub_ruby/models/insider_transactions.rb +0 -231
  139. data/lib/finnhub_ruby/models/institutional_ownership.rb +0 -241
  140. data/lib/finnhub_ruby/models/institutional_ownership_group.rb +0 -231
  141. data/lib/finnhub_ruby/models/institutional_ownership_info.rb +0 -309
  142. data/lib/finnhub_ruby/models/institutional_portfolio.rb +0 -241
  143. data/lib/finnhub_ruby/models/institutional_portfolio_group.rb +0 -241
  144. data/lib/finnhub_ruby/models/institutional_portfolio_info.rb +0 -319
  145. data/lib/finnhub_ruby/models/institutional_profile.rb +0 -231
  146. data/lib/finnhub_ruby/models/institutional_profile_info.rb +0 -269
  147. data/lib/finnhub_ruby/models/international_filing.rb +0 -299
  148. data/lib/finnhub_ruby/models/investment_theme_portfolio.rb +0 -219
  149. data/lib/finnhub_ruby/models/investment_themes.rb +0 -231
  150. data/lib/finnhub_ruby/models/investment_themes_thematic_investing.rb +0 -231
  151. data/lib/finnhub_ruby/models/investor.rb +0 -249
  152. data/lib/finnhub_ruby/models/investors_ownership.rb +0 -219
  153. data/lib/finnhub_ruby/models/ipo_calendar.rb +0 -221
  154. data/lib/finnhub_ruby/models/ipo_event.rb +0 -289
  155. data/lib/finnhub_ruby/models/isin_change.rb +0 -241
  156. data/lib/finnhub_ruby/models/isin_change_info.rb +0 -239
  157. data/lib/finnhub_ruby/models/key_customers_suppliers.rb +0 -329
  158. data/lib/finnhub_ruby/models/last_bid_ask.rb +0 -259
  159. data/lib/finnhub_ruby/models/lobbying_data.rb +0 -359
  160. data/lib/finnhub_ruby/models/lobbying_result.rb +0 -231
  161. data/lib/finnhub_ruby/models/major_developments.rb +0 -219
  162. data/lib/finnhub_ruby/models/major_press_releases.rb +0 -231
  163. data/lib/finnhub_ruby/models/market_news.rb +0 -299
  164. data/lib/finnhub_ruby/models/mutual_fund_country_exposure.rb +0 -231
  165. data/lib/finnhub_ruby/models/mutual_fund_country_exposure_data.rb +0 -229
  166. data/lib/finnhub_ruby/models/mutual_fund_eet.rb +0 -228
  167. data/lib/finnhub_ruby/models/mutual_fund_eet_pai.rb +0 -228
  168. data/lib/finnhub_ruby/models/mutual_fund_holdings.rb +0 -251
  169. data/lib/finnhub_ruby/models/mutual_fund_holdings_data.rb +0 -289
  170. data/lib/finnhub_ruby/models/mutual_fund_profile.rb +0 -228
  171. data/lib/finnhub_ruby/models/mutual_fund_profile_data.rb +0 -479
  172. data/lib/finnhub_ruby/models/mutual_fund_sector_exposure.rb +0 -231
  173. data/lib/finnhub_ruby/models/mutual_fund_sector_exposure_data.rb +0 -229
  174. data/lib/finnhub_ruby/models/mutual_funds_country_exposure.rb +0 -231
  175. data/lib/finnhub_ruby/models/mutual_funds_holdings.rb +0 -251
  176. data/lib/finnhub_ruby/models/mutual_funds_profile.rb +0 -228
  177. data/lib/finnhub_ruby/models/news.rb +0 -299
  178. data/lib/finnhub_ruby/models/news_sentiment.rb +0 -267
  179. data/lib/finnhub_ruby/models/ownership.rb +0 -231
  180. data/lib/finnhub_ruby/models/ownership_info.rb +0 -249
  181. data/lib/finnhub_ruby/models/pattern_recognition.rb +0 -221
  182. data/lib/finnhub_ruby/models/press_release.rb +0 -231
  183. data/lib/finnhub_ruby/models/price_metrics.rb +0 -238
  184. data/lib/finnhub_ruby/models/price_target.rb +0 -269
  185. data/lib/finnhub_ruby/models/quote.rb +0 -279
  186. data/lib/finnhub_ruby/models/recommendation_trend.rb +0 -279
  187. data/lib/finnhub_ruby/models/reddit_sentiment_content.rb +0 -279
  188. data/lib/finnhub_ruby/models/report.rb +0 -318
  189. data/lib/finnhub_ruby/models/revenue_breakdown.rb +0 -241
  190. data/lib/finnhub_ruby/models/revenue_estimates.rb +0 -241
  191. data/lib/finnhub_ruby/models/revenue_estimates_info.rb +0 -259
  192. data/lib/finnhub_ruby/models/search_body.rb +0 -434
  193. data/lib/finnhub_ruby/models/search_filter.rb +0 -229
  194. data/lib/finnhub_ruby/models/search_response.rb +0 -251
  195. data/lib/finnhub_ruby/models/sec_sentiment_analysis.rb +0 -248
  196. data/lib/finnhub_ruby/models/sector_metric.rb +0 -231
  197. data/lib/finnhub_ruby/models/sector_metric_data.rb +0 -229
  198. data/lib/finnhub_ruby/models/sentiment.rb +0 -229
  199. data/lib/finnhub_ruby/models/similarity_index.rb +0 -241
  200. data/lib/finnhub_ruby/models/similarity_index_info.rb +0 -329
  201. data/lib/finnhub_ruby/models/social_sentiment.rb +0 -243
  202. data/lib/finnhub_ruby/models/split.rb +0 -249
  203. data/lib/finnhub_ruby/models/stock.rb +0 -249
  204. data/lib/finnhub_ruby/models/stock_candles.rb +0 -291
  205. data/lib/finnhub_ruby/models/stock_symbol.rb +0 -309
  206. data/lib/finnhub_ruby/models/stock_transcripts.rb +0 -259
  207. data/lib/finnhub_ruby/models/supply_chain_relationships.rb +0 -231
  208. data/lib/finnhub_ruby/models/support_resistance.rb +0 -221
  209. data/lib/finnhub_ruby/models/symbol_change.rb +0 -241
  210. data/lib/finnhub_ruby/models/symbol_change_info.rb +0 -239
  211. data/lib/finnhub_ruby/models/symbol_lookup.rb +0 -231
  212. data/lib/finnhub_ruby/models/symbol_lookup_info.rb +0 -249
  213. data/lib/finnhub_ruby/models/technical_analysis.rb +0 -228
  214. data/lib/finnhub_ruby/models/tick_data.rb +0 -309
  215. data/lib/finnhub_ruby/models/transactions.rb +0 -289
  216. data/lib/finnhub_ruby/models/transcript_content.rb +0 -241
  217. data/lib/finnhub_ruby/models/transcript_participant.rb +0 -239
  218. data/lib/finnhub_ruby/models/trend.rb +0 -229
  219. data/lib/finnhub_ruby/models/twitter_sentiment_content.rb +0 -279
  220. data/lib/finnhub_ruby/models/upgrade_downgrade.rb +0 -269
  221. data/lib/finnhub_ruby/models/usa_spending.rb +0 -409
  222. data/lib/finnhub_ruby/models/usa_spending_result.rb +0 -231
  223. data/lib/finnhub_ruby/models/uspto_patent.rb +0 -301
  224. data/lib/finnhub_ruby/models/uspto_patent_result.rb +0 -231
  225. data/lib/finnhub_ruby/models/visa_application.rb +0 -439
  226. data/lib/finnhub_ruby/models/visa_application_result.rb +0 -231
  227. data/spec/api/default_api_spec.rb +0 -724
  228. data/spec/api_client_spec.rb +0 -226
  229. data/spec/configuration_spec.rb +0 -42
  230. data/spec/models/aggregate_indicators_spec.rb +0 -40
  231. data/spec/models/basic_financials_spec.rb +0 -52
  232. data/spec/models/bond_candles_spec.rb +0 -46
  233. data/spec/models/bond_profile_spec.rb +0 -154
  234. data/spec/models/bond_tick_data_spec.rb +0 -82
  235. data/spec/models/bond_yield_curve_info_spec.rb +0 -40
  236. data/spec/models/bond_yield_curve_spec.rb +0 -40
  237. data/spec/models/breakdown_item_spec.rb +0 -40
  238. data/spec/models/company_earnings_quality_score_data_spec.rb +0 -70
  239. data/spec/models/company_earnings_quality_score_spec.rb +0 -46
  240. data/spec/models/company_esg_spec.rb +0 -64
  241. data/spec/models/company_executive_spec.rb +0 -40
  242. data/spec/models/company_news_spec.rb +0 -82
  243. data/spec/models/company_news_statistics_spec.rb +0 -46
  244. data/spec/models/company_profile2_spec.rb +0 -100
  245. data/spec/models/company_profile_spec.rb +0 -196
  246. data/spec/models/company_spec.rb +0 -70
  247. data/spec/models/congressional_trading_spec.rb +0 -40
  248. data/spec/models/congressional_transaction_spec.rb +0 -88
  249. data/spec/models/country_metadata_spec.rb +0 -64
  250. data/spec/models/covid_info_spec.rb +0 -52
  251. data/spec/models/crypto_candles_spec.rb +0 -70
  252. data/spec/models/crypto_profile_spec.rb +0 -94
  253. data/spec/models/crypto_symbol_spec.rb +0 -46
  254. data/spec/models/development_spec.rb +0 -58
  255. data/spec/models/dividends2_info_spec.rb +0 -40
  256. data/spec/models/dividends2_spec.rb +0 -40
  257. data/spec/models/dividends_spec.rb +0 -76
  258. data/spec/models/document_response_spec.rb +0 -64
  259. data/spec/models/earning_estimate_spec.rb +0 -58
  260. data/spec/models/earning_release_spec.rb +0 -82
  261. data/spec/models/earning_result_spec.rb +0 -64
  262. data/spec/models/earnings_calendar_spec.rb +0 -34
  263. data/spec/models/earnings_call_transcripts_list_spec.rb +0 -40
  264. data/spec/models/earnings_call_transcripts_spec.rb +0 -82
  265. data/spec/models/earnings_estimates_info_spec.rb +0 -58
  266. data/spec/models/earnings_estimates_spec.rb +0 -46
  267. data/spec/models/ebit_estimates_info_spec.rb +0 -58
  268. data/spec/models/ebit_estimates_spec.rb +0 -46
  269. data/spec/models/ebitda_estimates_info_spec.rb +0 -58
  270. data/spec/models/ebitda_estimates_spec.rb +0 -46
  271. data/spec/models/economic_calendar_spec.rb +0 -34
  272. data/spec/models/economic_code_spec.rb +0 -52
  273. data/spec/models/economic_data_info_spec.rb +0 -40
  274. data/spec/models/economic_data_spec.rb +0 -40
  275. data/spec/models/economic_event_spec.rb +0 -76
  276. data/spec/models/estimate_spec.rb +0 -58
  277. data/spec/models/etf_country_exposure_data_spec.rb +0 -40
  278. data/spec/models/etf_holdings_data_spec.rb +0 -70
  279. data/spec/models/etf_profile_data_spec.rb +0 -136
  280. data/spec/models/etf_sector_exposure_data_spec.rb +0 -40
  281. data/spec/models/etfs_country_exposure_spec.rb +0 -40
  282. data/spec/models/etfs_holdings_spec.rb +0 -52
  283. data/spec/models/etfs_profile_spec.rb +0 -40
  284. data/spec/models/etfs_sector_exposure_spec.rb +0 -40
  285. data/spec/models/excerpt_response_spec.rb +0 -52
  286. data/spec/models/fda_comittee_meeting_spec.rb +0 -52
  287. data/spec/models/filing_response_spec.rb +0 -106
  288. data/spec/models/filing_sentiment_spec.rb +0 -82
  289. data/spec/models/filing_spec.rb +0 -76
  290. data/spec/models/financial_statements_spec.rb +0 -40
  291. data/spec/models/financials_as_reported_spec.rb +0 -46
  292. data/spec/models/forex_candles_spec.rb +0 -70
  293. data/spec/models/forex_symbol_spec.rb +0 -46
  294. data/spec/models/forexrates_spec.rb +0 -40
  295. data/spec/models/fund_ownership_info_spec.rb +0 -58
  296. data/spec/models/fund_ownership_spec.rb +0 -40
  297. data/spec/models/historical_nbbo_spec.rb +0 -100
  298. data/spec/models/in_filing_response_spec.rb +0 -112
  299. data/spec/models/in_filing_search_body_spec.rb +0 -40
  300. data/spec/models/index_historical_constituent_spec.rb +0 -46
  301. data/spec/models/indicator_spec.rb +0 -46
  302. data/spec/models/indices_constituents_spec.rb +0 -40
  303. data/spec/models/indices_historical_constituents_spec.rb +0 -40
  304. data/spec/models/insider_sentiments_data_spec.rb +0 -58
  305. data/spec/models/insider_sentiments_spec.rb +0 -40
  306. data/spec/models/insider_transactions_spec.rb +0 -40
  307. data/spec/models/institutional_ownership_group_spec.rb +0 -40
  308. data/spec/models/institutional_ownership_info_spec.rb +0 -88
  309. data/spec/models/institutional_ownership_spec.rb +0 -46
  310. data/spec/models/institutional_portfolio_group_spec.rb +0 -46
  311. data/spec/models/institutional_portfolio_info_spec.rb +0 -94
  312. data/spec/models/institutional_portfolio_spec.rb +0 -46
  313. data/spec/models/institutional_profile_info_spec.rb +0 -64
  314. data/spec/models/institutional_profile_spec.rb +0 -40
  315. data/spec/models/international_filing_spec.rb +0 -82
  316. data/spec/models/investment_theme_portfolio_spec.rb +0 -34
  317. data/spec/models/investment_themes_spec.rb +0 -40
  318. data/spec/models/ipo_calendar_spec.rb +0 -34
  319. data/spec/models/ipo_event_spec.rb +0 -76
  320. data/spec/models/isin_change_info_spec.rb +0 -46
  321. data/spec/models/isin_change_spec.rb +0 -46
  322. data/spec/models/key_customers_suppliers_spec.rb +0 -52
  323. data/spec/models/last_bid_ask_spec.rb +0 -58
  324. data/spec/models/lobbying_data_spec.rb +0 -118
  325. data/spec/models/lobbying_result_spec.rb +0 -40
  326. data/spec/models/market_news_spec.rb +0 -82
  327. data/spec/models/mutual_fund_country_exposure_data_spec.rb +0 -40
  328. data/spec/models/mutual_fund_country_exposure_spec.rb +0 -40
  329. data/spec/models/mutual_fund_eet_pai_spec.rb +0 -40
  330. data/spec/models/mutual_fund_eet_spec.rb +0 -40
  331. data/spec/models/mutual_fund_holdings_data_spec.rb +0 -70
  332. data/spec/models/mutual_fund_holdings_spec.rb +0 -52
  333. data/spec/models/mutual_fund_profile_data_spec.rb +0 -154
  334. data/spec/models/mutual_fund_profile_spec.rb +0 -40
  335. data/spec/models/mutual_fund_sector_exposure_data_spec.rb +0 -40
  336. data/spec/models/mutual_fund_sector_exposure_spec.rb +0 -40
  337. data/spec/models/news_sentiment_spec.rb +0 -64
  338. data/spec/models/ownership_info_spec.rb +0 -52
  339. data/spec/models/ownership_spec.rb +0 -40
  340. data/spec/models/pattern_recognition_spec.rb +0 -34
  341. data/spec/models/press_release_spec.rb +0 -40
  342. data/spec/models/price_metrics_spec.rb +0 -40
  343. data/spec/models/price_target_spec.rb +0 -64
  344. data/spec/models/quote_spec.rb +0 -70
  345. data/spec/models/recommendation_trend_spec.rb +0 -70
  346. data/spec/models/reddit_sentiment_content_spec.rb +0 -70
  347. data/spec/models/report_spec.rb +0 -94
  348. data/spec/models/revenue_breakdown_spec.rb +0 -46
  349. data/spec/models/revenue_estimates_info_spec.rb +0 -58
  350. data/spec/models/revenue_estimates_spec.rb +0 -46
  351. data/spec/models/search_body_spec.rb +0 -160
  352. data/spec/models/search_filter_spec.rb +0 -40
  353. data/spec/models/search_response_spec.rb +0 -52
  354. data/spec/models/sec_sentiment_analysis_spec.rb +0 -52
  355. data/spec/models/sector_metric_data_spec.rb +0 -40
  356. data/spec/models/sector_metric_spec.rb +0 -40
  357. data/spec/models/sentiment_spec.rb +0 -40
  358. data/spec/models/similarity_index_info_spec.rb +0 -100
  359. data/spec/models/similarity_index_spec.rb +0 -46
  360. data/spec/models/social_sentiment_spec.rb +0 -46
  361. data/spec/models/split_spec.rb +0 -52
  362. data/spec/models/stock_candles_spec.rb +0 -70
  363. data/spec/models/stock_symbol_spec.rb +0 -70
  364. data/spec/models/stock_transcripts_spec.rb +0 -58
  365. data/spec/models/supply_chain_relationships_spec.rb +0 -40
  366. data/spec/models/support_resistance_spec.rb +0 -34
  367. data/spec/models/symbol_change_info_spec.rb +0 -46
  368. data/spec/models/symbol_change_spec.rb +0 -46
  369. data/spec/models/symbol_lookup_info_spec.rb +0 -52
  370. data/spec/models/symbol_lookup_spec.rb +0 -40
  371. data/spec/models/technical_analysis_spec.rb +0 -40
  372. data/spec/models/tick_data_spec.rb +0 -82
  373. data/spec/models/transactions_spec.rb +0 -70
  374. data/spec/models/transcript_content_spec.rb +0 -46
  375. data/spec/models/transcript_participant_spec.rb +0 -46
  376. data/spec/models/trend_spec.rb +0 -40
  377. data/spec/models/twitter_sentiment_content_spec.rb +0 -70
  378. data/spec/models/upgrade_downgrade_spec.rb +0 -64
  379. data/spec/models/usa_spending_result_spec.rb +0 -40
  380. data/spec/models/usa_spending_spec.rb +0 -148
  381. data/spec/models/uspto_patent_result_spec.rb +0 -40
  382. data/spec/models/uspto_patent_spec.rb +0 -82
  383. data/spec/models/visa_application_result_spec.rb +0 -40
  384. data/spec/models/visa_application_spec.rb +0 -166
  385. data/spec/spec_helper.rb +0 -111
@@ -1,724 +0,0 @@
1
- =begin
2
- #Finnhub API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for FinnhubRuby::DefaultApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'DefaultApi' do
20
- before do
21
- # run before each test
22
- @api_instance = FinnhubRuby::DefaultApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(FinnhubRuby::DefaultApi)
32
- end
33
- end
34
-
35
- # unit tests for aggregate_indicator
36
- # Aggregate Indicators
37
- # Get aggregate signal of multiple technical indicators such as MACD, RSI, Moving Average v.v.
38
- # @param symbol symbol
39
- # @param resolution Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange.
40
- # @param [Hash] opts the optional parameters
41
- # @return [AggregateIndicators]
42
- describe 'aggregate_indicator test' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
-
48
- # unit tests for company_basic_financials
49
- # Basic Financials
50
- # Get company basic financials such as margin, P/E ratio, 52-week high/low etc.
51
- # @param symbol Symbol of the company: AAPL.
52
- # @param metric Metric type. Can be 1 of the following values <code>all, price, valuation, margin</code>
53
- # @param [Hash] opts the optional parameters
54
- # @return [BasicFinancials]
55
- describe 'company_basic_financials test' do
56
- it 'should work' do
57
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
- end
59
- end
60
-
61
- # unit tests for company_earnings
62
- # Earnings Surprises
63
- # Get company historical quarterly earnings surprise going back to 2000.
64
- # @param symbol Symbol of the company: AAPL.
65
- # @param [Hash] opts the optional parameters
66
- # @option opts [Integer] :limit Limit number of period returned. Leave blank to get the full history.
67
- # @return [Array<EarningResult>]
68
- describe 'company_earnings test' do
69
- it 'should work' do
70
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
- end
72
- end
73
-
74
- # unit tests for company_eps_estimates
75
- # Earnings Estimates
76
- # Get company&#39;s EPS estimates.
77
- # @param symbol Symbol of the company: AAPL.
78
- # @param [Hash] opts the optional parameters
79
- # @option opts [String] :freq Can take 1 of the following values: &lt;code&gt;annual, quarterly&lt;/code&gt;. Default to &lt;code&gt;quarterly&lt;/code&gt;
80
- # @return [EarningsEstimates]
81
- describe 'company_eps_estimates test' do
82
- it 'should work' do
83
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
- end
85
- end
86
-
87
- # unit tests for company_executive
88
- # Company Executive
89
- # Get a list of company&#39;s executives and members of the Board.
90
- # @param symbol Symbol of the company: AAPL.
91
- # @param [Hash] opts the optional parameters
92
- # @return [CompanyExecutive]
93
- describe 'company_executive test' do
94
- it 'should work' do
95
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
- end
97
- end
98
-
99
- # unit tests for company_news
100
- # Company News
101
- # List latest company news by symbol. This endpoint is only available for North American companies.
102
- # @param symbol Company symbol.
103
- # @param from From date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
104
- # @param to To date &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
105
- # @param [Hash] opts the optional parameters
106
- # @return [Array<News>]
107
- describe 'company_news test' do
108
- it 'should work' do
109
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
- end
111
- end
112
-
113
- # unit tests for company_peers
114
- # Peers
115
- # Get company peers. Return a list of peers in the same country and GICS sub-industry
116
- # @param symbol Symbol of the company: AAPL.
117
- # @param [Hash] opts the optional parameters
118
- # @return [Array<String>]
119
- describe 'company_peers test' do
120
- it 'should work' do
121
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
- end
123
- end
124
-
125
- # unit tests for company_profile
126
- # Company Profile
127
- # Get general information of a company. You can query by symbol, ISIN or CUSIP
128
- # @param [Hash] opts the optional parameters
129
- # @option opts [String] :symbol Symbol of the company: AAPL e.g.
130
- # @option opts [String] :isin ISIN
131
- # @option opts [String] :cusip CUSIP
132
- # @return [CompanyProfile]
133
- describe 'company_profile test' do
134
- it 'should work' do
135
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
- end
137
- end
138
-
139
- # unit tests for company_profile2
140
- # Company Profile 2
141
- # Get general information of a company. You can query by symbol, ISIN or CUSIP. This is the free version of &lt;a href&#x3D;\&quot;#company-profile\&quot;&gt;Company Profile&lt;/a&gt;.
142
- # @param [Hash] opts the optional parameters
143
- # @option opts [String] :symbol Symbol of the company: AAPL e.g.
144
- # @option opts [String] :isin ISIN
145
- # @option opts [String] :cusip CUSIP
146
- # @return [CompanyProfile2]
147
- describe 'company_profile2 test' do
148
- it 'should work' do
149
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
150
- end
151
- end
152
-
153
- # unit tests for company_revenue_estimates
154
- # Revenue Estimates
155
- # Get company&#39;s revenue estimates.
156
- # @param symbol Symbol of the company: AAPL.
157
- # @param [Hash] opts the optional parameters
158
- # @option opts [String] :freq Can take 1 of the following values: &lt;code&gt;annual, quarterly&lt;/code&gt;. Default to &lt;code&gt;quarterly&lt;/code&gt;
159
- # @return [RevenueEstimates]
160
- describe 'company_revenue_estimates test' do
161
- it 'should work' do
162
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
163
- end
164
- end
165
-
166
- # unit tests for country
167
- # Country Metadata
168
- # List all countries and metadata.
169
- # @param [Hash] opts the optional parameters
170
- # @return [Array<CountryMetadata>]
171
- describe 'country test' do
172
- it 'should work' do
173
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
- end
175
- end
176
-
177
- # unit tests for covid19
178
- # COVID-19
179
- # Get real-time updates on the number of COVID-19 (Corona virus) cases in the US with a state-by-state breakdown. Data is sourced from CDC and reputable sources. You can also access this API &lt;a href&#x3D;\&quot;https://rapidapi.com/Finnhub/api/finnhub-real-time-covid-19\&quot; target&#x3D;\&quot;_blank\&quot; rel&#x3D;\&quot;nofollow\&quot;&gt;here&lt;/a&gt;
180
- # @param [Hash] opts the optional parameters
181
- # @return [Array<CovidInfo>]
182
- describe 'covid19 test' do
183
- it 'should work' do
184
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
185
- end
186
- end
187
-
188
- # unit tests for crypto_candles
189
- # Crypto Candles
190
- # Get candlestick data for crypto symbols.
191
- # @param symbol Use symbol returned in &lt;code&gt;/crypto/symbol&lt;/code&gt; endpoint for this field.
192
- # @param resolution 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.
193
- # @param from UNIX timestamp. Interval initial value.
194
- # @param to UNIX timestamp. Interval end value.
195
- # @param [Hash] opts the optional parameters
196
- # @return [CryptoCandles]
197
- describe 'crypto_candles test' do
198
- it 'should work' do
199
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
200
- end
201
- end
202
-
203
- # unit tests for crypto_exchanges
204
- # Crypto Exchanges
205
- # List supported crypto exchanges
206
- # @param [Hash] opts the optional parameters
207
- # @return [Array<String>]
208
- describe 'crypto_exchanges test' do
209
- it 'should work' do
210
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
211
- end
212
- end
213
-
214
- # unit tests for crypto_symbols
215
- # Crypto Symbol
216
- # List supported crypto symbols by exchange
217
- # @param exchange Exchange you want to get the list of symbols from.
218
- # @param [Hash] opts the optional parameters
219
- # @return [Array<CryptoSymbol>]
220
- describe 'crypto_symbols test' do
221
- it 'should work' do
222
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
223
- end
224
- end
225
-
226
- # unit tests for earnings_calendar
227
- # Earnings Calendar
228
- # Get historical and coming earnings release dating back to 2003. You can setup &lt;a href&#x3D;\&quot;#webhook\&quot;&gt;webhook&lt;/a&gt; to receive real-time earnings update.
229
- # @param [Hash] opts the optional parameters
230
- # @option opts [Date] :from From date: 2020-03-15.
231
- # @option opts [Date] :to To date: 2020-03-16.
232
- # @option opts [String] :symbol Filter by symbol: AAPL.
233
- # @option opts [Boolean] :international Set to &lt;code&gt;true&lt;/code&gt; to include international markets. Default value is &lt;code&gt;false&lt;/code&gt;
234
- # @return [EarningsCalendar]
235
- describe 'earnings_calendar test' do
236
- it 'should work' do
237
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
238
- end
239
- end
240
-
241
- # unit tests for economic_code
242
- # Economic Code
243
- # List codes of supported economic data.
244
- # @param [Hash] opts the optional parameters
245
- # @return [Array<EconomicCode>]
246
- describe 'economic_code test' do
247
- it 'should work' do
248
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
249
- end
250
- end
251
-
252
- # unit tests for economic_data
253
- # Economic Data
254
- # Get economic data.
255
- # @param code Economic code.
256
- # @param [Hash] opts the optional parameters
257
- # @return [EconomicData]
258
- describe 'economic_data test' do
259
- it 'should work' do
260
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
261
- end
262
- end
263
-
264
- # unit tests for etfs_country_exposure
265
- # ETFs Country Exposure
266
- # Get ETF country exposure data.
267
- # @param symbol ETF symbol.
268
- # @param [Hash] opts the optional parameters
269
- # @return [ETFsCountryExposure]
270
- describe 'etfs_country_exposure test' do
271
- it 'should work' do
272
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
273
- end
274
- end
275
-
276
- # unit tests for etfs_holdings
277
- # ETFs Holdings
278
- # Get current ETF holdings.
279
- # @param symbol ETF symbol.
280
- # @param [Hash] opts the optional parameters
281
- # @return [ETFsHoldings]
282
- describe 'etfs_holdings test' do
283
- it 'should work' do
284
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
285
- end
286
- end
287
-
288
- # unit tests for etfs_industry_exposure
289
- # ETFs Industry Exposure
290
- # Get ETF industry exposure data.
291
- # @param symbol ETF symbol.
292
- # @param [Hash] opts the optional parameters
293
- # @return [ETFsIndustryExposure]
294
- describe 'etfs_industry_exposure test' do
295
- it 'should work' do
296
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
297
- end
298
- end
299
-
300
- # unit tests for etfs_profile
301
- # ETFs Profile
302
- # Get ETF profile information. Currently support all US ETFs.
303
- # @param symbol ETF symbol.
304
- # @param [Hash] opts the optional parameters
305
- # @return [ETFsProfile]
306
- describe 'etfs_profile test' do
307
- it 'should work' do
308
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
309
- end
310
- end
311
-
312
- # unit tests for filings
313
- # Filings
314
- # List company&#39;s filing. Limit to 250 documents at a time. This data is available for bulk download on &lt;a href&#x3D;\&quot;https://www.kaggle.com/finnhub/sec-filings\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Kaggle SEC Filings database&lt;/a&gt;.
315
- # @param [Hash] opts the optional parameters
316
- # @option opts [String] :symbol Symbol. Leave &lt;code&gt;symbol&lt;/code&gt;,&lt;code&gt;cik&lt;/code&gt; and &lt;code&gt;accessNumber&lt;/code&gt; empty to list latest filings.
317
- # @option opts [String] :cik CIK.
318
- # @option opts [String] :access_number Access number of a specific report you want to retrieve data from.
319
- # @option opts [String] :form Filter by form. You can use this value &lt;code&gt;NT 10-K&lt;/code&gt; to find non-timely filings for a company.
320
- # @option opts [Date] :from From date: 2020-03-15.
321
- # @option opts [Date] :to To date: 2020-03-16.
322
- # @return [Array<Filing>]
323
- describe 'filings test' do
324
- it 'should work' do
325
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
326
- end
327
- end
328
-
329
- # unit tests for financials
330
- # Financial Statements
331
- # Get standardized balance sheet, income statement and cash flow for global companies going back 30+ years.
332
- # @param symbol Symbol of the company: AAPL.
333
- # @param statement Statement can take 1 of these values &lt;code&gt;bs, ic, cf&lt;/code&gt; for Balance Sheet, Income Statement, Cash Flow respectively.
334
- # @param freq Frequency can take 1 of these values &lt;code&gt;annual, quarterly, ttm, ytd&lt;/code&gt;. TTM (Trailing Twelve Months) option is available for Income Statement and Cash Flow. YTD (Year To Date) option is only available for Cash Flow.
335
- # @param [Hash] opts the optional parameters
336
- # @return [FinancialStatements]
337
- describe 'financials test' do
338
- it 'should work' do
339
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
340
- end
341
- end
342
-
343
- # unit tests for financials_reported
344
- # Financials As Reported
345
- # Get financials as reported. This data is available for bulk download on &lt;a href&#x3D;\&quot;https://www.kaggle.com/finnhub/reported-financials\&quot; target&#x3D;\&quot;_blank\&quot;&gt;Kaggle SEC Financials database&lt;/a&gt;.
346
- # @param [Hash] opts the optional parameters
347
- # @option opts [String] :symbol Symbol.
348
- # @option opts [String] :cik CIK.
349
- # @option opts [String] :access_number Access number of a specific report you want to retrieve financials from.
350
- # @option opts [String] :freq Frequency. Can be either &lt;code&gt;annual&lt;/code&gt; or &lt;code&gt;quarterly&lt;/code&gt;. Default to &lt;code&gt;annual&lt;/code&gt;.
351
- # @return [FinancialsAsReported]
352
- describe 'financials_reported test' do
353
- it 'should work' do
354
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
355
- end
356
- end
357
-
358
- # unit tests for forex_candles
359
- # Forex Candles
360
- # Get candlestick data for forex symbols.
361
- # @param symbol Use symbol returned in &lt;code&gt;/forex/symbol&lt;/code&gt; endpoint for this field.
362
- # @param resolution 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.
363
- # @param from UNIX timestamp. Interval initial value.
364
- # @param to UNIX timestamp. Interval end value.
365
- # @param [Hash] opts the optional parameters
366
- # @return [ForexCandles]
367
- describe 'forex_candles test' do
368
- it 'should work' do
369
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
370
- end
371
- end
372
-
373
- # unit tests for forex_exchanges
374
- # Forex Exchanges
375
- # List supported forex exchanges
376
- # @param [Hash] opts the optional parameters
377
- # @return [Array<String>]
378
- describe 'forex_exchanges test' do
379
- it 'should work' do
380
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
381
- end
382
- end
383
-
384
- # unit tests for forex_rates
385
- # Forex rates
386
- # Get rates for all forex pairs. Ideal for currency conversion
387
- # @param [Hash] opts the optional parameters
388
- # @option opts [String] :base Base currency. Default to EUR.
389
- # @return [Forexrates]
390
- describe 'forex_rates test' do
391
- it 'should work' do
392
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
393
- end
394
- end
395
-
396
- # unit tests for forex_symbols
397
- # Forex Symbol
398
- # List supported forex symbols.
399
- # @param exchange Exchange you want to get the list of symbols from.
400
- # @param [Hash] opts the optional parameters
401
- # @return [Array<ForexSymbol>]
402
- describe 'forex_symbols test' do
403
- it 'should work' do
404
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
405
- end
406
- end
407
-
408
- # unit tests for fund_ownership
409
- # Fund Ownership
410
- # Get a full list fund and institutional investors of a company in descending order of the number of shares held.
411
- # @param symbol Symbol of the company: AAPL.
412
- # @param [Hash] opts the optional parameters
413
- # @option opts [Integer] :limit Limit number of results. Leave empty to get the full list.
414
- # @return [FundOwnership]
415
- describe 'fund_ownership test' do
416
- it 'should work' do
417
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
418
- end
419
- end
420
-
421
- # unit tests for general_news
422
- # General News
423
- # Get latest market news.
424
- # @param category This parameter can be 1 of the following values &lt;code&gt;general, forex, crypto, merger&lt;/code&gt;.
425
- # @param [Hash] opts the optional parameters
426
- # @option opts [String] :min_id Use this field to get only news after this ID. Default to 0
427
- # @return [Array<News>]
428
- describe 'general_news test' do
429
- it 'should work' do
430
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
431
- end
432
- end
433
-
434
- # unit tests for indices_constituents
435
- # Indices Constituents
436
- # Get a list of index&#39;s constituents. Currently support &lt;code&gt;^GSPC (S&amp;P 500)&lt;/code&gt;, &lt;code&gt;^NDX (Nasdaq 100)&lt;/code&gt;, &lt;code&gt;^DJI (Dow Jones)&lt;/code&gt;
437
- # @param symbol symbol
438
- # @param [Hash] opts the optional parameters
439
- # @return [IndicesConstituents]
440
- describe 'indices_constituents test' do
441
- it 'should work' do
442
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
443
- end
444
- end
445
-
446
- # unit tests for indices_historical_constituents
447
- # Indices Historical Constituents
448
- # Get full history of index&#39;s constituents including symbols and dates of joining and leaving the Index. Currently support &lt;code&gt;^GSPC (S&amp;P 500)&lt;/code&gt;, &lt;code&gt;^NDX (Nasdaq 100)&lt;/code&gt;, &lt;code&gt;^DJI (Dow Jones)&lt;/code&gt;
449
- # @param symbol symbol
450
- # @param [Hash] opts the optional parameters
451
- # @return [IndicesHistoricalConstituents]
452
- describe 'indices_historical_constituents test' do
453
- it 'should work' do
454
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
455
- end
456
- end
457
-
458
- # unit tests for investors_ownership
459
- # Investors Ownership
460
- # Get a full list of shareholders/investors of a company in descending order of the number of shares held.
461
- # @param symbol Symbol of the company: AAPL.
462
- # @param [Hash] opts the optional parameters
463
- # @option opts [Integer] :limit Limit number of results. Leave empty to get the full list.
464
- # @return [InvestorsOwnership]
465
- describe 'investors_ownership test' do
466
- it 'should work' do
467
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
468
- end
469
- end
470
-
471
- # unit tests for ipo_calendar
472
- # IPO Calendar
473
- # Get recent and coming IPO.
474
- # @param from From date: 2020-03-15.
475
- # @param to To date: 2020-03-16.
476
- # @param [Hash] opts the optional parameters
477
- # @return [IPOCalendar]
478
- describe 'ipo_calendar test' do
479
- it 'should work' do
480
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
481
- end
482
- end
483
-
484
- # unit tests for major_developments
485
- # Major Developments
486
- # List latest major developments of a company going back 20 years with 12M+ data points. This data can be used to highlight the most significant events.
487
- # @param symbol Company symbol.
488
- # @param [Hash] opts the optional parameters
489
- # @option opts [Date] :from From time: 2020-01-01.
490
- # @option opts [Date] :to To time: 2020-01-05.
491
- # @return [MajorDevelopments]
492
- describe 'major_developments test' do
493
- it 'should work' do
494
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
495
- end
496
- end
497
-
498
- # unit tests for news_sentiment
499
- # News Sentiment
500
- # Get company&#39;s news sentiment and statistics. This endpoint is only available for US companies.
501
- # @param symbol Company symbol.
502
- # @param [Hash] opts the optional parameters
503
- # @return [NewsSentiment]
504
- describe 'news_sentiment test' do
505
- it 'should work' do
506
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
507
- end
508
- end
509
-
510
- # unit tests for pattern_recognition
511
- # Pattern Recognition
512
- # Run pattern recognition algorithm on a symbol. Support double top/bottom, triple top/bottom, head and shoulders, triangle, wedge, channel, flag, and candlestick patterns.
513
- # @param symbol Symbol
514
- # @param resolution 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.
515
- # @param [Hash] opts the optional parameters
516
- # @return [PatternRecognition]
517
- describe 'pattern_recognition test' do
518
- it 'should work' do
519
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
520
- end
521
- end
522
-
523
- # unit tests for price_target
524
- # Price Target
525
- # Get latest price target consensus.
526
- # @param symbol Symbol of the company: AAPL.
527
- # @param [Hash] opts the optional parameters
528
- # @return [PriceTarget]
529
- describe 'price_target test' do
530
- it 'should work' do
531
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
532
- end
533
- end
534
-
535
- # unit tests for quote
536
- # Quote
537
- # &lt;p&gt;Get real-time quote data for US stocks. Constant polling is not recommended. Use websocket if you need real-time update.&lt;/p&gt;&lt;p&gt;Real-time stock prices for international markets are supported for Enterprise clients via our partner&#39;s feed. &lt;a href&#x3D;\&quot;mailto:support@finnhub.io\&quot;&gt;Contact Us&lt;/a&gt; to learn more.&lt;/p&gt;
538
- # @param symbol Symbol
539
- # @param [Hash] opts the optional parameters
540
- # @return [Quote]
541
- describe 'quote test' do
542
- it 'should work' do
543
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
544
- end
545
- end
546
-
547
- # unit tests for recommendation_trends
548
- # Recommendation Trends
549
- # Get latest analyst recommendation trends for a company.
550
- # @param symbol Symbol of the company: AAPL.
551
- # @param [Hash] opts the optional parameters
552
- # @return [Array<RecommendationTrend>]
553
- describe 'recommendation_trends test' do
554
- it 'should work' do
555
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
556
- end
557
- end
558
-
559
- # unit tests for similarity_index
560
- # Similarity Index
561
- # &lt;p&gt;Calculate the textual difference between a company&#39;s 10-K / 10-Q reports and the same type of report in the previous year using Cosine Similarity. For example, this endpoint compares 2019&#39;s 10-K with 2018&#39;s 10-K. Companies breaking from its routines in disclosure of financial condition and risk analysis section can signal a significant change in the company&#39;s stock price in the upcoming 4 quarters.&lt;/p&gt;
562
- # @param [Hash] opts the optional parameters
563
- # @option opts [String] :symbol Symbol. Required if cik is empty
564
- # @option opts [String] :cik CIK. Required if symbol is empty
565
- # @option opts [String] :freq &lt;code&gt;annual&lt;/code&gt; or &lt;code&gt;quarterly&lt;/code&gt;. Default to &lt;code&gt;annual&lt;/code&gt;
566
- # @return [SimilarityIndex]
567
- describe 'similarity_index test' do
568
- it 'should work' do
569
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
570
- end
571
- end
572
-
573
- # unit tests for stock_bidask
574
- # Last Bid-Ask
575
- # Get last bid/ask data for US stocks.
576
- # @param symbol Symbol.
577
- # @param [Hash] opts the optional parameters
578
- # @return [LastBidAsk]
579
- describe 'stock_bidask test' do
580
- it 'should work' do
581
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
582
- end
583
- end
584
-
585
- # unit tests for stock_candles
586
- # Stock Candles
587
- # &lt;p&gt;Get candlestick data for stocks going back 25 years for US stocks.&lt;/p&gt;&lt;p&gt;Real-time stock prices for international markets are supported for Enterprise clients via our partner&#39;s feed. &lt;a href&#x3D;\&quot;mailto:support@finnhub.io\&quot;&gt;Contact Us&lt;/a&gt; to learn more.&lt;/p&gt;
588
- # @param symbol Symbol.
589
- # @param resolution 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.
590
- # @param from UNIX timestamp. Interval initial value.
591
- # @param to UNIX timestamp. Interval end value.
592
- # @param [Hash] opts the optional parameters
593
- # @option opts [String] :adjusted By default, &lt;code&gt;adjusted&#x3D;false&lt;/code&gt;. Use &lt;code&gt;true&lt;/code&gt; to get adjusted data.
594
- # @return [StockCandles]
595
- describe 'stock_candles test' do
596
- it 'should work' do
597
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
598
- end
599
- end
600
-
601
- # unit tests for stock_dividends
602
- # Dividends
603
- # Get dividends data for common stocks going back 30 years.
604
- # @param symbol Symbol.
605
- # @param from YYYY-MM-DD.
606
- # @param to YYYY-MM-DD.
607
- # @param [Hash] opts the optional parameters
608
- # @return [Array<Dividends>]
609
- describe 'stock_dividends test' do
610
- it 'should work' do
611
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
612
- end
613
- end
614
-
615
- # unit tests for stock_splits
616
- # Splits
617
- # Get splits data for stocks.
618
- # @param symbol Symbol.
619
- # @param from YYYY-MM-DD.
620
- # @param to YYYY-MM-DD.
621
- # @param [Hash] opts the optional parameters
622
- # @return [Array<Split>]
623
- describe 'stock_splits test' do
624
- it 'should work' do
625
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
626
- end
627
- end
628
-
629
- # unit tests for stock_symbols
630
- # Stock Symbol
631
- # List supported stocks. A list of supported CFD Indices can be found &lt;a href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1BAbIXBgl405fj0oHeEyRFEu8mW4QD1PhvtaBATLoR14/edit?usp&#x3D;sharing\&quot; target&#x3D;\&quot;_blank\&quot;&gt;here&lt;/a&gt;.
632
- # @param exchange Exchange you want to get the list of symbols from. List of exchanges with fundamental data can be found &lt;a href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1I3pBxjfXB056-g_JYf_6o3Rns3BV2kMGG1nCatb91ls/edit?usp&#x3D;sharing\&quot; target&#x3D;\&quot;_blank\&quot;&gt;here&lt;/a&gt;.
633
- # @param [Hash] opts the optional parameters
634
- # @return [Array<Stock>]
635
- describe 'stock_symbols test' do
636
- it 'should work' do
637
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
638
- end
639
- end
640
-
641
- # unit tests for stock_tick
642
- # Tick Data
643
- # &lt;p&gt;Get historical tick data for US stocks from all 13 exchanges. You can send the request directly to our tick server at &lt;a href&#x3D;\&quot;https://tick.finnhub.io/\&quot;&gt;https://tick.finnhub.io/&lt;/a&gt; with the same path and parameters or get redirected there if you call our main server. Data is updated at the end of each trading day.&lt;/p&gt;&lt;p&gt;Tick data from 1985 is available for Enterprise clients. &lt;a href&#x3D;\&quot;mailto:support@finnhub.io\&quot;&gt;Contact us&lt;/a&gt; to learn more.&lt;/p&gt;
644
- # @param symbol Symbol.
645
- # @param date Date: 2020-04-02.
646
- # @param limit Limit number of ticks returned. Maximum value: &lt;code&gt;25000&lt;/code&gt;
647
- # @param skip Number of ticks to skip. Use this parameter to loop through the entire data.
648
- # @param [Hash] opts the optional parameters
649
- # @return [TickData]
650
- describe 'stock_tick test' do
651
- it 'should work' do
652
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
653
- end
654
- end
655
-
656
- # unit tests for support_resistance
657
- # Support/Resistance
658
- # Get support and resistance levels for a symbol.
659
- # @param symbol Symbol
660
- # @param resolution 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.
661
- # @param [Hash] opts the optional parameters
662
- # @return [SupportResistance]
663
- describe 'support_resistance test' do
664
- it 'should work' do
665
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
666
- end
667
- end
668
-
669
- # unit tests for technical_indicator
670
- # Technical Indicators
671
- # Return technical indicator with price data. List of supported indicators can be found &lt;a href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp&#x3D;sharing\&quot; target&#x3D;\&quot;_blank\&quot;&gt;here&lt;/a&gt;.
672
- # @param symbol symbol
673
- # @param resolution 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.
674
- # @param from UNIX timestamp. Interval initial value.
675
- # @param to UNIX timestamp. Interval end value.
676
- # @param indicator Indicator name. Full list can be found &lt;a href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp&#x3D;sharing\&quot; target&#x3D;\&quot;_blank\&quot;&gt;here&lt;/a&gt;.
677
- # @param [Hash] opts the optional parameters
678
- # @option opts [Object] :indicator_fields Check out &lt;a href&#x3D;\&quot;https://docs.google.com/spreadsheets/d/1ylUvKHVYN2E87WdwIza8ROaCpd48ggEl1k5i5SgA29k/edit?usp&#x3D;sharing\&quot; target&#x3D;\&quot;_blank\&quot;&gt;this page&lt;/a&gt; to see which indicators and params are supported.
679
- # @return [Object]
680
- describe 'technical_indicator test' do
681
- it 'should work' do
682
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
683
- end
684
- end
685
-
686
- # unit tests for transcripts
687
- # Earnings Call Transcripts
688
- # &lt;p&gt;Get earnings call transcripts, audio and participants&#39; list. This endpoint is only available for US companies. &lt;p&gt;17+ years of data is available with 170,000+ audio which add up to 6TB in size.&lt;/p&gt;
689
- # @param id Transcript&#39;s id obtained with &lt;a href&#x3D;\&quot;#transcripts-list\&quot;&gt;Transcripts List endpoint&lt;/a&gt;.
690
- # @param [Hash] opts the optional parameters
691
- # @return [EarningsCallTranscripts]
692
- describe 'transcripts test' do
693
- it 'should work' do
694
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
695
- end
696
- end
697
-
698
- # unit tests for transcripts_list
699
- # Earnings Call Transcripts List
700
- # List earnings call transcripts&#39; metadata. This endpoint is only available for US companies.
701
- # @param symbol Company symbol: AAPL. Leave empty to list the latest transcripts
702
- # @param [Hash] opts the optional parameters
703
- # @return [EarningsCallTranscriptsList]
704
- describe 'transcripts_list test' do
705
- it 'should work' do
706
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
707
- end
708
- end
709
-
710
- # unit tests for upgrade_downgrade
711
- # Stock Upgrade/Downgrade
712
- # Get latest stock upgrade and downgrade.
713
- # @param [Hash] opts the optional parameters
714
- # @option opts [String] :symbol Symbol of the company: AAPL. If left blank, the API will return latest stock upgrades/downgrades.
715
- # @option opts [Date] :from From date: 2000-03-15.
716
- # @option opts [Date] :to To date: 2020-03-16.
717
- # @return [Array<UpgradeDowngrade>]
718
- describe 'upgrade_downgrade test' do
719
- it 'should work' do
720
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
721
- end
722
- end
723
-
724
- end