Skip to main content

SingleRateResponse

Type Alias SingleRateResponse 

Source
pub type SingleRateResponse = LatestResponse;
Expand description

Response from the /v1/latest endpoint when requesting a single pair. Re-uses LatestResponse internally.

Aliased Type§

pub struct SingleRateResponse {
    pub success: bool,
    pub base: String,
    pub date: String,
    pub rates: HashMap<String, f64>,
}

Fields§

§success: bool

Whether the request was successful.

§base: String

The base currency code (e.g. “USD”).

§date: String

ISO-8601 date of the rates.

§rates: HashMap<String, f64>

Map of currency code to exchange rate.