eodhd.rb 0.19.0 → 0.19.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.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/README.md +15 -0
- data/lib/Eodhd/VERSION.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a140246535718662c35b910ddc1fb1bdb601687fdaf714549c73851e4069600
|
|
4
|
+
data.tar.gz: c8d5dc8e3c0f5fa66baed1b3112b00edf957f80199e05e54246f0d710cf63949
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b42a918bb3337b66fe75a8c2f9eb837f059892b23f8348d768cf85dd9543eeeff72ead4a3c9e6dd7d1655aa5308a8bdbe49abacba4c4c80523eaad05eb9badf
|
|
7
|
+
data.tar.gz: ae7b65fb37e8945e06b8b4aee42acd002e1b5574e9e6385582f9eafd4438f75ac0274c0e0fd86a659d15de9d66141790170c2a41ea9c382d55cc4d35e14b5e1c
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# eodhd.rb/CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [0.19.1] - 2026-07-19, blank lines before the code fences in the README
|
|
4
|
+
- ~ README.md: + a blank line before each code fence, without which the highlighting does not render.
|
|
5
|
+
- ~ Eodhd/VERSION: /0.19.0/0.19.1/
|
|
6
|
+
|
|
3
7
|
## [0.19.0] - 2026-07-19, complete the fundamentals model wrapping
|
|
4
8
|
- + Eodhd::Fundamentals::Financials::BalanceSheet::Entry: Typed entry for a balance sheet period (64 fields).
|
|
5
9
|
- + Eodhd::Fundamentals::Financials::IncomeStatement::Entry: Typed entry for an income statement period (34 fields).
|
data/README.md
CHANGED
|
@@ -7,14 +7,19 @@ Access the eodhd.com API with Ruby.
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
10
11
|
```ruby
|
|
11
12
|
gem 'eodhd.rb'
|
|
12
13
|
```
|
|
14
|
+
|
|
13
15
|
And then execute:
|
|
16
|
+
|
|
14
17
|
```bash
|
|
15
18
|
$ bundle
|
|
16
19
|
```
|
|
20
|
+
|
|
17
21
|
Or install it yourself as:
|
|
22
|
+
|
|
18
23
|
```bash
|
|
19
24
|
$ gem install eodhd.rb
|
|
20
25
|
```
|
|
@@ -22,17 +27,20 @@ Or install it yourself as:
|
|
|
22
27
|
## Usage
|
|
23
28
|
|
|
24
29
|
### Setup
|
|
30
|
+
|
|
25
31
|
```ruby
|
|
26
32
|
api_token = 'api_token'
|
|
27
33
|
eodhd = Eodhd.new(api_token: api_token)
|
|
28
34
|
```
|
|
29
35
|
|
|
30
36
|
### List of Exchanges
|
|
37
|
+
|
|
31
38
|
```ruby
|
|
32
39
|
eodhd.exchanges
|
|
33
40
|
```
|
|
34
41
|
|
|
35
42
|
### List of Exchange Symbols
|
|
43
|
+
|
|
36
44
|
```ruby
|
|
37
45
|
exchange = eodhd.exchanges.first
|
|
38
46
|
|
|
@@ -42,6 +50,7 @@ eodhd.exchange_symbols(exchange_code: exchange.code)
|
|
|
42
50
|
```
|
|
43
51
|
|
|
44
52
|
### Retrieve EOD Data For One Symbol
|
|
53
|
+
|
|
45
54
|
```ruby
|
|
46
55
|
exchange = eodhd.exchanges.first
|
|
47
56
|
exchange_symbol = eodhd.exchange_symbols(exchange: exchange).first
|
|
@@ -56,6 +65,7 @@ eodhd.eod_data(exchange_code: exchange.code, symbol: exchange_symbol.code)
|
|
|
56
65
|
```
|
|
57
66
|
|
|
58
67
|
### Retrieve EOD Data For Multiple Symbols For One Date
|
|
68
|
+
|
|
59
69
|
```ruby
|
|
60
70
|
exchange = eodhd.exchanges.first
|
|
61
71
|
|
|
@@ -65,6 +75,7 @@ eodhd.eod_bulk_last_day(exchange_code: exchange.code, date: Date.today)
|
|
|
65
75
|
```
|
|
66
76
|
|
|
67
77
|
### Retrieve Intraday Data
|
|
78
|
+
|
|
68
79
|
```ruby
|
|
69
80
|
eodhd.intraday(symbol: 'AAPL', exchange_code: 'US', interval: '5m')
|
|
70
81
|
# OR with date range (from and to are Unix timestamps)
|
|
@@ -72,6 +83,7 @@ eodhd.intraday(symbol: 'AAPL', exchange_code: 'US', interval: '1h', from: 169611
|
|
|
72
83
|
```
|
|
73
84
|
|
|
74
85
|
### Retrieve Fundamental Data
|
|
86
|
+
|
|
75
87
|
```ruby
|
|
76
88
|
fd = eodhd.fundamentals(exchange_code: 'US', symbol: 'AAPL')
|
|
77
89
|
|
|
@@ -109,6 +121,7 @@ fd.earnings.annual
|
|
|
109
121
|
```
|
|
110
122
|
|
|
111
123
|
#### Use the filter parameter to request only specific sections
|
|
124
|
+
|
|
112
125
|
```ruby
|
|
113
126
|
eodhd.fundamentals(exchange_code: 'US', symbol: 'AAPL', filter: 'General')
|
|
114
127
|
eodhd.fundamentals(exchange_code: 'US', symbol: 'AAPL', filter: 'Financials::Income_Statement::quarterly')
|
|
@@ -117,6 +130,7 @@ eodhd.fundamentals(exchange_code: 'US', symbol: 'AAPL', filter: 'Financials::Inc
|
|
|
117
130
|
### WebSockets
|
|
118
131
|
|
|
119
132
|
#### Streaming requires a callable consumer (a proc, lambda, or any object responding to `call`) to handle incoming data frames
|
|
133
|
+
|
|
120
134
|
```ruby
|
|
121
135
|
consumer = ->(data){puts data}
|
|
122
136
|
eodhd = Eodhd.new(api_token: api_token, consumer: consumer)
|
|
@@ -128,6 +142,7 @@ eodhd.crypto_stream('BTC-USD')
|
|
|
128
142
|
```
|
|
129
143
|
|
|
130
144
|
#### Or use the general interface
|
|
145
|
+
|
|
131
146
|
```ruby
|
|
132
147
|
eodhd.stream(asset_class: 'us', symbols: 'AAPL,MSFT')
|
|
133
148
|
```
|
data/lib/Eodhd/VERSION.rb
CHANGED