finnhub_ruby 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +201 -0
  4. data/README.md +164 -0
  5. data/Rakefile +10 -0
  6. data/docs/AggregateIndicators.md +19 -0
  7. data/docs/BasicFinancials.md +21 -0
  8. data/docs/Company.md +29 -0
  9. data/docs/CompanyExecutive.md +19 -0
  10. data/docs/CompanyNewsStatistics.md +21 -0
  11. data/docs/CompanyProfile.md +71 -0
  12. data/docs/CompanyProfile2.md +39 -0
  13. data/docs/CountryMetadata.md +27 -0
  14. data/docs/CovidInfo.md +23 -0
  15. data/docs/CryptoCandles.md +29 -0
  16. data/docs/CryptoSymbol.md +21 -0
  17. data/docs/DefaultApi.md +2662 -0
  18. data/docs/Development.md +23 -0
  19. data/docs/Dividends.md +31 -0
  20. data/docs/EarningEstimate.md +25 -0
  21. data/docs/EarningRelease.md +33 -0
  22. data/docs/EarningResult.md +23 -0
  23. data/docs/EarningsCalendar.md +17 -0
  24. data/docs/EarningsCallTranscripts.md +33 -0
  25. data/docs/EarningsCallTranscriptsList.md +19 -0
  26. data/docs/EarningsEstimates.md +21 -0
  27. data/docs/EconomicCalendar.md +17 -0
  28. data/docs/EconomicCode.md +23 -0
  29. data/docs/EconomicData.md +19 -0
  30. data/docs/EconomicEvent.md +31 -0
  31. data/docs/Estimate.md +25 -0
  32. data/docs/Filing.md +31 -0
  33. data/docs/FinancialStatements.md +19 -0
  34. data/docs/FinancialsAsReported.md +21 -0
  35. data/docs/ForexCandles.md +29 -0
  36. data/docs/ForexSymbol.md +21 -0
  37. data/docs/Forexrates.md +19 -0
  38. data/docs/FundOwnership.md +19 -0
  39. data/docs/IPOCalendar.md +17 -0
  40. data/docs/IPOEvent.md +31 -0
  41. data/docs/Indicator.md +21 -0
  42. data/docs/Investor.md +23 -0
  43. data/docs/InvestorsOwnership.md +19 -0
  44. data/docs/LastBidAsk.md +25 -0
  45. data/docs/MajorDevelopments.md +19 -0
  46. data/docs/News.md +33 -0
  47. data/docs/NewsSentiment.md +27 -0
  48. data/docs/PatternRecognition.md +17 -0
  49. data/docs/PriceTarget.md +27 -0
  50. data/docs/Quote.md +25 -0
  51. data/docs/RecommendationTrend.md +29 -0
  52. data/docs/Report.md +37 -0
  53. data/docs/RevenueEstimates.md +21 -0
  54. data/docs/Sentiment.md +19 -0
  55. data/docs/Split.md +23 -0
  56. data/docs/Stock.md +21 -0
  57. data/docs/StockCandles.md +29 -0
  58. data/docs/StockTranscripts.md +25 -0
  59. data/docs/SupportResistance.md +17 -0
  60. data/docs/TechnicalAnalysis.md +19 -0
  61. data/docs/TickData.md +31 -0
  62. data/docs/TranscriptContent.md +19 -0
  63. data/docs/TranscriptParticipant.md +19 -0
  64. data/docs/Trend.md +17 -0
  65. data/docs/UpgradeDowngrade.md +27 -0
  66. data/finnhub_ruby-0.0.1.gem +0 -0
  67. data/finnhub_ruby-0.0.2.gem +0 -0
  68. data/finnhub_ruby.gemspec +39 -0
  69. data/git_push.sh +58 -0
  70. data/lib/finnhub_ruby.rb +99 -0
  71. data/lib/finnhub_ruby/api/default_api.rb +3142 -0
  72. data/lib/finnhub_ruby/api_client.rb +389 -0
  73. data/lib/finnhub_ruby/api_error.rb +57 -0
  74. data/lib/finnhub_ruby/configuration.rb +248 -0
  75. data/lib/finnhub_ruby/models/aggregate_indicators.rb +215 -0
  76. data/lib/finnhub_ruby/models/basic_financials.rb +226 -0
  77. data/lib/finnhub_ruby/models/company.rb +267 -0
  78. data/lib/finnhub_ruby/models/company_executive.rb +219 -0
  79. data/lib/finnhub_ruby/models/company_news_statistics.rb +227 -0
  80. data/lib/finnhub_ruby/models/company_profile.rb +477 -0
  81. data/lib/finnhub_ruby/models/company_profile2.rb +317 -0
  82. data/lib/finnhub_ruby/models/country_metadata.rb +257 -0
  83. data/lib/finnhub_ruby/models/covid_info.rb +237 -0
  84. data/lib/finnhub_ruby/models/crypto_candles.rb +279 -0
  85. data/lib/finnhub_ruby/models/crypto_symbol.rb +227 -0
  86. data/lib/finnhub_ruby/models/development.rb +237 -0
  87. data/lib/finnhub_ruby/models/dividends.rb +277 -0
  88. data/lib/finnhub_ruby/models/earning_estimate.rb +247 -0
  89. data/lib/finnhub_ruby/models/earning_release.rb +287 -0
  90. data/lib/finnhub_ruby/models/earning_result.rb +237 -0
  91. data/lib/finnhub_ruby/models/earnings_calendar.rb +209 -0
  92. data/lib/finnhub_ruby/models/earnings_call_transcripts.rb +291 -0
  93. data/lib/finnhub_ruby/models/earnings_call_transcripts_list.rb +219 -0
  94. data/lib/finnhub_ruby/models/earnings_estimates.rb +229 -0
  95. data/lib/finnhub_ruby/models/economic_calendar.rb +209 -0
  96. data/lib/finnhub_ruby/models/economic_code.rb +237 -0
  97. data/lib/finnhub_ruby/models/economic_data.rb +219 -0
  98. data/lib/finnhub_ruby/models/economic_event.rb +277 -0
  99. data/lib/finnhub_ruby/models/estimate.rb +247 -0
  100. data/lib/finnhub_ruby/models/filing.rb +277 -0
  101. data/lib/finnhub_ruby/models/financial_statements.rb +219 -0
  102. data/lib/finnhub_ruby/models/financials_as_reported.rb +229 -0
  103. data/lib/finnhub_ruby/models/forex_candles.rb +279 -0
  104. data/lib/finnhub_ruby/models/forex_symbol.rb +227 -0
  105. data/lib/finnhub_ruby/models/forexrates.rb +216 -0
  106. data/lib/finnhub_ruby/models/fund_ownership.rb +219 -0
  107. data/lib/finnhub_ruby/models/indicator.rb +227 -0
  108. data/lib/finnhub_ruby/models/investor.rb +237 -0
  109. data/lib/finnhub_ruby/models/investors_ownership.rb +219 -0
  110. data/lib/finnhub_ruby/models/ipo_calendar.rb +209 -0
  111. data/lib/finnhub_ruby/models/ipo_event.rb +277 -0
  112. data/lib/finnhub_ruby/models/last_bid_ask.rb +247 -0
  113. data/lib/finnhub_ruby/models/major_developments.rb +219 -0
  114. data/lib/finnhub_ruby/models/news.rb +287 -0
  115. data/lib/finnhub_ruby/models/news_sentiment.rb +255 -0
  116. data/lib/finnhub_ruby/models/pattern_recognition.rb +209 -0
  117. data/lib/finnhub_ruby/models/price_target.rb +257 -0
  118. data/lib/finnhub_ruby/models/quote.rb +247 -0
  119. data/lib/finnhub_ruby/models/recommendation_trend.rb +267 -0
  120. data/lib/finnhub_ruby/models/report.rb +306 -0
  121. data/lib/finnhub_ruby/models/revenue_estimates.rb +229 -0
  122. data/lib/finnhub_ruby/models/sentiment.rb +217 -0
  123. data/lib/finnhub_ruby/models/split.rb +237 -0
  124. data/lib/finnhub_ruby/models/stock.rb +227 -0
  125. data/lib/finnhub_ruby/models/stock_candles.rb +279 -0
  126. data/lib/finnhub_ruby/models/stock_transcripts.rb +247 -0
  127. data/lib/finnhub_ruby/models/support_resistance.rb +209 -0
  128. data/lib/finnhub_ruby/models/technical_analysis.rb +216 -0
  129. data/lib/finnhub_ruby/models/tick_data.rb +285 -0
  130. data/lib/finnhub_ruby/models/transcript_content.rb +219 -0
  131. data/lib/finnhub_ruby/models/transcript_participant.rb +217 -0
  132. data/lib/finnhub_ruby/models/trend.rb +207 -0
  133. data/lib/finnhub_ruby/models/upgrade_downgrade.rb +257 -0
  134. data/lib/finnhub_ruby/version.rb +15 -0
  135. data/release.sh +2 -0
  136. data/spec/api/default_api_spec.rb +638 -0
  137. data/spec/api_client_spec.rb +226 -0
  138. data/spec/configuration_spec.rb +42 -0
  139. data/spec/models/aggregate_indicators_spec.rb +47 -0
  140. data/spec/models/basic_financials_spec.rb +53 -0
  141. data/spec/models/company_executive_spec.rb +47 -0
  142. data/spec/models/company_news_statistics_spec.rb +53 -0
  143. data/spec/models/company_profile2_spec.rb +107 -0
  144. data/spec/models/company_profile_spec.rb +203 -0
  145. data/spec/models/company_spec.rb +77 -0
  146. data/spec/models/country_metadata_spec.rb +71 -0
  147. data/spec/models/covid_info_spec.rb +59 -0
  148. data/spec/models/crypto_candles_spec.rb +77 -0
  149. data/spec/models/crypto_symbol_spec.rb +53 -0
  150. data/spec/models/development_spec.rb +59 -0
  151. data/spec/models/dividends_spec.rb +83 -0
  152. data/spec/models/earning_estimate_spec.rb +65 -0
  153. data/spec/models/earning_release_spec.rb +89 -0
  154. data/spec/models/earning_result_spec.rb +59 -0
  155. data/spec/models/earnings_calendar_spec.rb +41 -0
  156. data/spec/models/earnings_call_transcripts_list_spec.rb +47 -0
  157. data/spec/models/earnings_call_transcripts_spec.rb +89 -0
  158. data/spec/models/earnings_estimates_spec.rb +53 -0
  159. data/spec/models/economic_calendar_spec.rb +41 -0
  160. data/spec/models/economic_code_spec.rb +59 -0
  161. data/spec/models/economic_data_spec.rb +47 -0
  162. data/spec/models/economic_event_spec.rb +83 -0
  163. data/spec/models/estimate_spec.rb +65 -0
  164. data/spec/models/filing_spec.rb +83 -0
  165. data/spec/models/financial_statements_spec.rb +47 -0
  166. data/spec/models/financials_as_reported_spec.rb +53 -0
  167. data/spec/models/forex_candles_spec.rb +77 -0
  168. data/spec/models/forex_symbol_spec.rb +53 -0
  169. data/spec/models/forexrates_spec.rb +47 -0
  170. data/spec/models/fund_ownership_spec.rb +47 -0
  171. data/spec/models/indicator_spec.rb +53 -0
  172. data/spec/models/investor_spec.rb +59 -0
  173. data/spec/models/investors_ownership_spec.rb +47 -0
  174. data/spec/models/ipo_calendar_spec.rb +41 -0
  175. data/spec/models/ipo_event_spec.rb +83 -0
  176. data/spec/models/last_bid_ask_spec.rb +65 -0
  177. data/spec/models/major_developments_spec.rb +47 -0
  178. data/spec/models/news_sentiment_spec.rb +71 -0
  179. data/spec/models/news_spec.rb +89 -0
  180. data/spec/models/pattern_recognition_spec.rb +41 -0
  181. data/spec/models/price_target_spec.rb +71 -0
  182. data/spec/models/quote_spec.rb +65 -0
  183. data/spec/models/recommendation_trend_spec.rb +77 -0
  184. data/spec/models/report_spec.rb +101 -0
  185. data/spec/models/revenue_estimates_spec.rb +53 -0
  186. data/spec/models/sentiment_spec.rb +47 -0
  187. data/spec/models/split_spec.rb +59 -0
  188. data/spec/models/stock_candles_spec.rb +77 -0
  189. data/spec/models/stock_spec.rb +53 -0
  190. data/spec/models/stock_transcripts_spec.rb +65 -0
  191. data/spec/models/support_resistance_spec.rb +41 -0
  192. data/spec/models/technical_analysis_spec.rb +47 -0
  193. data/spec/models/tick_data_spec.rb +83 -0
  194. data/spec/models/transcript_content_spec.rb +47 -0
  195. data/spec/models/transcript_participant_spec.rb +47 -0
  196. data/spec/models/trend_spec.rb +41 -0
  197. data/spec/models/upgrade_downgrade_spec.rb +71 -0
  198. data/spec/spec_helper.rb +111 -0
  199. data/test.rb +139 -0
  200. metadata +364 -0
