abstract_api.exchange_rates._multiple_exchange_rates_response module#

class abstract_api.exchange_rates._multiple_exchange_rates_response.ExchangeRate(currency: str, rate: float)[source]#

Bases: object

Exchange rate entity in response.

property currency: str#

Target currency.

property rate: float#

Exchange rate versus the base currency.

class abstract_api.exchange_rates._multiple_exchange_rates_response.MultipleExchangeRatesResponse(response: Response, response_fields: frozenset[str], list_response: bool = False)[source]#

Bases: JSONResponse

Base response for services that return multiple exchange rates.

property base: str | None#

The base currency used to get the exchange rates.

property exchange_rates: tuple[ExchangeRate] | None#

Target currencies exchange rates versus the base currency.