yfinance 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
- data/lib/yfinance.rb +9 -4
- data/spec/yfinance_spec.rb +6 -0
- data/yfinance.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 294f93f5c2ae968d20d4ec3c046c01908f694f03
|
4
|
+
data.tar.gz: ecce478844f2054878932c43903c9c2fcaf10c87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0648021e2db7bf7e69d8f95059d3f067939fb9dd4953547e5e33a62119c50872ddd808f1d77582a268952483f6f49e5ba9bb59c7990f5488bff20d3e4453dc
|
7
|
+
data.tar.gz: fc54e3ac847740c658496e13b17e0bde18fad223c39fd2c394f66a432077934dd33d25982e2015d39510f7e5ab70d78043ec9726bfffbeea09ea936be4f3f1cb
|
data/lib/yfinance.rb
CHANGED
@@ -33,7 +33,7 @@ class Yfinance
|
|
33
33
|
:eps_estimate_current_year => "e7",
|
34
34
|
:eps_estimate_next_year => "e8",
|
35
35
|
:eps_estimate_next_quarter => "e9",
|
36
|
-
:float_shares => "f6",
|
36
|
+
# :float_shares => "f6",
|
37
37
|
:low => "g",
|
38
38
|
:high => "h",
|
39
39
|
:low_52_weeks => "j",
|
@@ -87,7 +87,7 @@ class Yfinance
|
|
87
87
|
:shares_owned => "s1",
|
88
88
|
:short_ratio => "s7",
|
89
89
|
:last_trade_time => "t1",
|
90
|
-
|
90
|
+
#:trade_links => "t6", # doesn't work anymore ?
|
91
91
|
:ticker_trend => "t7",
|
92
92
|
:one_year_target_price => "t8",
|
93
93
|
:volume => "v",
|
@@ -97,8 +97,8 @@ class Yfinance
|
|
97
97
|
:day_value_change => "w1",
|
98
98
|
:day_value_change_realtime => "w4",
|
99
99
|
:stock_exchange => "x",
|
100
|
-
:dividend_yield => "y"
|
101
|
-
|
100
|
+
:dividend_yield => "y"
|
101
|
+
#:adjusted_close => nil
|
102
102
|
}
|
103
103
|
|
104
104
|
HISTORICAL_MODES = {
|
@@ -161,6 +161,11 @@ class Yfinance
|
|
161
161
|
@hydra.run
|
162
162
|
end
|
163
163
|
|
164
|
+
def quotes_all_info(symbols_array)
|
165
|
+
columns_array = COLUMNS.keys
|
166
|
+
quotes(symbols_array, columns_array)
|
167
|
+
end
|
168
|
+
|
164
169
|
private
|
165
170
|
|
166
171
|
def make_request(url, symbol, options, callback)
|
data/spec/yfinance_spec.rb
CHANGED
@@ -25,4 +25,10 @@ describe Yfinance do
|
|
25
25
|
expect(res[1].symbol).to eql('GOOG')
|
26
26
|
end
|
27
27
|
|
28
|
+
it "retrieves quote data containing all available columns" do
|
29
|
+
yf = Yfinance.new
|
30
|
+
res = yf.quotes_all_info(["MSFT", "GOOG"])
|
31
|
+
expect(res[0].dividend_yield).not_to be_nil
|
32
|
+
end
|
33
|
+
|
28
34
|
end
|
data/yfinance.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'yfinance'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "yfinance"
|
8
|
-
spec.version = "1.0.
|
8
|
+
spec.version = "1.0.2"
|
9
9
|
spec.authors = ["Alexander Potrykus"]
|
10
10
|
spec.email = ["alexander@risklog.io"]
|
11
11
|
spec.summary = %q{Fetches Yahoo! Finance data using parallel HTTP requests.}
|