post https://enactapifd.lcp.uk.com/enactApi/DayAhead/data
Using the LCPDelta Python Package
Synchronous
from lcp_delta import enact
from datetime import date
enact_api_helper = enact.APIHelper(username, public_api_key)
response_dictionary = enact_api_helper.get_day_ahead_data(
date(2023,6,1), #start date range
date(2023, 6,20), #end date range
False, #flag to aggregate the EFA blocks
10, #number of days to rank, only including the most similar
[1,2,3,4,5,6] #the EFA blocks to see comparisons for,
["ResidualLoad"] #the series to compare against
)
print(response_dictionary)
Asynchronous (package version 1.3.0 and later)
from lcp_delta import enact
from datetime import date
import asyncio
enact_api_helper = enact.APIHelper(username, public_api_key)
response_dictionary = await enact_api_helper.get_day_ahead_data_async(
date(2023,6,1), #start date range
date(2023, 6,20), #end date range
False, #flag to aggregate the EFA blocks
10, #number of days to rank, only including the most similar
[1,2,3,4,5,6] #the EFA blocks to see comparisons for,
["ResidualLoad"] #the series to compare against
)
print(response_dictionary)