Comments (6)
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.
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.
from entsoe-py.
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:
Maybe the query_imbalance_prices function is not the correct one to use ?
from entsoe-py.
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:
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.
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)
- Cannot download prices anymore since last week "error 404" HOT 9
- Georgia is missing when use query_load HOT 2
- Entsoe import error using old version of bs4 HOT 1
- certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)'))) HOT 2
- Issue with EntsoePandasClient --> query_day_ahead_prices HOT 2
- `query_generation_forecast` returns an extra column for Lithuania HOT 2
- Issue with EntsoePandasClient: query_installed_generation_capacity HOT 1
- query_unavailability_transmission broken in commit 9f4364c HOT 2
- query_day_ahead_prices resulting in NoMatchingDataError HOT 2
- query_generation & query_load resulting in NoMatchingDataError for UK HOT 1
- Connection Error: 'Connection aborted.' HOT 1
- `NoMatchingDataError` for imbalance price query for Germany depending on query start HOT 5
- Missing neighbours in NEIGHBOURS HOT 1
- issue with 403 Client Error HOT 5
- No function to query the Aggregated Unavailability of Consumption Units and Unavailability of Offshore Grid HOT 2
- Typo in HEADERS_UNAVAIL_TRANSM HOT 1
- Use datetime module HOT 1
- Missing Day-Ahead NTC for DE_LU-NO_2 and DE_LU-SE_4 HOT 1
- InvalidBusinessParameterError Encountered without Further Explanation HOT 1
- NoMatchinDataError HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entsoe-py.