pub struct FmpClient { /* private fields */ }Expand description
Main client for interacting with the FMP API
Implementations§
Source§impl FmpClient
impl FmpClient
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Create a new FMP client with the API key from environment variable
Sourcepub fn with_api_key(api_key: impl Into<String>) -> Result<Self>
pub fn with_api_key(api_key: impl Into<String>) -> Result<Self>
Create a new FMP client with the provided API key
Sourcepub fn builder() -> FmpClientBuilder
pub fn builder() -> FmpClientBuilder
Get a builder for creating a customized client
Sourcepub fn company_search(&self) -> CompanySearch
pub fn company_search(&self) -> CompanySearch
Access company search endpoints
Sourcepub fn stock_directory(&self) -> StockDirectory
pub fn stock_directory(&self) -> StockDirectory
Access stock directory endpoints
Sourcepub fn company_info(&self) -> CompanyInfo
pub fn company_info(&self) -> CompanyInfo
Access company information endpoints
Sourcepub fn financials(&self) -> Financials
pub fn financials(&self) -> Financials
Access financial statements endpoints
Sourcepub fn corporate_actions(&self) -> CorporateActions
pub fn corporate_actions(&self) -> CorporateActions
Access earnings, dividends, and splits endpoints
Sourcepub fn market_performance(&self) -> MarketPerformance
pub fn market_performance(&self) -> MarketPerformance
Access market performance endpoints
Sourcepub fn sec_filings(&self) -> SecFilings
pub fn sec_filings(&self) -> SecFilings
Access SEC filings endpoints
Sourcepub fn insider_trades(&self) -> InsiderTrades
pub fn insider_trades(&self) -> InsiderTrades
Access insider trading endpoints
Sourcepub fn commodities(&self) -> Commodities
pub fn commodities(&self) -> Commodities
Access commodity endpoints
Sourcepub fn technical_indicators(&self) -> TechnicalIndicators
pub fn technical_indicators(&self) -> TechnicalIndicators
Access technical indicators endpoints
Sourcepub fn institutional(&self) -> Institutional
pub fn institutional(&self) -> Institutional
Access institutional ownership (Form 13F) endpoints
Sourcepub fn market_hours(&self) -> MarketHours
pub fn market_hours(&self) -> MarketHours
Access market hours endpoints
Sourcepub fn mutual_funds(&self) -> MutualFunds
pub fn mutual_funds(&self) -> MutualFunds
Access mutual funds endpoints
Sourcepub fn transcripts(&self) -> Transcripts
pub fn transcripts(&self) -> Transcripts
Access earnings transcript endpoints
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FmpClient
impl !RefUnwindSafe for FmpClient
impl Send for FmpClient
impl Sync for FmpClient
impl Unpin for FmpClient
impl !UnwindSafe for FmpClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more