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