@offrain/nordpool
v2.0.2
Published
### Unofficial nordpool-api
Downloads
91
Maintainers
Readme
Nordpool API
Unofficial nordpool-api
When you decide to use this make sure you read Nordpool T&Cs
About
This API is a tool to fetch DayAhead
Prices from NordPool Market
Install
Install using npm
npm i @offrain/nordpool
Usage
// ES module
import { nordpool } from '@offrain/nordpool';
const getHourlyRates = async () => {
const data = await nordpool.hourly({ area: 'FI', vat: 20, currency: 'EUR' });
console.log("Today's hourly prices:", data);
};
getHourlyRates();
// COMMONJS
const { nordpool } = require('@offrain/nordpool');
const getHourlyRates = async () => {
const data = await nordpool.hourly({ area: 'FI', vat: 20, currency: 'EUR' });
console.log("Today's hourly prices:", data);
};
getHourlyRates();
Options
area
: Energy market area.- String or an array of strings, case sensitive. Currently available areas are
EE, LV, LT, AT, DK1,DK2, FI, OSLO, SE1, SE2, SE3
- String or an array of strings, case sensitive. Currently available areas are
VAT
: Number, pass in local vat % that will returnpriceWithVAT
property. If not provided thenVAT nr not provided
will be returned for that prop.currency
:DKK
,EUR
,NOK
orSEK
optional, defaultEUR
.
Returned values
[
{
"region": "FI",
"date": "2021-12-22T22:00:00.000Z", // Local Server Time
"hour": "00:00", // Local Server Time
"marketPrice": 181.9,
"consumerPrice": 21.82,
"consumerUnit": "snt/kWh"
"marketUnit": "EUR/mWh"
}
]