README
EPEX API
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
- .baseUrl :
string
- .parse(date, country) ⇒
Promise
- .dateFormat :
string
epex.dateFormat : Kind: instance property of Epex
string
epex.baseUrl : Kind: instance property of Epex
Promise
epex.parse(date, country) ⇒ Parse the dayahead auctions from epexspot
Kind: instance method of Epex
Returns: Promise
-
Resolves the auctions as array
Fulfil:
Array
- The auctions as an arrayReject:
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