Giter VIP home page Giter VIP logo

Comments (6)

atantet avatar atantet commented on July 17, 2024

Hi Philipp,
If I'm not wrong, psr_type should correspond to a key in entsoe.mappings.PSRTYPE_MAPPINGS
See https://github.com/EnergieID/entsoe-py#psr-type
Best,
Alexis

from entsoe-py.

JrtPec avatar JrtPec commented on July 17, 2024

The query_imbalance_prices does its lookup of the country code in DOMAIN_MAPPINGS. Germany is a weird case, because it has country code 'DE' ('10Y1001A1001A83F'), and bidding zones 'DE-AT-LU' ('10Y1001A1001A63L') up until October '18 and bidding zone 'DE-LU' ('10Y1001A1001A82H') starting October '18.

Please try your request with country_code='DE-AT-LU', I think that should work.

This issue is also discussed in part in #9, but I think the whole country/domain/bidding zone thing could be implemented better, I just don't have an elegant idea in mind right now.

from entsoe-py.

jpaduart avatar jpaduart commented on July 17, 2024

from entsoe-py.

pkassing avatar pkassing commented on July 17, 2024

I tried it with country_code = 'DE-AT-LU' but it still doesn't work. Also, I tried out several psr_types, document types and BSN types:

psr_types = {'B01': 'Biomass','B02': 'Fossil Brown coal/Lignite','B03': 'Fossil Coal-derived gas','B04': 'Fossil Gas',
    'B05': 'Fossil Hard coal','B06': 'Fossil Oil', 'B07': 'Fossil Oil shale', 'B08': 'Fossil Peat', 'B09': 'Geothermal',
    'B10': 'Hydro Pumped Storage', 'B11': 'Hydro Run-of-river and poundage', 'B12': 'Hydro Water Reservoir',
    'B13': 'Marine', 'B14': 'Nuclear', 'B15': 'Other renewable', 'B16': 'Solar','B17': 'Waste',
    'B18': 'Wind Offshore', 'B19': 'Wind Onshore',}

balance_params = {'A81': 'Contracted reserves',
                'A82': 'Accepted offers',
                'A83': 'Activated balancing quantities',
                'A84': 'Activated balancing prices',
                'A85': 'Imbalance prices',
                'A86': 'Imbalance volume',
                 'A88': 'Cross border balancing',
                'A89': 'Contracted reserve prices',
                'A95': 'Frequency containment reserve',
           'A96': 'Automatic frequency restoration reserve',
           'A97': 'Manual frequency restoration reserve',
           'A98': 'Replacement reserve'}

I always get a HTTP 400 Error response.

Are you guys getting information on Frequency Reserve Prices, quantities and volumes ?
The information that I am looking for should look like this:
Screenshot (31)

Maybe the query_imbalance_prices function is not the correct one to use ?

from entsoe-py.

JrtPec avatar JrtPec commented on July 17, 2024

I tried this call

client = EntsoePandasClient(api_key=settings.api_key)

start = pd.Timestamp('20190101', tz='Europe/Berlin')
end = pd.Timestamp('20190102', tz='Europe/Berlin')

client.query_imbalance_prices(country_code='DE-LU', start=start, end=end)

and it works fine for me:

Screenshot 2019-04-30 at 12 11 28

I tried it with some PSR Types though, and couldn't get it to work. Although the API-docs say that PSR type is an optional parameter for imbalance prices.

That being said:
What you show in your screenshot are not the Imbalance Prices! It is the Price of Reserved Balancing Reserve.
I didn't immediately find it in the API docs, but the API does have "Prices of Procured Balancing Reserves", and "Prices of Activated Balancing Energy".

These methods have not been implemented in the Python Client yet.

I tried Prices of Procured Balancing Reserves as a raw request:

params = {
    'documentType': 'A89',
    'controlArea_Domain': '10YCZ-CEPS-----N',
    'type_MarketAgreement.Type': 'A01',
    'businessType': 'A96'
}
response = client.base_request(params=params, start=start, end=end)
response.raise_for_status()
print(response.text)

That worked fine!

Feel free to implement additional requests from the API and create a pull request if you'd like.

from entsoe-py.

pkassing avatar pkassing commented on July 17, 2024

I think I will try to work with the raw requests :) If I'm free I can try to implement it in the entso-e client.

Thank you for your help!

from entsoe-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.