post https://enact-epex.azurefd.net/enactApi/Data/orderBook
This endpoint will return the order book of a contract, given the date, period, and type.
Using the LCPDelta Python Package
Synchronous
from lcp_delta import enact
from datetime import date
enact_api_helper = enact.APIHelper(username, public_api_key)
# see 'BODY PARAMS' section below for details on corresponding parameter values
response_dictionary = enact_api_helper.get_epex_order_book(
"HH",
date(2024,7,4),
10
)
print(response_dictionary)
Asynchronous (package version 1.3.0)
from lcp_delta import enact
from datetime import date
import asyncio
async def main():
enact_api_helper = enact.APIHelper(username, public_api_key)
# see 'BODY PARAMS' section below for details on corresponding parameter values
response_dictionary = await enact_api_helper.get_epex_order_book_async(
"HH",
date(2024,7,4),
10
)
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 in the form YYYY-MM-DDT00:00:00Z for the date field.