Expand description
RSS/Atom news feed aggregation.
Fetches and parses RSS/Atom feeds from named financial sources or arbitrary URLs. Multiple feeds can be fetched and merged in one call with automatic deduplication.
§Quick Start
use finance_query::feeds::{self, FeedSource};
// Fetch Federal Reserve press releases
let fed_news = feeds::fetch(FeedSource::FederalReserve).await?;
for entry in fed_news.iter().take(5) {
println!("{}: {}", entry.published.as_deref().unwrap_or("?"), entry.title);
}
// Aggregate multiple sources
let news = feeds::fetch_all([
FeedSource::FederalReserve,
FeedSource::SecPressReleases,
FeedSource::MarketWatch,
]).await?;
println!("Total entries: {}", news.len());Structs§
- Feed
Entry - A single entry from an RSS/Atom feed.
Enums§
- Feed
Source - A named or custom RSS/Atom feed source.
Functions§
- fetch
- Fetch and parse a single feed source.
- fetch_
all - Fetch multiple feed sources concurrently and merge the results.
- parse_
bytes - Parse already-fetched RSS/Atom bytes into entries, without a network round-trip.