abstract_api.exchange_rates.exchange_rates_conversion_response module#
- class abstract_api.exchange_rates.exchange_rates_conversion_response.ExchangeRatesConversionResponse(response: Response, date_included_in_request: bool | None = False)[source]#
Bases:
JSONResponseExchange rate conversion service response.
- property base: str | None#
The base currency used to get the exchange rates.
- property base_amount: float | None#
The amount of the base currency from the request.
- property converted_amount: float | None#
The amount after conversion.
The amount of the target currency that the base_amount has been converted into.
- property date: str | None#
The date the currencies were pulled from.
This is per successful request and returned only when ‘date’ parameter is passed in request. This is mutually-exclusive with ‘last_updated’ in response.
- property exchange_rate: float | None#
The exchange rate used in conversion.
- property last_updated: int | None#
The Unix timestamp of when the returned data was last updated.
This is returned if ‘date’ parameter was not passed in request. This is mutually-exclusive with ‘date’ in response.
- property target: str | None#
The target currency that the base_amount was converted into.