Skip to content

dimoschi/energylive-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

energylive

Python client for the EnergyLive API

The API is currently undocumented.

Installation

  1. Clone this repository
  2. python3 -m pip install <path_to_cloned_repo>

Usage

The code currently creates a client based on requests session and uses the following two methods:

  • get_day_ahead_prices(area, start_date, end_date)
  • get_volume(area, start_date, end_date)

The user has also the option to get the data in both JSON (default) or XML by setting response_type once during EnergyLiveClient instantiation.

from energylive import EnergyLiveClient
import pandas as pd

client = EnergyLiveClient(api_key=<YOUR API KEY>)

start_date = '2020-01-01' or pd.Timestamp('2020-01-01')
end_date = '2020-01-01' or pd.Timestamp('2020-01-01')
area = 'GR'  # Greece

# Methods
client.query_day_ahead_prices(country_code, start, end)
client.query_load(country_code, start, end)

About

An API implementation for EnergyLive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages