load_get: This wraps a GET request to the API

Description Usage Arguments Examples

View source: R/load_get.R

Description

This wraps a GET request to the API

Usage

1
2
3
4
5
6
7
8
9
load_get(documentType = NULL, processType = NULL, businessType = NULL,
  psrType = NULL, type_MarketAgreement.Type = NULL,
  contract_MarketAgreement.Type = NULL, auction.Type = NULL,
  auction.Category = NULL,
  classificationSequence_AttributeInstanceComponent.Position = NULL,
  outBiddingZone_Domain = NULL, biddingZone_Domain = NULL,
  controlArea_Domain = NULL, in_Domain = NULL, out_Domain = NULL,
  acquiring_Domain = NULL, timeInterval = NULL, periodStart = NULL,
  periodEnd = NULL, securityToken = Sys.getenv("ENTSOE_PAT"))

Arguments

documentType

The coded type of the document being sent. The document type identifies the principal characteristic of the status request. Refer to ENTSO-E Core Component Code list document for valid codes. The document type value must be exactly 3 alphanumeric characters (no blanks). This information is mandatory. There's no dependency requirements.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
library(entsoeR)

# Actual Total Load
# https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_load_domain
# 4.1.1
# - one year range limit
# - minimum time interval in query response is one MTU period.
# Mandatory params
# - docuemtnType
# - ProcessType
# - outBiddingZone_Domain
# - TimeInterval or combination of PeriodStart and PeriodEnd
load_get(documentType = "A65", 
         processType = "A16", 
         periodStart = "201702012300", 
         periodEnd = "201702172300", 
         outBiddingZone_Domain = "10YCZ-CEPS-----N")
 
 # 4.1.2. Day-Ahead Total Load Forecast [6.1.B]
 load_get(documentType = "A65", 
          processType = "A01", 
          periodStart = "201702162300", 
          periodEnd = "201702192300", 
          outBiddingZone_Domain = "10YCZ-CEPS-----N")
          
 # 4.1.3. Week-Ahead Total Load Forecast [6.1.C]
 # This returns a wierd result, see the second
 # call where there are two different business types.
 load_get(documentType = "A65", 
          processType = "A32", 
          periodStart = "201702162300", 
          periodEnd = "201703192300", 
          outBiddingZone_Domain = "10YCZ-CEPS-----N")
 load_get(documentType = "A65", 
          processType = "A32", 
          periodStart = "201512312300", 
          periodEnd = "201612312300", 
          outBiddingZone_Domain = "10YCZ-CEPS-----N", return_all = TRUE)
 
 # 4.1.5. Year-Ahead Total Load Forecast [6.1.E]
 # NOT WORKING resolution not implemented.
 load_get(documentType = "A65", 
          processType = "A33", 
          periodStart = "201612312300", 
          periodEnd = "201712312300", 
          outBiddingZone_Domain = "10YCZ-CEPS-----N")

krose/entsoeR documentation built on Oct. 10, 2020, 4:35 p.m.