Skip to contents

Net positions resulting from implicit auctions per bidding zone.

Usage

net_positions(
  eic = NULL,
  period_start = lubridate::ymd(Sys.Date() - lubridate::days(x = 1L), tz = "CET"),
  period_end = lubridate::ymd(Sys.Date(), tz = "CET"),
  contract_type = "A01",
  tidy_output = FALSE,
  security_token = Sys.getenv("ENTSOE_PAT")
)

Arguments

eic

Energy Identification Code of the bidding zone

period_start

POSIXct or YYYY-MM-DD HH:MM:SS format One year range limit applies

period_end

POSIXct or YYYY-MM-DD HH:MM:SS format One year range limit applies

contract_type

Contract market agreement type; "A01" = Day ahead "A07" = Intraday Defaults to "A01" (Day ahead)

tidy_output

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

security_token

Security token for ENTSO-E transparency platform

Examples

df <- entsoeapi::net_positions(
  eic = "10YCZ-CEPS-----N",
  period_start = lubridate::ymd(x = "2015-12-31", tz = "CET"),
  period_end = lubridate::ymd(x = "2016-01-01", tz = "CET"),
  contract_type = "A01",
  tidy_output = TRUE
)
#> 
#> ── API call ────────────────────────────────────────────────────────────────────────────────────────────────────────────
#> → https://web-api.tp.entsoe.eu/api?documentType=A25&businessType=B09&contract_MarketAgreement.Type=A01&in_Domain=10YCZ-CEPS-----N&out_Domain=10YCZ-CEPS-----N&periodStart=201512302300&periodEnd=201512312300&securityToken=<...>
#> <- HTTP/2 200 
#> <- date: Thu, 05 Mar 2026 16:13:00 GMT
#> <- content-type: text/xml
#> <- content-disposition: inline; filename="Implicit Allocations Net Positions Daily_201512302300-201512312300.xml"
#> <- x-content-type-options: nosniff
#> <- x-xss-protection: 0
#> <- vary: accept-encoding
#> <- content-encoding: gzip
#> <- strict-transport-security: max-age=15724800; includeSubDomains
#> <- 
#>  response has arrived
#>  No additional definitions added!

str(df)
#> tibble [24 × 21] (S3: tbl_df/tbl/data.frame)
#>  $ ts_in_domain_mrid                    : chr [1:24] "10YCZ-CEPS-----N" "REGION_CODE-----" "10YCZ-CEPS-----N" "10YCZ-CEPS-----N" ...
#>  $ ts_in_domain_name                    : chr [1:24] "Czech Republic" NA "Czech Republic" "Czech Republic" ...
#>  $ ts_out_domain_mrid                   : chr [1:24] "REGION_CODE-----" "10YCZ-CEPS-----N" "REGION_CODE-----" "REGION_CODE-----" ...
#>  $ ts_out_domain_name                   : chr [1:24] NA "Czech Republic" NA NA ...
#>  $ type                                 : chr [1:24] "A25" "A25" "A25" "A25" ...
#>  $ type_def                             : chr [1:24] "Allocation result document" "Allocation result document" "Allocation result document" "Allocation result document" ...
#>  $ ts_contract_market_agreement_type    : chr [1:24] "A01" "A01" "A01" "A01" ...
#>  $ ts_contract_market_agreement_type_def: chr [1:24] "Daily contract" "Daily contract" "Daily contract" "Daily contract" ...
#>  $ ts_auction_type                      : chr [1:24] "A01" "A01" "A01" "A01" ...
#>  $ ts_auction_type_def                  : chr [1:24] "Implicit" "Implicit" "Implicit" "Implicit" ...
#>  $ ts_business_type                     : chr [1:24] "B09" "B09" "B09" "B09" ...
#>  $ ts_business_type_def                 : chr [1:24] "Net position" "Net position" "Net position" "Net position" ...
#>  $ created_date_time                    : POSIXct[1:24], format: "2026-03-05 16:13:00" "2026-03-05 16:13:00" "2026-03-05 16:13:00" "2026-03-05 16:13:00" ...
#>  $ revision_number                      : num [1:24] 1 1 1 1 1 1 1 1 1 1 ...
#>  $ ts_resolution                        : chr [1:24] "PT60M" "PT60M" "PT60M" "PT60M" ...
#>  $ ts_time_interval_start               : POSIXct[1:24], format: "2015-12-30 23:00:00" "2015-12-31 00:00:00" "2015-12-31 01:00:00" "2015-12-31 01:00:00" ...
#>  $ ts_time_interval_end                 : POSIXct[1:24], format: "2015-12-31 00:00:00" "2015-12-31 01:00:00" "2015-12-31 04:00:00" "2015-12-31 04:00:00" ...
#>  $ ts_mrid                              : num [1:24] 1 2 3 3 3 4 5 5 5 5 ...
#>  $ ts_point_dt_start                    : POSIXct[1:24], format: "2015-12-30 23:00:00" "2015-12-31 00:00:00" "2015-12-31 01:00:00" "2015-12-31 02:00:00" ...
#>  $ ts_point_quantity                    : num [1:24] 44.8 158.4 65.8 178.6 26.2 ...
#>  $ ts_quantity_measure_unit_name        : chr [1:24] "MAW" "MAW" "MAW" "MAW" ...