Skip to content

MercatiGas

mercati_energetici.MercatiGas

Bases: MercatiEnergetici

Gas markets low level API wrapper. See the GME website for an explanation of the markets.

get_markets() async

Get gas markets.

Returns:

Type Description
list[dict]

A list of Python dictionaries like: [{data: ..., mercato: ..., volumi: ..., tipo: ...}]

get_continuous_trading_results(product, day=None) async

Get gas market results on the continuous trading mode.

Parameters:

Name Type Description Default
product str

the market-day to get results from

required
day date | str

Date of the market negotiation. Default is today. A string in the format "YYYYMMDD" or a datetime.date object.

None

Returns:

Type Description
list[dict]

A list of Python dictionaries like: [{ "data": 20230322, "mercato": "MGP", "prodotto": "MGP-2023-03-23", "primoPrezzo": 45, "ultimoPrezzo": 43.85, "prezzoMinimo": 43.75, "prezzoMassimo": 45.5, "prezzoMedio": 44.430046, "prezzoControllo": 44.638, "volumiMw": 11112, "volumiMwh": 266688 }]

get_auction_trading_results(product, day=None) async

Get gas market results on the auction mode.

Parameters:

Name Type Description Default
product str

the market-day to get results from.

required
day date | str

Date of the market negotiations. Default is today. A string in the format "YYYYMMDD" or a datetime.date object.

None

Returns:

Type Description
list[dict]

A list of Python dictionaries like: [{"data": 20230323, "mercato": "MGP", "prodotto": "MGP-2023-03-24", "prezzo": 45.351, "volumiMw": 9124, "volumiMwh": 218976, "acquistiTso": 0, "venditeTso": 218976 }]

get_stored_gas_trading_results(company, day=None) async

Get gas market results for the stored gas.

Parameters:

Name Type Description Default
company str

the market-company to get results from.

required
day date | str

Date of the market negotiations. Default is today. A string in the format "YYYYMMDD" or a datetime.date object.

None

Returns:

Type Description
list[dict]

A list of Python dictionaries like: [{"data": 20230322, "dataFlusso": 20230322, "impresaStoccaggio": "Stogit", "tipologia": null, "prezzo": 43.5, "volumi": 16613.903, "acquistiSrg": 6237.903, "venditeSrg": 0 }]