-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError Query for contracted reserve amount and contracted reserve prices not working #370
Comments
Hi some remarks:
* Please hide your api key
* please use explicit arguments so start= etc
Get BlueMail for Android
…On 20 Nov 2024, 09:14, at 09:14, brunolehner ***@***.***> wrote:
Hi,
I tried to use the query to get the contracted reserve amount and
contracted reserve prices for Austria in 2023.
But unfortunately it is not working. I used the following code:
`# load packages
from entsoe import EntsoeRawClient
import pandas as pd`
`client =
EntsoeRawClient(api_key='e1b2bdba-686a-445e-a7fe-b2d415ac6626')`
`start = pd.Timestamp('20230101', tz='Europe/Vienna')
end = pd.Timestamp('20231231', tz='Europe/Vienna')
country_code = 'AT' # Austria
type_marketagreement_type = 'A01'`
`client.query_contracted_reserve_amount(country_code,
type_marketagreement_type, start, end, psr_type=None)`
`client.query_contracted_reserve_prices(country_code,
type_marketagreement_type, start=start, end=end, psr_type=None)`
I get:
- AttributeError: 'str' object has no attribute 'tzinfo'
- TypeError: EntsoeRawClient.query_contracted_reserve_prices() got
multiple values for argument 'start'
Can someone help me out?
--
Reply to this email directly or view it on GitHub:
#370
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Hi, Now I get "NoMatchingDataError" Is there no data for Austria in 2023 available? |
hi did you check if there is data on the UI for the dates you are requesting? |
I'm not an expert but thought I'd chime in as I struggled with something similar: These two endpoints are marked as "legacy" in the Entsoe UI, and replaced by "Volumes and Prices of Contracted Reserves". For the cases I tested for NO2 the legacy endpoints do not return any data, but Note that currently it seems we need to use the Raw client instead of the Pandas client if we need volumes in addition to prices though (see my issue #374) |
ah yes you are correct @christianfosli I need to fix this in #374 (or if somebody wants to help feel free to open a PR!) |
Hi,
I tried to use the query to get the contracted reserve amount and contracted reserve prices for Austria in 2023.
But unfortunately it is not working. I used the following code:
# load packages from entsoe import EntsoeRawClient import pandas as pd
client = EntsoeRawClient(api_key='XY')
start = pd.Timestamp('20230101', tz='Europe/Vienna') end = pd.Timestamp('20231231', tz='Europe/Vienna') country_code = 'AT' # Austria type_marketagreement_type = 'A01'
client.query_contracted_reserve_amount(country_code, type_marketagreement_type, start, end, psr_type=None)
client.query_contracted_reserve_prices(country_code, type_marketagreement_type, start=start, end=end, psr_type=None)
I get:
AttributeError: 'str' object has no attribute 'tzinfo'
TypeError: EntsoeRawClient.query_contracted_reserve_prices() got multiple values for argument 'start'
Can someone help me out?
The text was updated successfully, but these errors were encountered: