pub struct ProductionFmpClient { /* private fields */ }Expand description
Production FMP client with advanced features
Implementations§
Source§impl ProductionFmpClient
impl ProductionFmpClient
Sourcepub async fn new(config: ProductionConfig) -> Result<Self>
pub async fn new(config: ProductionConfig) -> Result<Self>
Create a new production client
Sourcepub fn builder() -> ProductionClientBuilder
pub fn builder() -> ProductionClientBuilder
Create a builder for production client
Sourcepub async fn get_cached<T>(
&self,
endpoint: &str,
query_params: Option<&str>,
) -> Result<T>where
T: DeserializeOwned,
pub async fn get_cached<T>(
&self,
endpoint: &str,
query_params: Option<&str>,
) -> Result<T>where
T: DeserializeOwned,
Execute a cached API request
Sourcepub async fn get_with_query<T, Q>(&self, endpoint: &str, query: &Q) -> Result<T>where
T: DeserializeOwned,
Q: Serialize,
pub async fn get_with_query<T, Q>(&self, endpoint: &str, query: &Q) -> Result<T>where
T: DeserializeOwned,
Q: Serialize,
Execute API request with query parameters
Sourcepub async fn process_bulk_data<T, F, R>(
&self,
data: Vec<T>,
processor: F,
) -> Result<Vec<R>>
pub async fn process_bulk_data<T, F, R>( &self, data: Vec<T>, processor: F, ) -> Result<Vec<R>>
Process bulk data with memory optimization
Sourcepub async fn get_metrics(&self) -> Option<Metrics>
pub async fn get_metrics(&self) -> Option<Metrics>
Get performance metrics
Sourcepub async fn get_cache_metrics(&self) -> Option<CacheMetrics>
pub async fn get_cache_metrics(&self) -> Option<CacheMetrics>
Get cache metrics
Sourcepub async fn cleanup_cache(&self)
pub async fn cleanup_cache(&self)
Cleanup expired cache entries
Sourcepub async fn health_check(&self) -> Result<bool>
pub async fn health_check(&self) -> Result<bool>
Get health status
Sourcepub async fn get_quote(&self, symbol: &str) -> Result<Vec<StockQuote>>
pub async fn get_quote(&self, symbol: &str) -> Result<Vec<StockQuote>>
Get a quote for a single symbol
Sourcepub async fn get_quotes_bulk(&self, symbols: &[&str]) -> Result<Vec<StockQuote>>
pub async fn get_quotes_bulk(&self, symbols: &[&str]) -> Result<Vec<StockQuote>>
Get quotes for multiple symbols using bulk processing
Sourcepub async fn check_health(&self) -> Result<bool>
pub async fn check_health(&self) -> Result<bool>
Check API health (alias for health_check)
Sourcepub async fn get_performance_metrics(&self) -> Option<Metrics>
pub async fn get_performance_metrics(&self) -> Option<Metrics>
Get performance metrics (alias for get_metrics)
Sourcepub fn quote(&self) -> ProductionQuote<'_>
pub fn quote(&self) -> ProductionQuote<'_>
Access quote endpoints with production features
Sourcepub fn company_info(&self) -> ProductionCompanyInfo<'_>
pub fn company_info(&self) -> ProductionCompanyInfo<'_>
Access company info endpoints with production features
Auto Trait Implementations§
impl Freeze for ProductionFmpClient
impl !RefUnwindSafe for ProductionFmpClient
impl Send for ProductionFmpClient
impl Sync for ProductionFmpClient
impl Unpin for ProductionFmpClient
impl !UnwindSafe for ProductionFmpClient
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