EnergieID / entsoe-py

Python client for the ENTSO-E API (european network of transmission system operators for electricity)
MIT License
428 stars 188 forks source link

Add activated balancing prices (A84) #283

Closed CoenvdPol closed 11 months ago

CoenvdPol commented 12 months ago

Hi, is it possible to add the

"Activated balancing prices"

Documenttype A84, to the query?

Best, Coen

fboerman commented 11 months ago

hi! if you want you can easily add this yourself when looking at an example query. Do you have an example of the GUI of a country which publishes data for this? Then I can take a look as well. For NL it seems there is no data in the GUI for this

TwanKrmr commented 11 months ago

Hello, we are specifically seeking FCR prices, which Entsoe publishes on their platform under "Price of Reserved Balancing Reserves" with the following link.

In the API user guide provided by Entsoe, we are referring to section 4.6.9, titled "Prices of Procured Balancing Reserves [17.1.C]."

I plan to attempt making the query on my own. Unfortunately, I lack the experience to do this easily.

jpaduart commented 11 months ago

Hi,I implemented this feature a few years ago, not sure if I did a PR. Have a look at my “reserves” fork.Comparing EnergieID:master...jpaduart:reserves · EnergieID/entsoe-pygithub.comJohan.Op 20 nov 2023 om 14:11 heeft TwanKrmr @.***> het volgende geschreven: Hello, we are specifically seeking FCR prices, which Entsoe publishes on their platform under "Price of Reserved Balancing Reserves" with the following link. In the API user guide provided by Entsoe, we are referring to section 4.6.9, titled "Prices of Procured Balancing Reserves [17.1.C]." I plan to attempt making the query on my own. Unfortunately, I lack the experience to do this easily.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

TwanKrmr commented 11 months ago

Thank you for the response! I have found the right function in the branch "reserve". Is it possible to include this code into the main branch? I see there are additional functions which are related to the reserve capacity. Would be nice if these will be added into the main branch. So, it has more functions.

`def query_contracted_reserve_prices(self, country_code, start, end, type_marketagreement_type, psr_type = None): """ Parameters

    country_code : str
    start : pd.Timestamp
    end : pd.Timestamp
    type_marketagreement_type : str
        type of contract (see mappings.MARKETAGREEMENTTYPE)
    psr_type : str
        filter query for a specific psr type
    Returns
    -------
    str
    """
    domain = BIDDING_ZONES[country_code]
    params = {
        'documentType': 'A89',
        'controlArea_Domain': domain,
        'type_MarketAgreement.Type': type_marketagreement_type,
    }
    if psr_type:
        params.update({'psrType': psr_type})
    response = self.base_request(params = params, start = start, end = end)
    return response.text`
fboerman commented 11 months ago

hi those functions are already merged in the main repo its even in the readme? so I am assuming this fixes your issue. Next time please check before filing an issue ;) I thought you needed something else

TwanKrmr commented 11 months ago

Yes, sorry. We also thought we needed something else when we filled the issue. Thank you for the quick response!