@@ -0,0 +1,19 @@
1
+ # FinnhubRuby::Sentiment
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **bearish_percent** | **Integer** | | [optional]
8
+ **bullish_percent** | **Integer** | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'FinnhubRuby'
14
+
15
+ instance = FinnhubRuby::Sentiment.new(bearish_percent: null,
16
+ bullish_percent: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,23 @@
1
+ # FinnhubRuby::Split
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **symbol** | **String** | Symbol. | [optional]
8
+ **date** | **Date** | Split date. | [optional]
9
+ **from_factor** | **Float** | From factor. | [optional]
10
+ **to_factor** | **Float** | To factor. | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'FinnhubRuby'
16
+
17
+ instance = FinnhubRuby::Split.new(symbol: null,
18
+ date: null,
19
+ from_factor: null,
20
+ to_factor: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,21 @@
1
+ # FinnhubRuby::Stock
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **description** | **String** | Symbol description | [optional]
8
+ **display_symbol** | **String** | Display symbol name. | [optional]
9
+ **symbol** | **String** | Unique symbol used to identify this symbol used in <code>/stock/candle</code> endpoint. | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'FinnhubRuby'
15
+
16
+ instance = FinnhubRuby::Stock.new(description: null,
17
+ display_symbol: null,
18
+ symbol: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,29 @@
1
+ # FinnhubRuby::StockCandles
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **o** | **Array<Float>** | List of open prices for returned candles. | [optional]
8
+ **h** | **Array<Float>** | List of high prices for returned candles. | [optional]
9
+ **l** | **Array<Float>** | List of low prices for returned candles. | [optional]
10
+ **c** | **Array<Float>** | List of close prices for returned candles. | [optional]
11
+ **v** | **Array<Float>** | List of volume data for returned candles. | [optional]
12
+ **t** | **Array<Integer>** | List of timestamp for returned candles. | [optional]
13
+ **s** | **String** | Status of the response. This field can either be ok or no_data. | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'FinnhubRuby'
19
+
20
+ instance = FinnhubRuby::StockCandles.new(o: null,
21
+ h: null,
22
+ l: null,
23
+ c: null,
24
+ v: null,
25
+ t: null,
26
+ s: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,25 @@
1
+ # FinnhubRuby::StockTranscripts
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | Transcript's ID used to get the <a href=\"#transcripts\">full transcript</a>. | [optional]
8
+ **title** | **String** | Title. | [optional]
9
+ **time** | **DateTime** | Time of the event. | [optional]
10
+ **year** | **Integer** | Year of earnings result in the case of earnings call transcript. | [optional]
11
+ **quarter** | **Integer** | Quarter of earnings result in the case of earnings call transcript. | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'FinnhubRuby'
17
+
18
+ instance = FinnhubRuby::StockTranscripts.new(id: null,
19
+ title: null,
20
+ time: null,
21
+ year: null,
22
+ quarter: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,17 @@
1
+ # FinnhubRuby::SupportResistance
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **levels** | **Array<Float>** | Array of support and resistance levels. | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'FinnhubRuby'
13
+
14
+ instance = FinnhubRuby::SupportResistance.new(levels: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # FinnhubRuby::TechnicalAnalysis
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | [**Indicator**](Indicator.md) | | [optional]
8
+ **signal** | **String** | Aggregate Signal | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'FinnhubRuby'
14
+
15
+ instance = FinnhubRuby::TechnicalAnalysis.new(count: null,
16
+ signal: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,31 @@
1
+ # FinnhubRuby::TickData
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **s** | **String** | Symbol. | [optional]
8
+ **skip** | **Integer** | Number of ticks skipped. | [optional]
9
+ **count** | **Integer** | Number of ticks returned. If <code>count</code> < <code>limit</code>, all data for that date has been returned. | [optional]
10
+ **total** | **Integer** | Total number of ticks for that date. | [optional]
11
+ **v** | **Array<Float>** | List of volume data. | [optional]
12
+ **p** | **Array<Float>** | List of price data. | [optional]
13
+ **t** | **Array<Integer>** | List of timestamp in UNIX ms. | [optional]
14
+ **x** | **Array<String>** | List of venues/exchanges. | [optional]
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'FinnhubRuby'
20
+
21
+ instance = FinnhubRuby::TickData.new(s: null,
22
+ skip: null,
23
+ count: null,
24
+ total: null,
25
+ v: null,
26
+ p: null,
27
+ t: null,
28
+ x: null)
29
+ ```
30
+
31
+
@@ -0,0 +1,19 @@
1
+ # FinnhubRuby::TranscriptContent
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | Speaker's name | [optional]
8
+ **speech** | **Array<String>** | Speaker's speech | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'FinnhubRuby'
14
+
15
+ instance = FinnhubRuby::TranscriptContent.new(name: null,
16
+ speech: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # FinnhubRuby::TranscriptParticipant
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | Participant's name | [optional]
8
+ **description** | **String** | Participant's description | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'FinnhubRuby'
14
+
15
+ instance = FinnhubRuby::TranscriptParticipant.new(name: null,
16
+ description: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # FinnhubRuby::Trend
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **adx** | **Float** | ADX reading | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'FinnhubRuby'
13
+
14
+ instance = FinnhubRuby::Trend.new(adx: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,27 @@
1
+ # FinnhubRuby::UpgradeDowngrade
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **symbol** | **String** | Company symbol. | [optional]
8
+ **grade_time** | **Integer** | Upgrade/downgrade time in UNIX timestamp. | [optional]
9
+ **from_grade** | **String** | From grade. | [optional]
10
+ **to_grade** | **String** | To grade. | [optional]
11
+ **company** | **String** | Company/analyst who did the upgrade/downgrade. | [optional]
12
+ **action** | **String** | Action can take any of the following values: <code>up(upgrade), down(downgrade), main(maintains), init(initiate), reit(reiterate)</code>. | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'FinnhubRuby'
18
+
19
+ instance = FinnhubRuby::UpgradeDowngrade.new(symbol: null,
20
+ grade_time: null,
21
+ from_grade: null,
22
+ to_grade: null,
23
+ company: null,
24
+ action: null)
25
+ ```
26
+
27
+
Binary file
Binary file
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Finnhub API
5
+
6
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 4.3.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "finnhub_ruby/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "finnhub_ruby"
20
+ s.version = FinnhubRuby::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = [""]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Finnhub API Ruby Gem"
26
+ s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,58 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=`git remote`
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
58
+
@@ -0,0 +1,99 @@
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
+ # Common files
14
+ require 'finnhub_ruby/api_client'
15
+ require 'finnhub_ruby/api_error'
16
+ require 'finnhub_ruby/version'
17
+ require 'finnhub_ruby/configuration'
18
+
19
+ # Models
20
+ require 'finnhub_ruby/models/aggregate_indicators'
21
+ require 'finnhub_ruby/models/basic_financials'
22
+ require 'finnhub_ruby/models/company'
23
+ require 'finnhub_ruby/models/company_executive'
24
+ require 'finnhub_ruby/models/company_news_statistics'
25
+ require 'finnhub_ruby/models/company_profile'
26
+ require 'finnhub_ruby/models/company_profile2'
27
+ require 'finnhub_ruby/models/country_metadata'
28
+ require 'finnhub_ruby/models/covid_info'
29
+ require 'finnhub_ruby/models/crypto_candles'
30
+ require 'finnhub_ruby/models/crypto_symbol'
31
+ require 'finnhub_ruby/models/development'
32
+ require 'finnhub_ruby/models/dividends'
33
+ require 'finnhub_ruby/models/earning_estimate'
34
+ require 'finnhub_ruby/models/earning_release'
35
+ require 'finnhub_ruby/models/earning_result'
36
+ require 'finnhub_ruby/models/earnings_calendar'
37
+ require 'finnhub_ruby/models/earnings_call_transcripts'
38
+ require 'finnhub_ruby/models/earnings_call_transcripts_list'
39
+ require 'finnhub_ruby/models/earnings_estimates'
40
+ require 'finnhub_ruby/models/economic_calendar'
41
+ require 'finnhub_ruby/models/economic_code'
42
+ require 'finnhub_ruby/models/economic_data'
43
+ require 'finnhub_ruby/models/economic_event'
44
+ require 'finnhub_ruby/models/estimate'
45
+ require 'finnhub_ruby/models/filing'
46
+ require 'finnhub_ruby/models/financial_statements'
47
+ require 'finnhub_ruby/models/financials_as_reported'
48
+ require 'finnhub_ruby/models/forex_candles'
49
+ require 'finnhub_ruby/models/forex_symbol'
50
+ require 'finnhub_ruby/models/forexrates'
51
+ require 'finnhub_ruby/models/fund_ownership'
52
+ require 'finnhub_ruby/models/ipo_calendar'
53
+ require 'finnhub_ruby/models/ipo_event'
54
+ require 'finnhub_ruby/models/indicator'
55
+ require 'finnhub_ruby/models/investor'
56
+ require 'finnhub_ruby/models/investors_ownership'
57
+ require 'finnhub_ruby/models/last_bid_ask'
58
+ require 'finnhub_ruby/models/major_developments'
59
+ require 'finnhub_ruby/models/news'
60
+ require 'finnhub_ruby/models/news_sentiment'
61
+ require 'finnhub_ruby/models/pattern_recognition'
62
+ require 'finnhub_ruby/models/price_target'
63
+ require 'finnhub_ruby/models/quote'
64
+ require 'finnhub_ruby/models/recommendation_trend'
65
+ require 'finnhub_ruby/models/report'
66
+ require 'finnhub_ruby/models/revenue_estimates'
67
+ require 'finnhub_ruby/models/sentiment'
68
+ require 'finnhub_ruby/models/split'
69
+ require 'finnhub_ruby/models/stock'
70
+ require 'finnhub_ruby/models/stock_candles'
71
+ require 'finnhub_ruby/models/stock_transcripts'
72
+ require 'finnhub_ruby/models/support_resistance'
73
+ require 'finnhub_ruby/models/technical_analysis'
74
+ require 'finnhub_ruby/models/tick_data'
75
+ require 'finnhub_ruby/models/transcript_content'
76
+ require 'finnhub_ruby/models/transcript_participant'
77
+ require 'finnhub_ruby/models/trend'
78
+ require 'finnhub_ruby/models/upgrade_downgrade'
79
+
80
+ # APIs
81
+ require 'finnhub_ruby/api/default_api'
82
+
83
+ module FinnhubRuby
84
+ class << self
85
+ # Customize default settings for the SDK using block.
86
+ # FinnhubRuby.configure do |config|
87
+ # config.username = "xxx"
88
+ # config.password = "xxx"
89
+ # end
90
+ # If no block given, return the default Configuration object.
91
+ def configure
92
+ if block_given?
93
+ yield(Configuration.default)
94
+ else
95
+ Configuration.default
96
+ end
97
+ end
98
+ end
99
+ end