Skip to content
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

Marketdata is available on smard.de #8

Open
nandbert2 opened this issue Jul 2, 2022 · 2 comments
Open

Marketdata is available on smard.de #8

nandbert2 opened this issue Jul 2, 2022 · 2 comments

Comments

@nandbert2
Copy link
Contributor

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:

  1. get list of timestamps
    curl https://www.smard.de/app/chart_data/4169/DE/index_hour.json timestamps.json

  2. 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/Luxemburg
  • 5078 - Marktpreis: Anrainer DE/LU
  • 4996 - Marktpreis: Belgien
  • 4997 - Marktpreis: Norwegen 2
  • 4170 - Marktpreis: Österreich
  • 252 - Marktpreis: Dänemark 1
  • 253 - Marktpreis: Dänemark 2
  • 254 - Marktpreis: Frankreich
  • 255 - Marktpreis: Italien (Nord)
  • 256 - Marktpreis: Niederlande
  • 257 - Marktpreis: Polen
  • 258 - Marktpreis: Polen
  • 259 - Marktpreis: Schweiz
  • 260 - Marktpreis: Slowenien
  • 261 - Marktpreis: Tschechien
  • 262 - Marktpreis: Ungarn

Can this list be added to the yaml/smard-api?

@nandbert2 nandbert2 changed the title Marketdata are available on smard.de Marketdata is available on smard.de Jul 2, 2022
@lukaspanni
Copy link
Contributor

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.

@nandbert2
Copy link
Contributor Author

I created a pull-request; please have a look.
Let me know if things are missing; my experiences with openapi and github are limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants