eodhd.rb 0.19.0 → 0.19.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +8 -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: 5130ae1cc51cf9d621280e3e51ad2d9274c19a717c944aa03a8abb2f19e54956
4
+ data.tar.gz: cba9ed61b8001bb3935009e2822ccbcdfba8b92edb11543928a9556956cc7ed4
5
5
  SHA512:
6
- metadata.gz: 1bf08b3757f5f6e6425c4af75475aab51ed62914040389f522a01547c2e4f68b3ef09a74d0000729742545aecfca7c0e04d01121f2d0f61b5e666dee9997a03e
7
- data.tar.gz: 2532629e1aa4fbb1c22cf35794b506a682b8b616f43e59746f0ee23fd2a38c77693313c61999dc072376690fa7b70c6fb43c7c1dcf128a0556d53691116af7eb
6
+ metadata.gz: 073fd80ed78e280378140b6ef0e27d720e60af54733f16b799b519b0c478f6ef0d88c912b768ed418a7e1af749b519da672a59e6aacb123b11bb524ce01bed96
7
+ data.tar.gz: 7cb3cda154644e3d109fb7d8e6e47dce39604c6bd407920362bcad846cc04f8fbaf39c2e75010a0aac7e3a66bf251be676c41bbe642ce05c0046d9a5d30cb4a7
data/CHANGELOG CHANGED
@@ -1,5 +1,13 @@
1
1
  # eodhd.rb/CHANGELOG
2
2
 
3
+ ## [0.19.2] - 2026-08-21, populate the .gitignore
4
+ - ~ .gitignore: + current default contents. The file held only its filename comment, having been committed that way.
5
+ - ~ Eodhd/VERSION: /0.19.1/0.19.2/
6
+
7
+ ## [0.19.1] - 2026-07-19, blank lines before the code fences in the README
8
+ - ~ README.md: + a blank line before each code fence, without which the highlighting does not render.
9
+ - ~ Eodhd/VERSION: /0.19.0/0.19.1/
10
+
3
11
  ## [0.19.0] - 2026-07-19, complete the fundamentals model wrapping
4
12
  - + Eodhd::Fundamentals::Financials::BalanceSheet::Entry: Typed entry for a balance sheet period (64 fields).
5
13
  - + 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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran