MarketTypeGt
Python pydantic class corresponding to json type `market.type.gt`
.
- class gwatn.types.MarketTypeGt(*, Name, DurationMinutes, GateClosingSeconds, PriceUnit, QuantityUnit, CurrencyUnit, PriceMax, TypeName='market.type.gt', Version='000')
Used by MarketMakers to simultaneously run several different types of Markets.
A [MarketMaker](https://gridworks.readthedocs.io/en/latest/market-maker.html) GNode can run several types of Markets. For example, it can run an
hourly real-time market and also an ancillary services market for Regulation. This is captured by the concept of MarketType.
- Parameters:
Name (MarketTypeName) –
DurationMinutes (int) –
GateClosingSeconds (int) –
PriceUnit (MarketPriceUnit) –
QuantityUnit (MarketQuantityUnit) –
CurrencyUnit (RecognizedCurrencyUnit) –
PriceMax (int) –
TypeName (Literal['market.type.gt']) –
Version (str) –
- Name:
Description: Name of the MarketType
- DurationMinutes:
Description: Duration of MarketSlots, in minutes
- GateClosingSeconds:
Description: Seconds before the start of a MarketSlot after which bids are not accepted
- PriceUnit:
Description: Price Unit for market (e.g. USD Per MWh)
- QuantityUnit:
Description: Quantity Unit for market (e.g. AvgMW)
- CurrencyUnit:
Description: Currency Unit for market (e.g. USD)
- PriceMax:
Description: PMax, required for defining bids
- class gwatn.types.MarketTypeGt_Maker(name, duration_minutes, gate_closing_seconds, price_unit, quantity_unit, currency_unit, price_max)
- Parameters:
name (MarketTypeName) –
duration_minutes (int) –
gate_closing_seconds (int) –
price_unit (MarketPriceUnit) –
quantity_unit (MarketQuantityUnit) –
currency_unit (RecognizedCurrencyUnit) –
price_max (int) –
- classmethod tuple_to_type(tuple)
Given a Python class object, returns the serialized JSON type object
- Parameters:
tuple (MarketTypeGt) –
- Return type:
str
- classmethod type_to_tuple(t)
Given a serialized JSON type object, returns the Python class object
- Parameters:
t (str) –
- Return type: