dayahead
frequenz.lib.notebooks.dayahead ¤
Functions for CLI tool to interact with the day-ahead pricing API.
Functions:¤
frequenz.lib.notebooks.dayahead.fetch_day_ahead_prices ¤
fetch_day_ahead_prices(
entsoe_key: str | None,
start: datetime,
end: datetime,
country_code: str,
) -> Series
Fetch day-ahead prices for a given country code as a normalized series.
| PARAMETER | DESCRIPTION |
|---|---|
entsoe_key
|
The API key for the Entsoe API. If not provided, the value
is read from the
TYPE:
|
start
|
The start date of the query.
TYPE:
|
end
|
The end date of the query.
TYPE:
|
country_code
|
The country code for which to query the prices.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Series
|
A pandas series named |
| RAISES | DESCRIPTION |
|---|---|
ModuleNotFoundError
|
If the optional entsoe dependency is not installed. |
ValueError
|
If the time window is invalid or no API key is available. |