Skip to main content

REST api wrapper for nordpool average daily spot prices

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 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 Required Syntax Comment
LOGLEVEL stdout logging level No 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 Nordpool as np
#instantiate class
price = np.Daily("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 Nordpools as np
#instantiate class
price = np.Daily("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 Nordpool as np
#instantiate class
price = np.Daily("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 Nordpool as np
#instantiate class
price = np.Daily("SE2", "SEK")
#Get all price's
price.get_all_prices()
import asyncio
from nordpool import Nordpool as np
#Getting hourly data prices for one date
async def main():
    #instantiate class
    daily_average = np.Hourly(areacode="SE3", currency="SEK")
    usage = await daily_average.get_hourly_prices("2024-09-04")
    print(usage)
asyncio.run(main())

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.26.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

nordpool_daily_averages-1.1.26-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nordpool_daily_averages-1.1.26.tar.gz
Algorithm Hash digest
SHA256 2cb8c72cf50cca2a4211bed33d24726433ae03ed74185219d06eb0cf13180099
MD5 58eba90a84b8df6576a8327e8551c571
BLAKE2b-256 223de6618f9c2f6bbc60297b9ccefc4bdfd91b4910a8bacac46c5d7d677a67c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nordpool_daily_averages-1.1.26-py3-none-any.whl
Algorithm Hash digest
SHA256 c4c5499d5d297a0e74bc132de7f797fc3439e225e49b539812e4e64397387bc0
MD5 9593a44a2da31b7d1a4d7f9a9dda57cd
BLAKE2b-256 427bcc2fdcbf8d92626db33fc142eb70218c73d79e014cc46eac6614c5193436

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