Skip to content

Add extended stock information fields#5

Merged
fleveque merged 1 commit into
mainfrom
feature/extended-stock-info
Jan 29, 2026
Merged

Add extended stock information fields#5
fleveque merged 1 commit into
mainfrom
feature/extended-stock-info

Conversation

@fleveque

Copy link
Copy Markdown
Owner

Summary

  • Add new fields to quote response: name, PE ratio, EPS, dividend, dividend yield, payout ratio, MA50, and MA200
  • Calculate dividend yield (dividend/price) and payout ratio (dividend/EPS) with edge case handling
  • Handle missing dividend data and negative EPS values gracefully (return nil)

Test plan

  • All existing tests updated and passing
  • Added test for stocks without dividend data (e.g., GOOG)
  • Added test for stocks with negative EPS
  • RuboCop passes with no offenses

🤖 Generated with Claude Code

Include name, PE ratio, EPS, dividend, dividend yield (calculated),
payout ratio (calculated), 50-day and 200-day moving averages in
quote response. Handle edge cases for missing dividend data and
negative EPS values.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fleveque fleveque merged commit fc8c27b into main Jan 29, 2026
1 check passed
@fleveque fleveque deleted the feature/extended-stock-info branch January 29, 2026 06:36
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