flexmeasures.data.models.markets

Classes

class flexmeasures.data.models.markets.Market(**kwargs)

Each market is a pricing service.

This model is now considered legacy. See GenericAsset and Sensor.

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

property entity_address: str

Entity address under the latest fm scheme for entity addresses.

property entity_address_fm0: str

Entity address under the fm0 scheme for entity addresses.

event_resolution: timedelta
get_attribute(attribute: str)

Looks for the attribute on the corresponding Sensor.

This should be used by all code to read these attributes, over accessing them directly on this class, as this table is in the process to be replaced by the Sensor table.

id
knowledge_horizon_fnc: str
knowledge_horizon_par: dict
name: str
property price_unit: str

Return the ‘unit’ property of the generic asset, just with a more insightful name.

timezone: str
unit: str
class flexmeasures.data.models.markets.MarketType(**kwargs)

Describing market types for our purposes. This model is now considered legacy. See GenericAssetType.

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

property preconditions: Dict[str, bool]

Assumptions about the time series data set, such as normality and stationarity For now, this is usable input for Prophet (see init), but it might evolve or go away.

class flexmeasures.data.models.markets.Price(use_legacy_kwargs=True, **kwargs)

All prices are stored in one slim table.

This model is now considered legacy. See TimedBelief.

__init__(use_legacy_kwargs=True, **kwargs)
data_source_id
datetime
horizon
classmethod make_query(**kwargs) Query

Construct the database query.

value