eodhd 0.19.6 → 0.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +24 -0
- data/Gemfile +1 -1
- data/LICENSE +21 -0
- data/README.md +6 -10
- data/eodhd.gemspec +6 -4
- data/lib/Eodhd/VERSION.rb +1 -1
- data/lib/eodhd.rb +1 -1
- data/test/{Eodhd_test.rb → eodhd_test.rb} +2 -2
- data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day.yml +51 -0
- data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_eod_data.yml +51 -0
- data/test/fixtures/vcr_cassettes/client_eod_data_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_exchange_symbol_list.yml +2774 -0
- data/test/fixtures/vcr_cassettes/client_exchange_symbol_list_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_exchanges_list.yml +97 -0
- data/test/fixtures/vcr_cassettes/client_exchanges_list_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals.yml +153 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals_filtered.yml +91 -0
- data/test/fixtures/vcr_cassettes/client_intraday.yml +6492 -0
- data/test/fixtures/vcr_cassettes/client_intraday_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/eodhd_eod_bulk_last_day.yml +51 -0
- data/test/fixtures/vcr_cassettes/eodhd_eod_data.yml +51 -0
- data/test/fixtures/vcr_cassettes/eodhd_exchange_symbols.yml +2931 -0
- data/test/fixtures/vcr_cassettes/eodhd_exchanges.yml +123 -0
- data/test/fixtures/vcr_cassettes/eodhd_fundamentals.yml +153 -0
- data/test/fixtures/vcr_cassettes/eodhd_intraday.yml +6492 -0
- data/test/fixtures/vcr_cassettes/fundamentals_aapl.yml +153 -0
- data/test/fixtures/vcr_cassettes/fundamentals_cba_au.yml +99 -0
- data/test/gemspec_test.rb +1 -1
- data/test/helper.rb +1 -1
- metadata +40 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b79f11d009b5fcad63df9eea69833e3036e76fad24979862046681d748d9cbf
|
|
4
|
+
data.tar.gz: abc486cdf3e35d4f89b1a862dec9836779941811a508660acd161441d0befa25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5b80bed33ca7c08c1b7c8b1308ef14ee8637c979df596158c6fed9b021e9a63edc4d3ab81d0d4f31f0606c701d79a66af0c2ea566672280e0acadda314412cb
|
|
7
|
+
data.tar.gz: d2596c7c457d41e165dfd22273927ed46b8b7f081a23f3a91bc2d172994e228e41bbef48f55c610d711deb28acc583969d9b9781a14fc99a77f377036ab05032
|
data/CHANGELOG
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
# eodhd/CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 20261001
|
|
4
|
+
|
|
5
|
+
0.19.8: /Eodhd.rb/eodhd.rb/; + logger gem; ~ gemspec: + test/fixtures; + LICENSE
|
|
6
|
+
|
|
7
|
+
1. ~ Gemfile: /gemspec name: 'eodhd.rb'/gemspec name: 'eodhd'/
|
|
8
|
+
2. ~ lib/Eodhd.rb --> lib/eodhd.rb, in the index.
|
|
9
|
+
3. ~ test/eodhd_test.rb: /Eodhd_test.rb/eodhd_test.rb/
|
|
10
|
+
4. ~ test/helper.rb: /require 'Eodhd'/require 'eodhd'/
|
|
11
|
+
5. ~ eodhd.gemspec: spec.files: /Dir['test/**/*.rb']/Dir['test/**/*']/
|
|
12
|
+
6. ~ eodhd.rb.gemspec: spec.files: /Dir['test/**/*.rb']/Dir['test/**/*']/
|
|
13
|
+
7. ~ README.md: /gem 'eodhd.rb'/gem 'eodhd'/
|
|
14
|
+
8. ~ README.md: /gem install eodhd.rb/gem install eodhd/
|
|
15
|
+
9. ~ README.md: - Eodhd#stream example, which has been private since 0.18.0.
|
|
16
|
+
10. ~ eodhd.gemspec and eodhd.rb.gemspec: spec.dependencies: + logger gem (Ruby 4 has it as a gem now.)
|
|
17
|
+
11. ~ test/gemspec_test.rb: + logger
|
|
18
|
+
12. ~ Eodhd::VERSION: /0.19.7/0.19.8/
|
|
19
|
+
|
|
20
|
+
|
|
3
21
|
## 20260915
|
|
4
22
|
|
|
23
|
+
0.19.7: Rename the repo: /eodhd.rb/eodhd/.
|
|
24
|
+
|
|
25
|
+
1. ~ eodhd.rb.gemspec and eodhd.gemspec: spec.homepage.
|
|
26
|
+
2. ~ README.md: the fork URL.
|
|
27
|
+
3. ~ Eodhd::VERSION: /0.19.6/0.19.7/
|
|
28
|
+
|
|
5
29
|
0.19.6: + test/gemspec_test.rb, covering both gemspecs and that they agree.
|
|
6
30
|
|
|
7
31
|
1. + test/gemspec_test.rb: for each gemspec, that it validates, that it is named what it should be, that it pins no date, that its version is Eodhd::VERSION, its runtime and development dependencies, and that it ships the gemspec naming it. Modelled upon the convention this repository follows, for both gemspecs.
|
data/Gemfile
CHANGED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-2026 thoran
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# eodhd
|
|
1
|
+
# eodhd
|
|
2
2
|
|
|
3
3
|
## Description
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ Access the eodhd.com API with Ruby.
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem 'eodhd
|
|
12
|
+
gem 'eodhd'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
And then execute:
|
|
@@ -21,7 +21,7 @@ And then execute:
|
|
|
21
21
|
Or install it yourself as:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
$ gem install eodhd
|
|
24
|
+
$ gem install eodhd
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
@@ -29,6 +29,8 @@ Or install it yourself as:
|
|
|
29
29
|
### Setup
|
|
30
30
|
|
|
31
31
|
```ruby
|
|
32
|
+
require 'eodhd'
|
|
33
|
+
|
|
32
34
|
api_token = 'api_token'
|
|
33
35
|
eodhd = Eodhd.new(api_token: api_token)
|
|
34
36
|
```
|
|
@@ -141,19 +143,13 @@ eodhd.forex_stream('EURUSD')
|
|
|
141
143
|
eodhd.crypto_stream('BTC-USD')
|
|
142
144
|
```
|
|
143
145
|
|
|
144
|
-
#### Or use the general interface
|
|
145
|
-
|
|
146
|
-
```ruby
|
|
147
|
-
eodhd.stream(asset_class: 'us', symbols: 'AAPL,MSFT')
|
|
148
|
-
```
|
|
149
|
-
|
|
150
146
|
## License
|
|
151
147
|
|
|
152
148
|
MIT License. See LICENSE file for details.
|
|
153
149
|
|
|
154
150
|
## Contributing
|
|
155
151
|
|
|
156
|
-
1. Fork it ( https://github.com/thoran/eodhd
|
|
152
|
+
1. Fork it ( https://github.com/thoran/eodhd/fork )
|
|
157
153
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
158
154
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
159
155
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/eodhd.gemspec
CHANGED
|
@@ -19,25 +19,27 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
|
|
20
20
|
spec.author = 'thoran'
|
|
21
21
|
spec.email = 'code@thoran.com'
|
|
22
|
-
spec.homepage = 'http://github.com/thoran/eodhd
|
|
22
|
+
spec.homepage = 'http://github.com/thoran/eodhd'
|
|
23
23
|
spec.license = 'MIT'
|
|
24
24
|
|
|
25
25
|
spec.require_paths = ['lib']
|
|
26
26
|
spec.required_ruby_version = '>= 2.7'
|
|
27
27
|
|
|
28
28
|
spec.files = [
|
|
29
|
-
'CHANGELOG',
|
|
30
29
|
'eodhd.gemspec',
|
|
31
|
-
'Gemfile',
|
|
32
30
|
Dir['lib/**/*.rb'],
|
|
31
|
+
Dir['test/**/*'],
|
|
32
|
+
'CHANGELOG',
|
|
33
|
+
'Gemfile',
|
|
34
|
+
'LICENSE',
|
|
33
35
|
'Rakefile',
|
|
34
36
|
'README.md',
|
|
35
|
-
Dir['test/**/*.rb']
|
|
36
37
|
].flatten
|
|
37
38
|
|
|
38
39
|
spec.dependencies = %w{
|
|
39
40
|
http.rb
|
|
40
41
|
iodine
|
|
42
|
+
logger
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
spec.development_dependencies = %w{
|
data/lib/Eodhd/VERSION.rb
CHANGED
data/lib/eodhd.rb
CHANGED