Skip to content

fix: sequential Yahoo calls, sector fallback, and missing try-catch guards#406

Merged
koala73 merged 1 commit intomainfrom
fix/sequential-yahoo-and-sector-fallback
Feb 26, 2026
Merged

fix: sequential Yahoo calls, sector fallback, and missing try-catch guards#406
koala73 merged 1 commit intomainfrom
fix/sequential-yahoo-and-sector-fallback

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Feb 26, 2026

Summary

  • list-commodity-quotes: Replace Promise.all with fetchYahooQuotesBatch to prevent Yahoo 429 rate limiting
  • get-sector-summary: Add Yahoo Finance fallback when FINNHUB_API_KEY is missing (previously returned empty)
  • list-etf-flows: Sequential fetch loop for 10 ETFs + add missing try-catch around cachedFetchJson
  • get-macro-signals: Replace unnecessary Promise.allSettled([single]) wrappers with direct await + .catch()

Test plan

  • npx tsc --noEmit — clean
  • npm run test:data — 116/116 pass
  • Verify sector heatmap loads without Finnhub key (Yahoo fallback)
  • Verify commodities panel loads without 429 errors
  • Verify ETF flows panel handles Redis/Yahoo failures gracefully

…uards

- list-commodity-quotes: replace Promise.all with fetchYahooQuotesBatch to prevent Yahoo 429
- get-sector-summary: add Yahoo Finance fallback when FINNHUB_API_KEY is missing
- list-etf-flows: sequential fetch loop + add missing try-catch around cachedFetchJson
- get-macro-signals: replace unnecessary Promise.allSettled([single]) with direct await
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Building Building Preview, Comment Feb 26, 2026 9:12am
worldmonitor-finance Building Building Preview, Comment Feb 26, 2026 9:12am
worldmonitor-happy Building Building Preview, Comment Feb 26, 2026 9:12am
worldmonitor-startup Building Building Preview, Comment Feb 26, 2026 9:12am

Request Review

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