post https://enact-epex.azurefd.net/enactApi/Data/contracts
This endpoint will return all contracts for a given day.
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_epex_contracts(
date(2024,7,1) # a recent date
)
print(response_dictionary)
Asynchronous (package version 1.3.0 and later)
from lcp_delta import enact
from datetime import date
import asyncio
async def main():
enact_api_helper = enact.APIHelper(username, public_api_key)
response_dictionary = await enact_api_helper.get_epex_contracts_async(
date(2024,7,1) # a recent date
)
print(response_dictionary)
asyncio.run(main())
Using the API Directly
We only store data from EPEX for today and yesterday. In the request object below, try a suitably recent date of the form YYYY-MM-DDT00:00:00Z for the date field.