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.
- 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
- 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.
- 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