REST api wrapper for nordpool average daily spot prices api
Project description
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. 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
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
File details
Details for the file nordpool_daily_averages-1.1.1.tar.gz
.
File metadata
- Download URL: nordpool_daily_averages-1.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aead9c269714a989afda6666fb23a5cf1d9b435a05641b40b950b8c8cec6fb02 |
|
MD5 | d2dcab2c5f52128616187a87c7e859e8 |
|
BLAKE2b-256 | 2173fa45b75dbbf2d0039773cb1b2edcba638f6497e493803575b51a7db19269 |
File details
Details for the file nordpool_daily_averages-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: nordpool_daily_averages-1.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67496b83bba54528a025147a94dceb1ae998bebad3a418aeaf30891400f9a421 |
|
MD5 | c4bccfba934b4e7a30e010a4639caa88 |
|
BLAKE2b-256 | cdf2fcc9b3aec84192319c5932908928b21dfe56de5598f6383e34347c506272 |