Skip to content

Add Stock.search for ticker/name autocomplete (v0.5.0)#11

Merged
fleveque merged 1 commit into
mainfrom
feat/search
May 15, 2026
Merged

Add Stock.search for ticker/name autocomplete (v0.5.0)#11
fleveque merged 1 commit into
mainfrom
feat/search

Conversation

@fleveque

Copy link
Copy Markdown
Owner

Summary

  • New YahooFinanceClient::Stock.search(query, count:) calling Yahoo's v1/finance/search endpoint
  • Unauthenticated request by default, falls back to the cookie+crumb flow only if Yahoo demands it
  • Normalized result shape: { symbol, name, exchange, type, type_display }
  • Reuses the existing 5-min @cache; returns [] on any error
  • Bumps version to 0.5.0 and updates CHANGELOG + README

The name fallback prefers longname when shortname echoes the symbol (mutual funds like Baelo Dividendo Creciente come back this way), so users see "Baelo Dividendo Creciente A FI" instead of "0P0001QYEF.F".

Also adds mise.toml pinning ruby = "3.4.1" so contributors and CI pick up a consistent toolchain (no .ruby-version existed before).

Test plan

  • bundle exec rake (62 examples, 0 failures; rubocop 0 offenses)
  • After merge: tag v0.5.0 via rake release and verify it lands on rubygems.org

🤖 Generated with Claude Code

Calls Yahoo's v1/finance/search endpoint (unauthenticated by default, falls
back to the cookie+crumb flow only if Yahoo demands it), normalizes results
to symbol/name/exchange/type/type_display, caches under the existing 5-min
@cache, and returns [] on any error.

Also pins ruby = "3.4.1" via mise.toml so contributors and CI pick up a
consistent toolchain.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@fleveque fleveque merged commit b599767 into main May 15, 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