@north-tec/epex-api

API for epexspot

Usage no npm install needed!

<script type="module">
  import northTecEpexApi from 'https://cdn.skypack.dev/@north-tec/epex-api';
</script>

README

EPEX API

npm version npm downloads install size pipeline status coverage report

Installing

Using npm:

$ npm install @north-tec/epex-api

Example

const epexApi = require('@north-tec/epex-api').epex;

epexApi.parse('2018-07-01', 'FR').then(auctions => {
    console.log(auctions);
}).catch(err => {
    console.log(err);
});
import { epex } from '@north-tec/epex-api';

epex.parse('2018-07-01', 'FR').then(auctions => {
    console.log(auctions);
}).catch(err => {
    console.log(err);
});

Epex

Create a new instance of Epex

Kind: global class

epex.dateFormat : string

Kind: instance property of Epex

epex.baseUrl : string

Kind: instance property of Epex

epex.parse(date, country) ⇒ Promise

Parse the dayahead auctions from epexspot

Kind: instance method of Epex
Returns: Promise -

Resolves the auctions as array


Fulfil: Array - The auctions as an array
Reject: Error - An error

Param Type Description
date String

The date of the auctions in the given dateFormat

country String

The country short

Resources

License

MIT