Expand description
§AllRatesToday Rust SDK
Official Rust client for the AllRatesToday exchange rate API. Provides access to real-time mid-market exchange rates for 160+ currencies.
§Quick Start
use allratestoday::AllRatesToday;
let client = AllRatesToday::new("art_live_your_api_key");
// Get latest rates for USD against EUR and GBP
let rates = client.latest("USD", Some(&["EUR", "GBP"])).unwrap();
println!("{:?}", rates);
// Convert 100 USD to EUR
let result = client.convert("USD", "EUR", 100.0).unwrap();
println!("{:?}", result);Structs§
- AllRates
Today - The main client for interacting with the AllRatesToday API.
- Convert
Response - Response from the
/v1/convertendpoint. - Currency
Symbol - A single currency entry returned by the
/v1/symbolsendpoint. - Historical
Rate Point - A single data point within a historical rate series.
- Historical
Rate Series Response - Response from the
/v1/historical-ratesendpoint (preset periods). - Historical
Rates Response - Response from the
/v1/historicalendpoint. - Latest
Rates Response - Response from the
/v1/latestendpoint. - Rate
Response - Response from the
/v1/rateendpoint (single pair). - Symbols
Response - Response from the
/v1/symbolsendpoint. - Time
Series Response - Response from the
/v1/timeseriesendpoint.
Enums§
- AllRates
Today Error - Errors that can occur when using the AllRatesToday SDK.
Type Aliases§
- Result
- Convenience alias used throughout the crate.