Skip to content

MercatiAmbientali

mercati_energetici.MercatiAmbientali

Bases: MercatiEnergetici

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

get_markets() async

Get environmental markets.

Returns:

Type Description
list[dict]

A list of Python dictionaries like: [{"data": 20230323, "mercato": "GO", "volumi": 136917 }]

get_trading_results(market, day=None) async

Get environmental market results.

Parameters:

Name Type Description Default
market str

The market to get results from.

required
day date | str

Date of the market. 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": "GO", "tipologia": "Altro", "periodo": "Altri Mesi 2022", "prezzoRiferimento": 6.833425, "prezzoMinimo": 6.1, "prezzoMassimo": 9, "volumi": 3115 },]