Skip to main content

finance_query/domains/
filings.rs

1//! SEC filing query handle.
2//!
3//! Created via [`Providers::filings`](crate::Providers::filings). Always
4//! available — backed by EDGAR (keyless) with optional Polygon fallback.
5
6use crate::error::Result;
7
8domain_handle! {
9    /// SEC filing data backed by configured data providers.
10    ///
11    /// Created via [`Providers::filings`](crate::Providers::filings).
12    pub struct Filings { symbol, symbol }
13}
14
15impl Filings {
16    /// Fetch SEC filings for this symbol.
17    pub async fn get(&self) -> Result<crate::models::filings::ProviderFilings> {
18        fetch_via!(
19            self,
20            symbol,
21            FILINGS,
22            fetch_filings,
23            crate::models::filings::ProviderFilings
24        )
25    }
26}