MGP
mercati_energetici.MGP
Bases: MercatiElettrici
Day-ahead Electricity Market. This is a higher level interface over MercatiElettrici for the MGP market and the PUN price. Hours are in [0 -> 23].
get_prices(day=None, zone='PUN')
async
Get electricity prices in €/MWh for a specific day and zone.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
day |
date | str
|
Get prices of this date. Default is today. A string in the format
"YYYYMMDD" or a |
None
|
zone |
str
|
One of ["CALA","CNOR","CSUD","NORD","PUN","SARD","SICI","SUD"]. Default is "PUN" (whole Italy). |
'PUN'
|
Returns:
Type | Description |
---|---|
dict
|
A Python dictionary like: |
daily_pun(day=None)
async
Get the PUN price for a specific day.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
day |
date | str
|
Get prices of this date. Default is today. A string in the format
"YYYYMMDD" or a |
None
|
Returns:
Type | Description |
---|---|
float
|
The PUN price in €/MWh. |
get_volumes(day=None, zone='Totale')
async
Get bought and sold volume for a specific day and zone.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
day |
date | str
|
Get volumes of this date. Default is today. A string in the format
"YYYYMMDD" or a |
None
|
zone |
str
|
One of ["CALA","CNOR","CSUD","NORD","SARD","SICI","SUD","Totale"]. Default is "Totale" (whole Italy). |
'Totale'
|
Returns:
Type | Description |
---|---|
tuple[dict, dict]
|
Two Python dictionaries like: |
get_liquidity(day=None)
async
Get liquidity of electricity markets.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
day |
date | str
|
Get liquidity of this date. Default is today. A string in the format
"YYYYMMDD" or a |
None
|
Returns:
Type | Description |
---|---|
dict
|
A Python dictionary like: |