finnhub_ruby 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +201 -0
- data/README.md +164 -0
- data/Rakefile +10 -0
- data/docs/AggregateIndicators.md +19 -0
- data/docs/BasicFinancials.md +21 -0
- data/docs/Company.md +29 -0
- data/docs/CompanyExecutive.md +19 -0
- data/docs/CompanyNewsStatistics.md +21 -0
- data/docs/CompanyProfile.md +71 -0
- data/docs/CompanyProfile2.md +39 -0
- data/docs/CountryMetadata.md +27 -0
- data/docs/CovidInfo.md +23 -0
- data/docs/CryptoCandles.md +29 -0
- data/docs/CryptoSymbol.md +21 -0
- data/docs/DefaultApi.md +2662 -0
- data/docs/Development.md +23 -0
- data/docs/Dividends.md +31 -0
- data/docs/EarningEstimate.md +25 -0
- data/docs/EarningRelease.md +33 -0
- data/docs/EarningResult.md +23 -0
- data/docs/EarningsCalendar.md +17 -0
- data/docs/EarningsCallTranscripts.md +33 -0
- data/docs/EarningsCallTranscriptsList.md +19 -0
- data/docs/EarningsEstimates.md +21 -0
- data/docs/EconomicCalendar.md +17 -0
- data/docs/EconomicCode.md +23 -0
- data/docs/EconomicData.md +19 -0
- data/docs/EconomicEvent.md +31 -0
- data/docs/Estimate.md +25 -0
- data/docs/Filing.md +31 -0
- data/docs/FinancialStatements.md +19 -0
- data/docs/FinancialsAsReported.md +21 -0
- data/docs/ForexCandles.md +29 -0
- data/docs/ForexSymbol.md +21 -0
- data/docs/Forexrates.md +19 -0
- data/docs/FundOwnership.md +19 -0
- data/docs/IPOCalendar.md +17 -0
- data/docs/IPOEvent.md +31 -0
- data/docs/Indicator.md +21 -0
- data/docs/Investor.md +23 -0
- data/docs/InvestorsOwnership.md +19 -0
- data/docs/LastBidAsk.md +25 -0
- data/docs/MajorDevelopments.md +19 -0
- data/docs/News.md +33 -0
- data/docs/NewsSentiment.md +27 -0
- data/docs/PatternRecognition.md +17 -0
- data/docs/PriceTarget.md +27 -0
- data/docs/Quote.md +25 -0
- data/docs/RecommendationTrend.md +29 -0
- data/docs/Report.md +37 -0
- data/docs/RevenueEstimates.md +21 -0
- data/docs/Sentiment.md +19 -0
- data/docs/Split.md +23 -0
- data/docs/Stock.md +21 -0
- data/docs/StockCandles.md +29 -0
- data/docs/StockTranscripts.md +25 -0
- data/docs/SupportResistance.md +17 -0
- data/docs/TechnicalAnalysis.md +19 -0
- data/docs/TickData.md +31 -0
- data/docs/TranscriptContent.md +19 -0
- data/docs/TranscriptParticipant.md +19 -0
- data/docs/Trend.md +17 -0
- data/docs/UpgradeDowngrade.md +27 -0
- data/finnhub_ruby-0.0.1.gem +0 -0
- data/finnhub_ruby-0.0.2.gem +0 -0
- data/finnhub_ruby.gemspec +39 -0
- data/git_push.sh +58 -0
- data/lib/finnhub_ruby.rb +99 -0
- data/lib/finnhub_ruby/api/default_api.rb +3142 -0
- data/lib/finnhub_ruby/api_client.rb +389 -0
- data/lib/finnhub_ruby/api_error.rb +57 -0
- data/lib/finnhub_ruby/configuration.rb +248 -0
- data/lib/finnhub_ruby/models/aggregate_indicators.rb +215 -0
- data/lib/finnhub_ruby/models/basic_financials.rb +226 -0
- data/lib/finnhub_ruby/models/company.rb +267 -0
- data/lib/finnhub_ruby/models/company_executive.rb +219 -0
- data/lib/finnhub_ruby/models/company_news_statistics.rb +227 -0
- data/lib/finnhub_ruby/models/company_profile.rb +477 -0
- data/lib/finnhub_ruby/models/company_profile2.rb +317 -0
- data/lib/finnhub_ruby/models/country_metadata.rb +257 -0
- data/lib/finnhub_ruby/models/covid_info.rb +237 -0
- data/lib/finnhub_ruby/models/crypto_candles.rb +279 -0
- data/lib/finnhub_ruby/models/crypto_symbol.rb +227 -0
- data/lib/finnhub_ruby/models/development.rb +237 -0
- data/lib/finnhub_ruby/models/dividends.rb +277 -0
- data/lib/finnhub_ruby/models/earning_estimate.rb +247 -0
- data/lib/finnhub_ruby/models/earning_release.rb +287 -0
- data/lib/finnhub_ruby/models/earning_result.rb +237 -0
- data/lib/finnhub_ruby/models/earnings_calendar.rb +209 -0
- data/lib/finnhub_ruby/models/earnings_call_transcripts.rb +291 -0
- data/lib/finnhub_ruby/models/earnings_call_transcripts_list.rb +219 -0
- data/lib/finnhub_ruby/models/earnings_estimates.rb +229 -0
- data/lib/finnhub_ruby/models/economic_calendar.rb +209 -0
- data/lib/finnhub_ruby/models/economic_code.rb +237 -0
- data/lib/finnhub_ruby/models/economic_data.rb +219 -0
- data/lib/finnhub_ruby/models/economic_event.rb +277 -0
- data/lib/finnhub_ruby/models/estimate.rb +247 -0
- data/lib/finnhub_ruby/models/filing.rb +277 -0
- data/lib/finnhub_ruby/models/financial_statements.rb +219 -0
- data/lib/finnhub_ruby/models/financials_as_reported.rb +229 -0
- data/lib/finnhub_ruby/models/forex_candles.rb +279 -0
- data/lib/finnhub_ruby/models/forex_symbol.rb +227 -0
- data/lib/finnhub_ruby/models/forexrates.rb +216 -0
- data/lib/finnhub_ruby/models/fund_ownership.rb +219 -0
- data/lib/finnhub_ruby/models/indicator.rb +227 -0
- data/lib/finnhub_ruby/models/investor.rb +237 -0
- data/lib/finnhub_ruby/models/investors_ownership.rb +219 -0
- data/lib/finnhub_ruby/models/ipo_calendar.rb +209 -0
- data/lib/finnhub_ruby/models/ipo_event.rb +277 -0
- data/lib/finnhub_ruby/models/last_bid_ask.rb +247 -0
- data/lib/finnhub_ruby/models/major_developments.rb +219 -0
- data/lib/finnhub_ruby/models/news.rb +287 -0
- data/lib/finnhub_ruby/models/news_sentiment.rb +255 -0
- data/lib/finnhub_ruby/models/pattern_recognition.rb +209 -0
- data/lib/finnhub_ruby/models/price_target.rb +257 -0
- data/lib/finnhub_ruby/models/quote.rb +247 -0
- data/lib/finnhub_ruby/models/recommendation_trend.rb +267 -0
- data/lib/finnhub_ruby/models/report.rb +306 -0
- data/lib/finnhub_ruby/models/revenue_estimates.rb +229 -0
- data/lib/finnhub_ruby/models/sentiment.rb +217 -0
- data/lib/finnhub_ruby/models/split.rb +237 -0
- data/lib/finnhub_ruby/models/stock.rb +227 -0
- data/lib/finnhub_ruby/models/stock_candles.rb +279 -0
- data/lib/finnhub_ruby/models/stock_transcripts.rb +247 -0
- data/lib/finnhub_ruby/models/support_resistance.rb +209 -0
- data/lib/finnhub_ruby/models/technical_analysis.rb +216 -0
- data/lib/finnhub_ruby/models/tick_data.rb +285 -0
- data/lib/finnhub_ruby/models/transcript_content.rb +219 -0
- data/lib/finnhub_ruby/models/transcript_participant.rb +217 -0
- data/lib/finnhub_ruby/models/trend.rb +207 -0
- data/lib/finnhub_ruby/models/upgrade_downgrade.rb +257 -0
- data/lib/finnhub_ruby/version.rb +15 -0
- data/release.sh +2 -0
- data/spec/api/default_api_spec.rb +638 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/aggregate_indicators_spec.rb +47 -0
- data/spec/models/basic_financials_spec.rb +53 -0
- data/spec/models/company_executive_spec.rb +47 -0
- data/spec/models/company_news_statistics_spec.rb +53 -0
- data/spec/models/company_profile2_spec.rb +107 -0
- data/spec/models/company_profile_spec.rb +203 -0
- data/spec/models/company_spec.rb +77 -0
- data/spec/models/country_metadata_spec.rb +71 -0
- data/spec/models/covid_info_spec.rb +59 -0
- data/spec/models/crypto_candles_spec.rb +77 -0
- data/spec/models/crypto_symbol_spec.rb +53 -0
- data/spec/models/development_spec.rb +59 -0
- data/spec/models/dividends_spec.rb +83 -0
- data/spec/models/earning_estimate_spec.rb +65 -0
- data/spec/models/earning_release_spec.rb +89 -0
- data/spec/models/earning_result_spec.rb +59 -0
- data/spec/models/earnings_calendar_spec.rb +41 -0
- data/spec/models/earnings_call_transcripts_list_spec.rb +47 -0
- data/spec/models/earnings_call_transcripts_spec.rb +89 -0
- data/spec/models/earnings_estimates_spec.rb +53 -0
- data/spec/models/economic_calendar_spec.rb +41 -0
- data/spec/models/economic_code_spec.rb +59 -0
- data/spec/models/economic_data_spec.rb +47 -0
- data/spec/models/economic_event_spec.rb +83 -0
- data/spec/models/estimate_spec.rb +65 -0
- data/spec/models/filing_spec.rb +83 -0
- data/spec/models/financial_statements_spec.rb +47 -0
- data/spec/models/financials_as_reported_spec.rb +53 -0
- data/spec/models/forex_candles_spec.rb +77 -0
- data/spec/models/forex_symbol_spec.rb +53 -0
- data/spec/models/forexrates_spec.rb +47 -0
- data/spec/models/fund_ownership_spec.rb +47 -0
- data/spec/models/indicator_spec.rb +53 -0
- data/spec/models/investor_spec.rb +59 -0
- data/spec/models/investors_ownership_spec.rb +47 -0
- data/spec/models/ipo_calendar_spec.rb +41 -0
- data/spec/models/ipo_event_spec.rb +83 -0
- data/spec/models/last_bid_ask_spec.rb +65 -0
- data/spec/models/major_developments_spec.rb +47 -0
- data/spec/models/news_sentiment_spec.rb +71 -0
- data/spec/models/news_spec.rb +89 -0
- data/spec/models/pattern_recognition_spec.rb +41 -0
- data/spec/models/price_target_spec.rb +71 -0
- data/spec/models/quote_spec.rb +65 -0
- data/spec/models/recommendation_trend_spec.rb +77 -0
- data/spec/models/report_spec.rb +101 -0
- data/spec/models/revenue_estimates_spec.rb +53 -0
- data/spec/models/sentiment_spec.rb +47 -0
- data/spec/models/split_spec.rb +59 -0
- data/spec/models/stock_candles_spec.rb +77 -0
- data/spec/models/stock_spec.rb +53 -0
- data/spec/models/stock_transcripts_spec.rb +65 -0
- data/spec/models/support_resistance_spec.rb +41 -0
- data/spec/models/technical_analysis_spec.rb +47 -0
- data/spec/models/tick_data_spec.rb +83 -0
- data/spec/models/transcript_content_spec.rb +47 -0
- data/spec/models/transcript_participant_spec.rb +47 -0
- data/spec/models/trend_spec.rb +41 -0
- data/spec/models/upgrade_downgrade_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- data/test.rb +139 -0
- metadata +364 -0
data/docs/Sentiment.md
ADDED
@@ -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
|
+
|
data/docs/Split.md
ADDED
@@ -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
|
+
|
data/docs/Stock.md
ADDED
@@ -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
|
+
|
data/docs/TickData.md
ADDED
@@ -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
|
+
|
data/docs/Trend.md
ADDED
@@ -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
|
data/git_push.sh
ADDED
@@ -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
|
+
|
data/lib/finnhub_ruby.rb
ADDED
@@ -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
|