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