post https://enactapifd.lcp.uk.com/enactApi/Ancillary/data
Recipes
⚖️
Balancing Reserve - getting started [Python package]
Open Recipe
This endpoint returns data for a specified Ancillary contract type (see Enact's ancillary contracts page).
The below table details all possible values of the request fields:
Contract | ancillaryContractType | optionOne | optionTwo |
---|---|---|---|
DC-L | DynamicContainmentEfa | Month-Year (e.g. "12-2023") | Day (e.g. "5") |
DC-H | DynamicContainmentEfaHF | Month-Year (e.g. "12-2023") | Day (e.g. "5") |
DM-L | DynamicModerationLF | Month-Year (e.g. "12-2023") | Day (e.g. "5") |
DM-H | DynamicModerationHF | Month-Year (e.g. "12-2023") | Day (e.g. "5") |
DR-L | DynamicRegulationLF | Month-Year (e.g. "12-2023") | Day (e.g. "5") |
DR-H | DynamicRegulationHF | Month-Year (e.g. "12-2023") | Day (e.g. "5") |
Static FFR | SFfr | Month-Year (e.g. "12-2023") | Day (e.g. "5") |
STOR | StorDayAhead | Year-Month-Day (e.g. "2023-12-1") | |
MFR | ManFr | Year (e.g. "2023") | Month (e.g. "November") |
N-BR | NegativeBalancingReserve | Month-Year (e.g. "3-2024") | Day (e.g. "11") |
P-BR | PositiveBalancingReserve | Month-Year (e.g. "3-2024") | Day (e.g. "11") |
Obsolete | |||
FFR | Ffr | Tender Round (e.g. "150") | |
DC Daily | DynamicContainment | Month-Year (e.g. "11-2020") | Day (e.g. "5") |
Using the LCPDelta Python Package
Synchronous
from lcp_delta import enact
from datetime import date
import time
enact_api_helper = enact.APIHelper(username, public_api_key)
# There are individual methods for each ancillary contract type - for example:
dcl_response = enact_api_helper.get_DCL_contracts(date(2023,5,5))
print(dcl_response)
time.sleep(1)
sffr_response = enact_api_helper.get_SFFR_contracts(date(2023,5,5))
print(sffr_response)
Asynchronous (package version 1.3.0 and later)
from lcp_delta import enact
from datetime import date
import time
import asyncio
async def main():
enact_api_helper = enact.APIHelper(username, public_api_key)
# There are individual methods for each ancillary contract type - for example:
dcl_response = await enact_api_helper.get_DCL_contracts_async(date(2023,5,5))
print(dcl_response)
time.sleep(1)
sffr_response = await enact_api_helper.get_SFFR_contracts_async(date(2023,5,5))
print(sffr_response)
asyncio.run(main())