Skip to main content

REST api wrapper for nordpool average daily spot prices api

Project description

Link to github repository

Python package for querying nordpool for average daily prices. Prices can only be obtained for the current year and the previous year. Incremet is how much you need to add to the price if you chargeback someone per kWh. It's optional and the default is zero

Supported areacode's Suported currency's Increment
"SE1" "SEK" "0.15"
"SE2" "EUR"
"SE3"
"SE4"
"NO1"
"NO2"
"NO3"
"NO4"
"NO5"
"FI"
"DK1"
"DK2"
Environment variables Usage Optional Syntax Comment
ERROR_EMAIL Where to send exceptions Yes first.last@gmail.com If not used only local logging will occur
LOGLEVEL stdout logging level Yes DEBUG Defaults to INFO if not used

Usage:
pip install nordpool-daily-averages

#Getting average price for 2024-08-30, for areacode SE3 and in Euro and 15 cents is added to the prices  
from nordpool import Prices as p
#instantiate class
price = p("SE3", "EUR", "0.15")
#Get the price
price.get_prices_for_one_date("2024-08-30")
#Getting average price for 2024-08-29 for areacode SE3 in SEK and 15 öre is added to the prices  
from nordpool import Prices as p
#instantiate class
price = p("SE3", "SEK", "0.15")
#Get the price
price.get_prices_for_one_date("2024-08-29")
#Getting average price for 2024-08-28 for areacode SE2 in SEK and no increment is added to the prices  
from nordpool import Prices as p
#instantiate class
price = p("SE2", "SEK")
#Get the price
price.get_prices_for_one_date("2024-08-28")
#Getting all price's for current year and last year for areacode SE2 in SEK and no increment is added to the prices  
from nordpool import Prices as p
#instantiate class
price = p("SE2", "SEK")
#Get all price's
price.get_all_prices()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nordpool_daily_averages-1.1.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

nordpool_daily_averages-1.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file nordpool_daily_averages-1.1.2.tar.gz.

File metadata

File hashes

Hashes for nordpool_daily_averages-1.1.2.tar.gz
Algorithm Hash digest
SHA256 92d1b0c01a84edd2c2e7489e0d3640ed7cd3a059e67b6a13fa618fc54aef7a59
MD5 fe049d7f10c7bdf5e34d7dd10053c8e2
BLAKE2b-256 0f6510dae131ffa9d1652a777c99fabcb24db174211b9031616718783430e89e

See more details on using hashes here.

File details

Details for the file nordpool_daily_averages-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nordpool_daily_averages-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 14c057e4bc8d41fffa030c86b20fbb753efc3bbdb841bf1bd4e0fe9d0723b9cc
MD5 3ed1fb7261cb4e939d0cd952e2793b44
BLAKE2b-256 62c2cccf2a6921bb834a3eb59acca25da0e55752a637d759bc7bc9e091fd8074

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page