pohjoisallas
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i pohjoisallas

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

7.51 kB

Total Files

5

Last publish

Collaborators

  • chacal