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