EuroEndpoint
cl_forge.cmf.EuroEndpoint
dataclass
¶
EuroEndpoint(api_key: str)
Bases: CmfEndpoint[EuroRecord]
Client for the CMF Euro endpoints.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key
|
str
|
CMF API key. |
required |
Source code in src/cl_forge/core/endpoints.py
current
¶
current() -> EuroRecord
year
¶
year(year: int | None = None) -> list[EuroRecord]
Get the Euro values for a given year.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
year
|
int | None
|
The year for which to retrieve Euro values. If None, defaults to the current year. |
None
|
Returns:
| Type | Description |
|---|---|
list[EuroRecord]
|
A list of Euro records for the specified year. |