Nordpool Elspot API npm client
Unofficial Nordpool Elspot API npm client
Features
- Prices
- Volumes (not implemented yet)
- Capacities (not implemented yet)
- Flow (not implemented yet)
Usage
const nordpool = const prices = let opts = {}prices
Methods
at
: get price at an exact timehourly
: get hourly pricesdaily
: get daily pricesweekly
: get weekly pricesmonthly
: get monthly pricesyearly
: get yearly prices
Options
area
: the energy market area. See http://www.nordpoolspot.com/maps/ Currently active areas are BERGEN, DK1, DK2, EE, ELE, FRE, KR.SAND, KT, LT, LV, MOLDE, OSLO, SE, SE1, SE2, SE3, SE4, SYS, TR.HEIM, TROMSØ, EE, LV, LT, AT, BE, DE-LU, FR and NL.currency
: choose eitherDKK
,EUR
,NOK
orSEK
. Note that not all areas will return all currencies.date
: can be aDate
ormoment.js
object or a string in ISO 8601 format orW/YYYY
(week number and year) orYYYY-MM
(year and month). If no timezone is set,CET
is assumed.from
: Don't return values before this time. Accepts same formats asdate
.to
: Don't return values after this time. Accepts same formats asdate
.
Install
npm install nordpool
Examples
Example 1: Latest hourly prices from all areas
var nordpool = var prices = prices
Example 2: Latest hourly prices in Finland
var nordpool = var prices = var opts = area: 'FI' // See http://www.nordpoolspot.com/maps/ currency: 'EUR' // can also be 'DKK', 'NOK', 'SEK' prices
Example 3: Weekly prices in Bergen in 2015
var nordpool = var prices = var opts = currency: 'NOK' area: 'Bergen' from: '2016-01-01' prices
See examples folder for more examples.
Check possible values for area
(regions) from nordpoolspot.com
Data availability
Historical data seems to be available for two previous years.
Known issues
- Versions prior to 2.0 were full of flaws. Don't use them.
- The Nordpool API returns data in Norwegian time zones. The
hourly
API returns data from midnight to midnight in the Europe/Oslo timezone. - The API limits are a bit strange. The maximum number of weeks is 24 and the maximum number of months is 53.
TODO
Add support for other API functions (volume, capacity, flow).