finnhub_ruby 2.0.0 → 2.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f5ca0c3eb663220b1ce26a51d7f0d73811ef76ed36d7fd8b6f0bdafb1aefe06
4
- data.tar.gz: cc715e395c7526aadbb094284c202a49d55b5855e4ec9f7e5ed98fa27b29de79
3
+ metadata.gz: e82f835dcaf71bde80347b51672a7b3e594a2a9302d491d6d7c17bc44176b6ce
4
+ data.tar.gz: a19e636bea8bd22dd2f56ba1c21357cd8732fd47c7e1ad2295867fca0dca6cb1
5
5
  SHA512:
6
- metadata.gz: 491edeacc31ce9f52f1a4085ed1809922ef2bf5c7e0aa20a204f76d43c59ebabc49430e765130f53c81ca4ae67f15fff2033490c211f392dd536e914a5eb4b4d
7
- data.tar.gz: c23bb87082594740381e8b49ba33fa07997c845c8c962e2ac36cbc7c4d5bd37af9a4c89761b56d3c2c7646876ccba008747b680a6c388de9b037478bf6561053
6
+ metadata.gz: 7c4f82f0f7eb368c4c95f2390a839fc5353ea6640af92005a88d349db0fe6a21040a0950675a238105ae5a607d872b73be7e0547241f8e6f1c7ee64871422a42
7
+ data.tar.gz: 6a1a01ec4c929e26bf285252157d5c1a3f1b0c52b9e3b2e3d20879d45e3c0ebc91afe5fd02421a7f7e21a3e4e7b129b7ada430ab296eb500589fd8f2435d778a
data/.gitignore CHANGED
@@ -37,3 +37,6 @@ build/
37
37
 
38
38
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
39
39
  .rvmrc
40
+
41
+ test.rb
42
+ test_release.rb
data/README.md CHANGED
@@ -112,6 +112,7 @@ puts(finnhub_client.filings_sentiment('0000320193-20-000052', {}))
112
112
 
113
113
  # Financials
114
114
  puts(finnhub_client.financials('AAPL', 'bs', 'annual'))
115
+ puts(finnhub_client.financials('AAPL', 'bs', 'annual', preliminary: true))
115
116
 
116
117
  # Financials as reported
117
118
  puts(finnhub_client.financials_reported({symbol: 'AAPL', freq: 'annual'}))
@@ -1,3 +1,3 @@
1
1
  module FinnhubRuby
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.3"
3
3
  end
data/lib/finnhub_ruby.rb CHANGED
@@ -54,7 +54,6 @@ module FinnhubRuby
54
54
  params = params.dup
55
55
  params['token'] = @config.api_key['api_key']
56
56
  uri.query = URI.encode_www_form(params)
57
- puts(uri)
58
57
 
59
58
  # Some endpoints redirect to another endpoint, so we need to handle that
60
59
  limit = 2
@@ -151,8 +150,8 @@ module FinnhubRuby
151
150
  get('/stock/metric', { symbol: symbol, metric: metric })
152
151
  end
153
152
 
154
- def financials(symbol, statement, freq)
155
- get('/stock/financials', { symbol: symbol, statement: statement, freq: freq })
153
+ def financials(symbol, statement, freq, preliminary: nil)
154
+ get('/stock/financials', { symbol: symbol, statement: statement, freq: freq, preliminary: preliminary }.compact)
156
155
  end
157
156
 
158
157
  def financials_reported(params = {})
@@ -507,6 +506,10 @@ module FinnhubRuby
507
506
  get('/covid19/us')
508
507
  end
509
508
 
509
+ def bank_branch(symbol)
510
+ get('/bank-branch', { symbol: symbol })
511
+ end
512
+
510
513
  private
511
514
 
512
515
  def handle_response(res)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finnhub_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finnhub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-20 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json