Open nandbert2 opened 2 years ago
It looks like there is a table-data
endpoint additionally to the documented chart-data
endpoint and you discovered more filters.
However this endpoint is not available for all filters.
Still, adjusting the documentation should be straightforward, feel free to create a PR. I'll try to work on this next week, if you don't want to work on it yourself.
I created a pull-request; please have a look. Let me know if things are missing; my experiences with openapi and github are limited.
There are further parameters possible to access market data (hourly prices) from smard.de: An access is as follows, the parameter 4169 is used as an example; full list is below:
get list of timestamps curl https://www.smard.de/app/chart_data/4169/DE/index_hour.json timestamps.json
select one timestamp and get the data curl https://www.smard.de/app/table_data/4169/DE/4169_DE_hour_1655676000000.json > marketdata_4169.json
As before the parameter needs to be repeated and the "DE" must be always there even when accessing market data from other regions.
The list of possible parameters I found when downloading data from on smard.de:
4169
- Marktpreis: Deutschland/Luxemburg5078
- Marktpreis: Anrainer DE/LU4996
- Marktpreis: Belgien4997
- Marktpreis: Norwegen 24170
- Marktpreis: Österreich252
- Marktpreis: Dänemark 1253
- Marktpreis: Dänemark 2254
- Marktpreis: Frankreich255
- Marktpreis: Italien (Nord)256
- Marktpreis: Niederlande257
- Marktpreis: Polen258
- Marktpreis: Polen259
- Marktpreis: Schweiz260
- Marktpreis: Slowenien261
- Marktpreis: Tschechien262
- Marktpreis: UngarnCan this list be added to the yaml/smard-api?