https://github.com/dansmachina/aioelpris
An aio library to retrieve some Nordic countries current electricity price.
https://github.com/dansmachina/aioelpris
aiohttp asyncio denmark electricity-prices python
Last synced: 5 months ago
JSON representation
An aio library to retrieve some Nordic countries current electricity price.
- Host: GitHub
- URL: https://github.com/dansmachina/aioelpris
- Owner: dansmachina
- License: apache-2.0
- Archived: true
- Created: 2022-07-08T08:43:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T07:14:13.000Z (over 2 years ago)
- Last Synced: 2025-12-22T01:27:14.004Z (5 months ago)
- Topics: aiohttp, asyncio, denmark, electricity-prices, python
- Language: Python
- Homepage:
- Size: 290 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# aioelpris
An aio library to retrieve current electricity price in (some parts) of the Nordics. Current supported regions are:
- `DK1`: Denmark/west of the Great Belt
- `DK2`: Denmark/east of the Great Belt
- `NO2`: Norway/Kristiansand
- `SE3`: Sweden/Stockholm
- `SE4`: Sweden/Malmö
Prices are returned in DKK and EUR currencies.
## Basic example
```python
import asyncio
from aiohttp import ClientSession
from aioelpris import ElPris
from aioelpris.core.models import Price
async def example() -> Price:
async with ClientSession() as session:
pris = ElPris(session=session, price_area="SE3")
price: Price = await pris.get_current_price()
print(price.SpotPriceDKK)
return price
asyncio.run(example())
```
## Data sources
[Energi Data Service](https://www.energidataservice.dk/tso-electricity/Elspotprices).