Skip to main content

nordpool

Test Status

Python library for fetching Nord Pool Elspot prices.

Python version

The minimum supported Python version is 3.9, which receives security updates until 2025-10. The library won't install without trickery on older versions, so update your Python.

Installing

To install from PyPi, use

pip install nordpool

To upgrade

To upgrade installation from PyPi, use

pip install -U nordpool

Usage example

Below is a very basic example of the library usage. More advanced example(s) can be found in examples -directory.

from pprint import pprint
from nordpool import elspot

# Initialize class for fetching the prices.
# An optional currency parameter can be provided, default is EUR.
prices_spot = elspot.Prices()

# Fetch tomorrow's prices for Finland and print the resulting dictionary.
# If the prices are reported as None, it means that the prices fetched aren't yet available.
# The library by default tries to fetch prices for tomorrow and they're released ~13:00 Swedish time.
pprint(prices_spot.fetch(areas=["FI"]))

Output:

{
  "areas": {
    "FI": {
      "values": [
        {
          "end": datetime.datetime(2025, 5, 12, 23, 0, tzinfo=tzutc()),
          "start": datetime.datetime(2025, 5, 12, 22, 0, tzinfo=tzutc()),
          "value": 5.11,
        },
        {
          "end": datetime.datetime(2025, 5, 13, 0, 0, tzinfo=tzutc()),
          "start": datetime.datetime(2025, 5, 12, 23, 0, tzinfo=tzutc()),
          "value": 5.8,
        },
        {
          "end": datetime.datetime(2025, 5, 13, 1, 0, tzinfo=tzutc()),
          "start": datetime.datetime(2025, 5, 13, 0, 0, tzinfo=tzutc()),
          "value": 4.51,
        },
# ... SNIP ...
        {
          "end": datetime.datetime(2025, 5, 13, 22, 0, tzinfo=tzutc()),
          "start": datetime.datetime(2025, 5, 13, 21, 0, tzinfo=tzutc()),
          "value": -10.24,
        },
      ]
    }
  },
  "currency": "EUR",
  "end": datetime.datetime(2025, 5, 13, 22, 0, tzinfo=tzutc()),
  "start": datetime.datetime(2025, 5, 12, 22, 0, tzinfo=tzutc()),
  "updated": datetime.datetime(2025, 5, 12, 11, 26, 3, 811220, tzinfo=tzutc()),
}

Metadata

Release files for nordpool 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nordpool 0.5.1
File Size Uploaded
nordpool-0.5.1.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nordpool 0.5.1
File Interpreter ABI Platform
nordpool-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / nordpool-0.5.1.tar.gz

Download URL nordpool-0.5.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
00d2a9ef7c7f6f42fc33113fd4d76b543947d8702ef4092de5c1b683cebab81c
BLAKE2b-256 checksum
How to use checksums
3816813c3ea61efde06bb2386e8321d802cba581c9ff06e8e94ea73b69369654
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.12.1 Linux/6.11.0-1018-azure

Release files / nordpool-0.5.1-py3-none-any.whl

Download URL nordpool-0.5.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baa27391505e9c27ee60a6336099cefdaf7fad153868d3359aba15dca2035b23
BLAKE2b-256 checksum
How to use checksums
00fcdc133c8324b6ae7d9e24dcfb3ca2453c157a1d884222bf25dd642a85df21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.12.1 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page