Expand description
§FMP-RS
An ergonomic Rust wrapper for the Financial Modeling Prep (FMP) API.
This library provides a comprehensive, type-safe interface to the FMP API, with support for mocking and testing without making actual API requests.
§Example
use fmp_rs::FmpClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = FmpClient::new();
let quote = client.quote().get_quote("AAPL").await?;
println!("Apple stock price: ${}", quote.price);
Ok(())
}Re-exports§
pub use client::FmpClient;pub use client::FmpClientBuilder;pub use error::Error;pub use error::Result;pub use bulk_processing::BulkProcessingConfig;pub use bulk_processing::BulkProgress;pub use bulk_processing::ChunkProcessor;pub use bulk_processing::DataAggregator;pub use cache::CacheConfig;pub use cache::CacheMetrics;pub use cache::IntelligentCache;pub use cache::SmartCacheStrategy;pub use production::Metrics;pub use production::PoolConfig;pub use production::ProductionExecutor;pub use production::RateLimitConfig;pub use production::RetryConfig;pub use production_client::ProductionClientBuilder;pub use production_client::ProductionConfig;pub use production_client::ProductionFmpClient;pub use endpoints::*;pub use models::common::*;
Modules§
- bulk_
processing - Memory-optimized bulk data processing for large datasets.
- cache
- Intelligent caching layer for FMP API responses.
- client
- HTTP client for interacting with the FMP API.
- endpoints
- API endpoint implementations.
- error
- Error types for the FMP client.
- models
- Data models for FMP API responses.
- production
- Production-grade enhancements for the FMP client.
- production_
client - Production-grade FMP client with advanced features.