Skip to content

Typescript library for fetching Nord Pool spot electricity prices from the Nord Pool API

License

Notifications You must be signed in to change notification settings

chacal/pohjoisallas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General

pohjoisallas a is Typescript library for fetching Nord Pool spot electricity prices from Nord Pool's API. No registration is required for using the market data part of the API.

Installation

npm install pohjoisallas

Example

import { fetchNordPoolSpotPrices } from 'pohjoisallas'

fetchNordPoolSpotPrices()
  .then(prices => console.log(prices))

/*
  Output:

  [
    {
      start: 2020-10-09T22:00:00.000Z,
      end: 2020-10-09T23:00:00.000Z,
      price: 16.97
    },
    {
      start: 2020-10-09T23:00:00.000Z,
      end: 2020-10-10T00:00:00.000Z,
      price: 16.04
    },
    ...
  ]
*/

Returned prices are in EUR/MWh. Prices for the next day are usually available in the afternoon (UTC) of the current day.

About

Typescript library for fetching Nord Pool spot electricity prices from the Nord Pool API

Resources

License

Stars

Watchers

Forks

Packages

No packages published