Expand description
zakat-providers - Live Price Fetching for Zakat
This crate provides asynchronous price providers for fetching live gold and silver prices from various APIs.
§Features
live-pricing- Enable live API providers (e.g., Binance)force-dns-bypass- Force use of hardcoded IPs for restricted networks
Structs§
- Best
Effort Price Provider - A “best effort” price provider that uses a primary provider with a static fallback.
- Binance
Price Provider - A price provider that fetches live gold prices from Binance Public API.
- Cached
Price Provider - A decorator that caches prices for a specified duration.
- Failover
Price Provider - A resilient price provider that tries multiple providers in sequence.
- File
System Price Cache - Gold
ApiProvider - GoldApi.io Provider (Skeleton)
- Metal
Price Provider - MetalPriceAPI Provider (Skeleton)
- Multi
Source Price Provider - A provider that chains multiple other providers for resilience.
- Network
Config - Network configuration for live price providers.
- Prices
- Represents current market prices for metals used in Zakat calculations.
- Static
Historical Price Provider - A seedable, in-memory provider for historical prices.
- Static
Price Provider - A static price provider for testing and development.
Traits§
- Historical
Price Provider - Trait for fetching historical metal prices.
- Price
Provider - Trait for fetching current metal prices.