Skip to content

Parsing aFRR CBMPs - PT4S resolution not recognized. #493

@JanRosseau

Description

@JanRosseau

Hi,

when trying to query the 4 sec CMBP aFRR up/down prices, I executed the following semi-custom code.

from entsoe import EntsoePandasClient
import pandas as pd

client = EntsoePandasClient(api_key="XXX")

start = pd.Timestamp('20240101', tz='Europe/Brussels')
end = pd.Timestamp('20241211', tz='Europe/Brussels')
country_code = 'BE'

# Make custom request to ENTSO-E API
params = {
    'documentType': 'A84',
    'processType': 'A67',
    'businessType': 'A96',
    'Standard_MarketProduct': 'A01',
    'controlArea_Domain': '10Y1001A1001A39I'
}
start_custom = pd.Timestamp('202511082300', tz='Europe/Brussels')
end_custom = pd.Timestamp('202511092300', tz='Europe/Brussels')

response = client._base_request(params=params, start=start_custom, end=end_custom)

then tried to parse it using the "parse_activated_balancing_energy_prices" function from the package. I also included the XML file for reference outfile.xml

parsed = parse_activated_balancing_energy_prices(response.text)

However, this throws an error. "NotImplementedError: Sorry, I don't know what to do with the resolution 'PT4S', because there was no documentation to be found of this format. Everything is hard coded. Please open an issue."

The PT4S resolution is just on 4 sec basis. As these CMBPs are very relevant for a lot of energy players, think it would be useful to implement this (or add it as as standard query). I am talking about this type of data https://transparency.entsoe.eu/balancing/energyPrices/afrrCbmps?permalink=693c464645cc6872158a91a9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions