Expand description
RSS/Atom news feed aggregation.
Requires the rss feature flag.
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.