Create an API call for legacy data
build_legacy_call(
data_item,
api_key,
from_date = NULL,
to_date = NULL,
settlement_date = NULL,
settlement_period = NULL,
bm_unit_id = NULL,
bm_unit_type = NULL,
lead_party_name = NULL,
ngc_bm_unit_name = NULL,
from_cleared_date = NULL,
to_cleared_date = NULL,
is_two_day_window = NULL,
from_datetime = NULL,
to_datetime = NULL,
from_settlement_date = NULL,
to_settlement_date = NULL,
period = NULL,
fuel_type = NULL,
balancing_service_volume = NULL,
zone_identifier = NULL,
start_time = NULL,
end_time = NULL,
trade_name = NULL,
trade_type = NULL,
api_version = "v1",
service_type = "csv",
...
)
character string; the id of the legacy data
character string; api key retrieved from the Elexon portal
character string; from date (automatically cleaned by format_date)
character string; to date (automatically cleaned by format_date)
character string; settlement date (automatically cleaned by format_date)
character string; settlement period
character string; BM Unit ID
character string; BM Unit type
character string; lead party name
character string; NGC BM Unit name
character string; from cleared date (automatically cleaned by format_date)
character string; to cleared dat (automatically cleaned by format_date)
character string; is two day window
character string; from datetime
character string; to datetime
character string; from settlement date (automatically cleaned by format_date)
character string; to settlement date (automatically cleaned by format_date)
character string; period
character string; fuel type
character string; balancing service volume
character string; zone identifier
character string; start time
character string; end time
character string; trade name
character string; trade type
character string; version of the api to use (currently on v1)
character string; file format (csv or xml)
additional parameters that will be appended onto the query string
list; list with entries url
for the call, service_type
and data_item
Other call-building functions:
build_b_call()
,
build_call()
,
build_remit_call()
# NOT RUN {
build_legacy_call(data_item = "FUELINST", api_key = "12345",
from_datetime = "14-12-201613:00:00", to_datetime = "14-12-201614:00:00")
build_legacy_call(data_item = "QAS", api_key = "12345",
settlement_date = "01 Jun 2019", service_type = "xml")
# }
Run the code above in your browser using DataLab