Recipes
⚖️
Balancing Reserve - getting started [Python package]
Open Recipe
📈
Balancing Reserve - BM analysis [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:

ContractancillaryContractTypeoptionOneoptionTwo
DC-LDynamicContainmentEfaMonth-Year (e.g. "12-2023")Day (e.g. "5")
DC-HDynamicContainmentEfaHFMonth-Year (e.g. "12-2023")Day (e.g. "5")
DM-LDynamicModerationLFMonth-Year (e.g. "12-2023")Day (e.g. "5")
DM-HDynamicModerationHFMonth-Year (e.g. "12-2023")Day (e.g. "5")
DR-LDynamicRegulationLFMonth-Year (e.g. "12-2023")Day (e.g. "5")
DR-HDynamicRegulationHFMonth-Year (e.g. "12-2023")Day (e.g. "5")
Static FFRSFfrMonth-Year (e.g. "12-2023")Day (e.g. "5")
STORStorDayAheadYear-Month-Day (e.g. "2023-12-1")
MFRManFrYear (e.g. "2023")Month (e.g. "November")
N-BRNegativeBalancingReserveMonth-Year (e.g. "3-2024")Day (e.g. "11")
P-BRPositiveBalancingReserveMonth-Year (e.g. "3-2024")Day (e.g. "11")
Obsolete
FFRFfrTender Round (e.g. "150")
DC DailyDynamicContainmentMonth-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())

Using the API Directly

Language
Authorization
OAuth2
Click Try It! to start a request and see the response here!