Skip to main content

Module feeds

Module feeds 

Source
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§

FeedEntry
A single entry from an RSS/Atom feed.

Enums§

FeedSource
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.