aioopenexchangerates.model package

Provide a model for the Open Exchange Rates API.

class aioopenexchangerates.model.Latest(disclaimer: str, license: str, timestamp: int, base: str, rates: dict[str, float])[source]

Bases: BaseRatesResponse

Represent the model for endpoint latest.json.

classmethod from_dict(d, *, dialect=None)
to_dict()

Submodules

aioopenexchangerates.model.latest module

Provide a model for endpoint latest.json.

class aioopenexchangerates.model.latest.Latest(disclaimer: str, license: str, timestamp: int, base: str, rates: dict[str, float])[source]

Bases: BaseRatesResponse

Represent the model for endpoint latest.json.

classmethod from_dict(d, *, dialect=None)
to_dict()

aioopenexchangerates.model.response module

Provide a base response model.

class aioopenexchangerates.model.response.BaseRatesResponse(disclaimer: str, license: str, timestamp: int, base: str, rates: dict[str, float])[source]

Bases: BaseResponse

Represent a base rates response.

base: str
classmethod from_dict(d, *, dialect=None)
rates: dict[str, float]
timestamp: int
to_dict()
class aioopenexchangerates.model.response.BaseResponse(disclaimer: str, license: str)[source]

Bases: DataClassJSONMixin

Represent a base response.

disclaimer: str
classmethod from_dict(d, *, dialect=None)
license: str
to_dict()