getReserveAuctions: getReserveAuctions

Description Usage Arguments Value Examples

View source: R/minScript.R

Description

This function is the production method of @seealso getOperatingReserveAuctions in the @seealso scrapeData.R script. It is without console prints for faster computation and several steps are combined. This main function retrieves the operating reserve auction results from https://www.regelleistung.net/ext/tender/. The data contains all auctions from a given start date till an end date. Be aware of the weekly data and take care of the latest week. CAUTION: IF YOUR START WEEK CONTAINS NO AUCTION RESULTS, THIS COULD LEAD TO AN ERROR! –> BUT NORMALLY THERE SHOULD BE NO START WEEK WITH ZERO ENTRIES! Variables in the returned data.frame: - power_price (numeric). The signed power price of the bid. Point as decimal delimiter. - work_price (numeric). The signed work price of the bid. Point as decimal delimiter. There are also negative prices. - offered_power_MW (numeric). The offered power in MW. Point as decimal delimiter. 5 as the minimal bid. This will be changed someday to smaller increments. - Tarif (char). Contains the value of either "HT", the main tarif or "NT", for the remaining time periods. - Direction (char). Contains the value of either "POS", for positive operating reserve power, or "NEG" for negative power. - date_from (Date). Date object in Y-m-d format. The two date variables build the one week auction time period. This will be changed someday. - date_to (Date). Date object in Y-m-d format. The two date variables build the one week auction time period. This will be changed someday.

Usage

1
getReserveAuctions(startDate, endDate, rl)

Arguments

startDate

the start date to retrieve all auctions. Format (german style): DD.MM.YYYY (e.g.'07.03.2017')

endDate

the end date to retrieve all auctions. Format (german style): DD.MM.YYYY (e.g.'07.03.2017')

rl

PRL (1), SRL (2), MRL (3), sofort abschaltbare Lasten (4), schnell abschaltbare Lasten (5), Primärregelleistung NL (6)

Value

data.frame with the results of the auctions held from start date till end date

Examples

1
2
# Get the auction results of the secondary operating reserve power for one week of that specific day
auctions <- getReserveAuctions('07.03.2017','07.03.2017', '2')

wagnertimo/rmarketcrawlR documentation built on Nov. 19, 2017, 5:29 p.m.