Package to download electricity time series from https://www.omie.es/
Project description
OMIEData:
Python package to import data from OMIE (Iberian Peninsula's Electricity Market Operator): https://www.omie.es/
Concretely, you can easily access to data for the following markets:
- Daily market: hourly prices in Spain and Portugal, total hourly energy after auction (with/without billateral contracts), breakdown of the total hourly energy by technology and bid/ask curves.
- Intra-day market: hourly prices for the different sessions and total hourly energy.
- Additional data in next releases.
Installation
The package is uploaded at https://pypi.org/project/OMIEData/, so
python -m pip install OMIEData
from the command line will install the last version uploaded to pypi.
Aternatively, to install it from GitHub, type:
python -m pip install git+https://github.com/acruzgarcia/OMIEData
in the command line, or use the .whl (or .tar.gz) file within dist (and dist_old) folders as:
python -m pip install OMIEData-VERSION-py3-none-any.whl
or
python -m pip install OMIEData-VERSION.tar.gz
to install a previous version.
Examples:
A very simple example to download hourly electricity prices and loads:
dateIni = dt.datetime(2012, 3, 11)
dateEnd = dt.datetime(2012, 4, 15)
# This can take time, it is downloading the files from the website..
df = OMIEMarginalPriceImporter(date_ini=dateIni, date_end=dateEnd).read_to_dataframe(verbose=True)
df.sort_values(by='DATE', axis=0, inplace=True)
print(df)
Another example to download hourly loads resulting of the daily market auction, breakdown by technologies:
dateIni = dt.datetime(2020, 6, 1)
dateEnd = dt.datetime(2020, 7, 30)
system_type = SystemType.SPAIN
# This can take time, it is downloading the files from the website..
df = OMIEEnergyByTechnologyImporter(date_ini=dateIni,
date_end=dateEnd,
system_type=system_type).read_to_dataframe(verbose=True)
df.sort_values(by=['DATE', 'HOUR'], axis=0, inplace=True)
print(df)
Other examples that illustrate the use of the package:
Enjoy!.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for OMIEData-0.0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc27f894b1b2c9d0b9eab9f0e423009d33503950861d9a2ca63b8c4c9df08f18 |
|
MD5 | 774b05f231a7a6e288893da556b14450 |
|
BLAKE2b-256 | c75a2bf497975c841e5fd5f88fe9915acf26c100dad92c1bf4d46d73455564b4 |