Skip to content

Expose currency field in quote results#12

Merged
fleveque merged 1 commit into
mainfrom
feat/currency-field
May 16, 2026
Merged

Expose currency field in quote results#12
fleveque merged 1 commit into
mainfrom
feat/currency-field

Conversation

@fleveque

Copy link
Copy Markdown
Owner

Summary

  • Pass Yahoo's currency field through build_quote_hash so callers can support multi-currency portfolios without a second request.
  • Bump version to 0.6.0, update CHANGELOG/README.

Why

Downstream apps (e.g. dividend-portfolio) need the listing currency to render non-USD stocks correctly and to split portfolio totals per currency. Yahoo already returns it on every quote — we were just discarding it.

Test plan

  • bundle exec rspec — 63 examples, 0 failures (includes new "when the response includes a currency" case).
  • bundle exec rubocop — clean.

🤖 Generated with Claude Code

Yahoo's quote payload includes the listing currency; pass it through so
callers can support multi-currency portfolios without re-querying.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@fleveque fleveque merged commit 06aec25 into main May 16, 2026
1 check passed
@fleveque fleveque deleted the feat/currency-field branch May 16, 2026 14:49
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