Python library for fetching Nord Pool spot prices.
Project description
nordpool
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()),
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nordpool-0.5.1.tar.gz.
File metadata
- Download URL: nordpool-0.5.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.12.1 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00d2a9ef7c7f6f42fc33113fd4d76b543947d8702ef4092de5c1b683cebab81c
|
|
| MD5 |
e3dbd35ee8ff9c28e9a239f9a6981c6d
|
|
| BLAKE2b-256 |
3816813c3ea61efde06bb2386e8321d802cba581c9ff06e8e94ea73b69369654
|
File details
Details for the file nordpool-0.5.1-py3-none-any.whl.
File metadata
- Download URL: nordpool-0.5.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.12.1 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baa27391505e9c27ee60a6336099cefdaf7fad153868d3359aba15dca2035b23
|
|
| MD5 |
6e1b7808d388dad1f8358cda25dfdb62
|
|
| BLAKE2b-256 |
00fcdc133c8324b6ae7d9e24dcfb3ca2453c157a1d884222bf25dd642a85df21
|