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:
BaseRatesResponseRepresent 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:
BaseRatesResponseRepresent 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:
BaseResponseRepresent a base rates response.
- base: str¶
- classmethod from_dict(d, *, dialect=None)¶
- rates: dict[str, float]¶
- timestamp: int¶
- to_dict()¶