Skip to main content

FilingsProvider

Trait FilingsProvider 

Source
pub trait FilingsProvider: ProviderCore {
    // Required method
    fn fetch_filings<'life0, 'life1, 'async_trait>(
        &'life0 self,
        symbol: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<ProviderFilings>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn fetch_filing_sections<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _accession_number: &'life1 str,
        _form: FilingSectionForm,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FilingSection>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn fetch_risk_factors<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _symbol: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RiskFactor>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn fetch_filing_search<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        _symbol: Option<&'life1 str>,
        _query: &'life2 str,
        _filters: &'life3 FilingSearchFilters,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FilingSearchHit>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait { ... }
    fn fetch_insider_trades<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _symbol: &'life1 str,
        _limit: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<InsiderTrade>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn fetch_institutional_holdings<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _symbol: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<InstitutionalHolding>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn fetch_congressional_trades<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _symbol: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<CongressionalTrade>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn fetch_fails_to_deliver<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _symbol: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FailToDeliver>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

crate::Capability::FILINGS — SEC filing data.

Required Methods§

Source

fn fetch_filings<'life0, 'life1, 'async_trait>( &'life0 self, symbol: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderFilings>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch regulatory filings for one symbol.

Provided Methods§

Source

fn fetch_filing_sections<'life0, 'life1, 'async_trait>( &'life0 self, _accession_number: &'life1 str, _form: FilingSectionForm, ) -> Pin<Box<dyn Future<Output = Result<Vec<FilingSection>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch the sectioned text of one filing by accession number.

Source

fn fetch_risk_factors<'life0, 'life1, 'async_trait>( &'life0 self, _symbol: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<RiskFactor>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch risk factors extracted from a symbol’s SEC filings.

Search filing text rather than looking filings up by filer.

symbol scopes the search to one filer; the provider resolves it to whatever identifier its own index is keyed by (a CIK, for EDGAR). None searches every filer.

Source

fn fetch_insider_trades<'life0, 'life1, 'async_trait>( &'life0 self, _symbol: &'life1 str, _limit: u32, ) -> Pin<Box<dyn Future<Output = Result<Vec<InsiderTrade>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch insider transactions reported on Forms 3/4/5, newest filing first.

Source

fn fetch_institutional_holdings<'life0, 'life1, 'async_trait>( &'life0 self, _symbol: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<InstitutionalHolding>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch the latest reported 13F institutional holdings for a filer.

Source

fn fetch_congressional_trades<'life0, 'life1, 'async_trait>( &'life0 self, _symbol: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<CongressionalTrade>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch congressional (senate) stock-trade disclosures for a symbol.

Source

fn fetch_fails_to_deliver<'life0, 'life1, 'async_trait>( &'life0 self, _symbol: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<FailToDeliver>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch SEC fails-to-deliver data for a symbol.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§