Repository navigation
feat(fetcher): add stock_watchlist (Yahoo Finance, 9 shapes) - #211
Conversation
Yahoo Finance v8 chart snapshot for a configurable list of tickers, mirroring the shape profile of crypto_watchlist (#210). Host-fixed query1.finance.yahoo.com so Safety::Safe despite the network call; symbol allowlist (alphanumeric plus . ^ - =) plus per-segment percent-encoding closes the obvious injection routes. Per-symbol fetches fan out via JoinSet and re-sort by input order; an individual 404 silently skips the row so a typo in one ticker doesn't sink the watchlist. Refs #41 / #68. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #211 +/- ##
==========================================
- Coverage 96.26% 96.10% -0.17%
==========================================
Files 150 151 +1
Lines 44086 44778 +692
==========================================
+ Hits 42441 43032 +591
- Misses 1645 1746 +101
🚀 New features to boost your workflow:
|
Summary
crypto_watchlist(feat(fetcher): add crypto_watchlist (CoinGecko, 9 shapes) #210) one-for-one on shape coverage and Safety class.tokio::task::JoinSetand re-sort by input order; an individual404silently skips the row so a typo in one ticker doesn't sink the rest.query1.finance.yahoo.com+ path-segment percent-encoding for^/=(^GSPC,EURUSD=X); symbol allowlist locks the URL down to[A-Z0-9.^\-=].Ticks the
[ ] stock_watchlistcheckbox under Finance / market in #68 (catalog index #41).entries,text,text_block,markdown_text_block,linked_text_block,number_series,point_series,bars,badgeOptions
symbols["AAPL", "MSFT"]["AAPL", "7203.T", "^GSPC"]). Capped at 20 entries.No
vs_currencyoption — Yahoo returns each ticker priced in its native listing currency (AAPL/USD,7203.T/JPY), so the row formatter picks the glyph per stock and falls through to ISO-suffix for currencies without a known glyph (CAD, AUD, …).Compatible renderers
entriesgrid_table,animated_*texttext_plain,text_ascii,animated_typewriter,animated_figlet_morph,animated_*text_blocklist_plain,animated_*markdown_text_blocktext_markdownlinked_text_blocklist_linksnumber_serieschart_sparkline,chart_histogram,animated_*point_serieschart_line,chart_scatter,animated_*barschart_bar,chart_pie,list_ranking,animated_*badgestatus_badge,animated_*Notes
Badge/Entriesstatus row stands out, but the sign / ▲▼ arrow lives in the label. A watchlist isn't sentiment-bearing; the user might be long or short any of the rows.NumberSeriescarries cents above the period min, not raw cents.chart_sparklinenormalises against the series max with an implicit zero floor, so a high-magnitude ticker (BRK-A around $600k) otherwise collapses into a flat band glued to the top of the slot. Same approach ascrypto_watchlist.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets -- -D warningscargo test(2027 passed; 26 new unit tests forstock_watchlist)cargo run --bin splashboard -- catalog fetcher stock_watchlistshows the option schema and full set of compatible rendererscargo test -- --ignored stock_watchlist::tests::live) printsAAPL/MSFTquotes from the real Yahoo endpointcargo run --bin splashboardagainst a local.splashboard/dashboard.tomlexercisingentries/badge/number_series/bars/point_series/markdown_text_block(mixed USD + JPY + index, including^GSPCto verify URL encoding)🤖 Generated with Claude Code