Skip to content

gjohansson-ST/pynordpool

Repository files navigation

size_badge version_badge download_badge GitHub Repo stars GitHub Issues or Pull Requests GitHub License

Made for Home Assistant

Sponsor me Discord

pynordpool

python module for communicating with Nord Pool

Code example

Retrieve delivery period prices

Hourly rates from provided date

from pynordpool import NordPoolClient, Currency

async with aiohttp.ClientSession(loop=loop) as session:
    client = NordPoolClient(session)
    output = await client.async_get_delivery_period(
        datetime.datetime.now(), Currency.EUR, ["SE3"]
    )
    print(output)