Skip to content

Add dividend history fetching#8

Merged
fleveque merged 1 commit into
mainfrom
feat/dividend-history
Feb 12, 2026
Merged

Add dividend history fetching#8
fleveque merged 1 commit into
mainfrom
feat/dividend-history

Conversation

@fleveque

Copy link
Copy Markdown
Owner

Summary

  • Add Stock.get_dividend_history(symbol, range: "2y") method using the /v8/finance/chart endpoint with events=div
  • Returns sorted array of { date: Date, amount: Float } hashes, with caching and auth retry support
  • Bump version to 0.4.0

Test plan

  • bundle exec rspec — 42 specs pass
  • Verify dividend history returns correct data for known dividend-paying stocks (e.g., AAPL, O)
  • Verify empty array returned for non-dividend-paying stocks
  • Verify auth retry on 401

🤖 Generated with Claude Code

Uses the /v8/finance/chart endpoint with events=div to fetch
historical dividend data for a given symbol. Returns sorted
array of { date:, amount: } hashes with caching support.

Bumps version to 0.4.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fleveque fleveque merged commit 2660063 into main Feb 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant