countertrading: title Get Countertrading (13.1.B)

View source: R/en_congestion.R

countertradingR Documentation

title Get Countertrading (13.1.B)

Description

Buying or cancelling generation on different side of the border to relieve congested cross-border lines that exceeds its capacity. The time interval in the query response depends on duration of matching counter trades 100 documents limit applies!!

Usage

countertrading(
  eic_in = NULL,
  eic_out = NULL,
  period_start = lubridate::ymd(Sys.Date() - lubridate::days(x = 1L), tz = "CET"),
  period_end = lubridate::ymd(Sys.Date(), tz = "CET"),
  tidy_output = TRUE,
  security_token = Sys.getenv("ENTSOE_PAT")
)

Arguments

eic_in

Energy Identification Code of the control area/bidding zone

eic_out

Energy Identification Code of the control area/bidding zone

period_start

POSIXct or YYYY-MM-DD HH:MM:SS format

period_end

POSIXct or YYYY-MM-DD HH:MM:SS format

tidy_output

Defaults to TRUE. If TRUE, then flatten nested tables.

security_token

Security token for ENTSO-E transparency platform

Examples

# Counter trading between Germany and Denmark.
df <- entsoeapi::countertrading(
  eic_in       = "10Y1001A1001A82H",
  eic_out      = "10YDK-1--------W",
  period_start = lubridate::ymd(x = "2024-09-01", tz = "CET"),
  period_end   = lubridate::ymd(x = "2024-10-01", tz = "CET"),
  tidy_output  = TRUE
)

str(df)


krose/entsoeapi documentation built on Jan. 13, 2025, 9:01 p.m.