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