apiverve_dividends 1.2.3 → 1.2.5

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: 42bfc6c3609410521d807f40d20f64d38b72f9c1ac5ad2d45923f42f54a7584c
4
- data.tar.gz: 124ee25bf1fce473a70b6457af66664fc0961a2fbb1f54ab3cfd5cf3a392a839
3
+ metadata.gz: 0df50f4b93cfab2521d4c956a7800ea742ffbc00f252e695a98dddee1f8eb3b6
4
+ data.tar.gz: a1712aefcce5a598fc9e472eb530ad779fb1a147241ba58532ec86a5faa13902
5
5
  SHA512:
6
- metadata.gz: ab08400799ea72d1f1c52dcc8ac43e4fc7cad9fd378468118fc52e1167c54f5e0d718ee7c4bfbd0c08d5a794e8456e0f1dd34a9c700cbdc79c3939f6d31c6eb2
7
- data.tar.gz: 04ae08080a955bd2591c87f2cfe10164a3269780b7731e3299363cb982a259ab024ba0fcf0b234cf1f448c876cddefb95425aa35d608d023eae3d667d1c3e3a6
6
+ metadata.gz: 0d2479f8d3d17c9ff38f61f6fab0e005d0780aefc43541e85ab9c950238139d80be74a5532dba2012f8acfeac71eb3f8f0d8c67269c3ee821bb523d76e7a6f2f
7
+ data.tar.gz: 63369d9ca77ceb0f06f295fb1c42493d559efae7b91940f2dd613d5555b18edaf9a56b554007471cc8645ae5785e6b3e6e9da2dcd7270beca51de403025f294d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Dividends API - Ruby Gem
2
2
 
3
- Dividends returns the dividend-per-share history for a US public company by ticker - the amount reported each quarter and year straight from official SEC filings - plus a derived dividend-growth summary with year-over-year growth, multi-year growth rates and a consecutive-years-of-growth streak calculated for you.
3
+ Dividends returns the dividend-per-share history for a US public company by ticker - the amount reported each quarter and year straight from official SEC filings - plus a derived dividend-growth summary with year-over-year growth, multi-year growth rates and a consecutive-years-of-growth streak calculated for you. Paid plans can add dividend yield and the full-year payout ratio.
4
4
 
5
5
  ## Installation
6
6
 
@@ -38,7 +38,8 @@ client = APIVerve::Dividends::Client.new(api_key: "YOUR_API_KEY")
38
38
  response = client.execute({
39
39
  ticker: "AAPL",
40
40
  period: "annual",
41
- limit: 10
41
+ limit: 10,
42
+ metrics: true
42
43
  })
43
44
 
44
45
  # Print the response
@@ -50,7 +51,7 @@ puts response
50
51
 
51
52
  ```ruby
52
53
  begin
53
- response = client.execute({ ticker: "AAPL", period: "annual", limit: 10 })
54
+ response = client.execute({ ticker: "AAPL", period: "annual", limit: 10, metrics: true })
54
55
  puts response["data"]
55
56
  rescue APIVerve::Dividends::ValidationError => e
56
57
  puts "Validation error: #{e.errors.join(', ')}"
@@ -159,6 +160,14 @@ client = APIVerve::Dividends::Client.new(
159
160
  "perShare": 1.02
160
161
  }
161
162
  ]
163
+ },
164
+ "metrics": {
165
+ "trailingAnnualDividend": 1.02,
166
+ "trailingAnnualPeriod": "CY2025",
167
+ "dividendYield": 0.33,
168
+ "priceAsOf": "2026-08-17T19:27:12.559994467Z",
169
+ "payoutRatio": 13.67,
170
+ "payoutRatioFiscalYear": 2025
162
171
  }
163
172
  }
164
173
  }
@@ -10,7 +10,7 @@ module APIVerve
10
10
  #
11
11
  # @example Basic usage
12
12
  # client = APIVerve::Dividends::Client.new(api_key: "your_api_key")
13
- # response = client.execute({ ticker: "AAPL", period: "annual", limit: 10 })
13
+ # response = client.execute({ ticker: "AAPL", period: "annual", limit: 10, metrics: true })
14
14
  # puts response
15
15
  #
16
16
  # @see https://apiverve.com/marketplace/dividends?utm_source=ruby&utm_medium=referral&utm_content=readme
@@ -19,7 +19,7 @@ module APIVerve
19
19
  DEFAULT_TIMEOUT = 30
20
20
 
21
21
  # Validation rules for parameters
22
- VALIDATION_RULES = { 'ticker' => { type: 'string', required: true, min_length: 1, max_length: 6 }, 'period' => { type: 'string', required: false }, 'limit' => { type: 'integer', required: false, min: 1, max: 25 } }
22
+ VALIDATION_RULES = { 'ticker' => { type: 'string', required: true, min_length: 1, max_length: 6 }, 'period' => { type: 'string', required: false }, 'limit' => { type: 'integer', required: false, min: 1, max: 25 }, 'metrics' => { type: 'boolean', required: false } }
23
23
 
24
24
  # Format validation patterns
25
25
  FORMAT_PATTERNS = {
@@ -4,6 +4,6 @@ require_relative "apiverve_dividends/client"
4
4
 
5
5
  module APIVerve
6
6
  module Dividends
7
- VERSION = "1.2.3"
7
+ VERSION = "1.2.5"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiverve_dividends
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIVerve
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-26 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -61,7 +60,8 @@ dependencies:
61
60
  description: Dividends returns the dividend-per-share history for a US public company
62
61
  by ticker - the amount reported each quarter and year straight from official SEC
63
62
  filings - plus a derived dividend-growth summary with year-over-year growth, multi-year
64
- growth rates and a consecutive-years-of-growth streak calculated for you.
63
+ growth rates and a consecutive-years-of-growth streak calculated for you. Paid plans
64
+ can add dividend yield and the full-year payout ratio.
65
65
  email:
66
66
  - hello@apiverve.com
67
67
  executables: []
@@ -80,7 +80,6 @@ metadata:
80
80
  source_code_uri: https://github.com/apiverve/dividends-API/tree/main/ruby
81
81
  changelog_uri: https://apiverve.com/changelog
82
82
  documentation_uri: https://docs.apiverve.com/ref/dividends
83
- post_install_message:
84
83
  rdoc_options: []
85
84
  require_paths:
86
85
  - lib
@@ -95,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
94
  - !ruby/object:Gem::Version
96
95
  version: '0'
97
96
  requirements: []
98
- rubygems_version: 3.0.3.1
99
- signing_key:
97
+ rubygems_version: 4.0.23
100
98
  specification_version: 4
101
99
  summary: Dividends API - Ruby Client
102
100
  test_files: []