MarketBook

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

class gwmm.types.MarketBook(*, Slot, Bids, TypeName='market.book', Version='000')

MarketMaker’s list of bids for a MarketSlot

Parameters:
  • Slot (MarketSlot) –

  • Bids (List[AcceptedBid]) –

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

  • Version (str) –

Slot:
  • Description: MarketSlot the book is for

Bids:
  • Description: List of bids in the book

class gwmm.types.MarketBook_Maker(slot, bids)
Parameters:
classmethod tuple_to_type(tuple)

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

Parameters:

tuple (MarketBook) –

Return type:

str

classmethod type_to_tuple(t)

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

Parameters:

t (str) –

Return type:

MarketBook