Class EntsoeApi
java.lang.Object
io.openems.edge.timeofusetariff.entsoe.EntsoeApi
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DateTimeFormatter
static final DateTimeFormatter
static final String
static final ZoneId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
query
(String token, String areaCode, ZonedDateTime fromDate, ZonedDateTime toDate) Queries the ENTSO-E API for day-ahead prices.
-
Field Details
-
FORMATTER_MINUTES
-
FORMATTER_SECONDS
-
UTC
-
URI
- See Also:
-
-
Constructor Details
-
EntsoeApi
public EntsoeApi()
-
-
Method Details
-
query
protected static String query(String token, String areaCode, ZonedDateTime fromDate, ZonedDateTime toDate) throws IOException Queries the ENTSO-E API for day-ahead prices.- Parameters:
token
- the Security TokenareaCode
- Area EIC code; see https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_areasfromDate
- the From-DatetoDate
- the To-Date- Returns:
- The response string.
- Throws:
IOException
- on error
-