MarketSlot

Python pydantic class corresponding to json type `market.slot`.

class gwatn.types.MarketSlot(*, Type, MarketMakerAlias, StartUnixS, TypeName='market.slot', Version='000')

[More info](https://gridworks.readthedocs.io/en/latest/market-slot.html).

Parameters:
  • Type (MarketTypeGt) –

  • MarketMakerAlias (str) –

  • StartUnixS (int) –

  • TypeName (Literal['market.slot']) –

  • Version (str) –

Type:
  • Description:

MarketMakerAlias:
  • Description:

  • Format: LeftRightDot

StartUnixS:
  • Description:

  • Format: ReasonableUnixTimeS

class gwatn.types.market_slot.check_is_reasonable_unix_time_s(v)

ReasonableUnixTimeS format: time in unix seconds between Jan 1 2000 and Jan 1 3000

Raises:

ValueError – if not ReasonableUnixTimeS format

Parameters:

v (int) –

class gwatn.types.market_slot.check_is_left_right_dot(v)

LeftRightDot format: Lowercase alphanumeric words separated by periods, most significant word (on the left) starting with an alphabet character.

Raises:

ValueError – if not LeftRightDot format

Parameters:

v (str) –

class gwatn.types.MarketSlot_Maker(type, market_maker_alias, start_unix_s)
Parameters:
  • type (MarketTypeGt) –

  • market_maker_alias (str) –

  • start_unix_s (int) –

classmethod tuple_to_type(tuple)

Given a Python class object, returns the serialized JSON type object

Parameters:

tuple (MarketSlot) –

Return type:

str

classmethod type_to_tuple(t)

Given a serialized JSON type object, returns the Python class object

Parameters:

t (str) –

Return type:

MarketSlot