@north-tec/epex-api
v2.1.2
Published
API for epexspot
Downloads
39
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
Kind: global class
- Epex
- .dateFormat : string
- .baseUrl : string
- .parse(date, country) ⇒ Promise
epex.dateFormat : string
Kind: instance property of Epex
epex.baseUrl : string
Kind: instance property of Epex
epex.parse(date, country) ⇒ Promise
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