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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +4 -0
  3. data/README.md +15 -0
  4. data/lib/Eodhd/VERSION.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e347f01c6ec9787d6a54688677b37264b7d69eeffcd1e074c1fd13ae87cb4cb5
4
- data.tar.gz: 7a75d41121973122134371a0a860736c0ce9648b06bf61d9c98f359fc71fe590
3
+ metadata.gz: 5a140246535718662c35b910ddc1fb1bdb601687fdaf714549c73851e4069600
4
+ data.tar.gz: c8d5dc8e3c0f5fa66baed1b3112b00edf957f80199e05e54246f0d710cf63949
5
5
  SHA512:
6
- metadata.gz: 1bf08b3757f5f6e6425c4af75475aab51ed62914040389f522a01547c2e4f68b3ef09a74d0000729742545aecfca7c0e04d01121f2d0f61b5e666dee9997a03e
7
- data.tar.gz: 2532629e1aa4fbb1c22cf35794b506a682b8b616f43e59746f0ee23fd2a38c77693313c61999dc072376690fa7b70c6fb43c7c1dcf128a0556d53691116af7eb
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
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.0'
2
+ VERSION = '0.19.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eodhd.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran