apiverve_dividends 1.2.4 → 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 +4 -4
- data/README.md +12 -3
- data/lib/apiverve_dividends/client.rb +2 -2
- data/lib/apiverve_dividends.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0df50f4b93cfab2521d4c956a7800ea742ffbc00f252e695a98dddee1f8eb3b6
|
|
4
|
+
data.tar.gz: a1712aefcce5a598fc9e472eb530ad779fb1a147241ba58532ec86a5faa13902
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = {
|
data/lib/apiverve_dividends.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiverve_dividends
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- APIVerve
|
|
@@ -60,7 +60,8 @@ dependencies:
|
|
|
60
60
|
description: Dividends returns the dividend-per-share history for a US public company
|
|
61
61
|
by ticker - the amount reported each quarter and year straight from official SEC
|
|
62
62
|
filings - plus a derived dividend-growth summary with year-over-year growth, multi-year
|
|
63
|
-
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.
|
|
64
65
|
email:
|
|
65
66
|
- hello@apiverve.com
|
|
66
67
|
executables: []
|