Skip to content

fix(api): Prefer Google qualified quote formats#178

Merged
itswcl merged 1 commit into
mainfrom
codex/fix-google-provider-order
Jun 2, 2026
Merged

fix(api): Prefer Google qualified quote formats#178
itswcl merged 1 commit into
mainfrom
codex/fix-google-provider-order

Conversation

@itswcl

@itswcl itswcl commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • try Google exchange-qualified formats before Yahoo fallback for plain stock symbols
  • keep Yahoo quote/chart fallback behavior after Google-qualified attempts fail
  • add regression coverage so raw AAPL can recover through AAPL:NASDAQ without touching Yahoo

Root Cause

Plain symbols like AAPL first hit Google as /quote/AAPL, which can return a beta page without the quote payload. The code then used Yahoo before trying Google-qualified formats like AAPL:NASDAQ, so Yahoo succeeded and became the visible source for most normal tickers.

Validation

  • npm test -- --run src/services/ticker.service.test.ts
  • npm run build
  • live local service probe: AAPL, AMD, and QQQ now resolve to Google Finance :NASDAQ URLs

@itswcl itswcl merged commit f894381 into main Jun 2, 2026
2 checks passed
@itswcl itswcl deleted the codex/fix-google-provider-order branch June 2, 2026 22:27
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