OrderBook

Metadata

  • Base Table Class: Entity
  • Default Size: Order = 1000

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this OrderBook.
StatusSet of Status4
InstrumentMarketForeign key to InstrumentMarket8InstrumentMarket is the entity that represents an Instrument_ in a specific Market_. It is the entity for which all trading activity is undertaken and at which level all the market data is collected for distribution.
SideOne of OrderSide1Whether this is a Buy (0) or a Sell (1).
PriceInteger (signed)8The current Price for this OrderBook instance.
TotalQuantityInteger (signed)8
MatchableQuantityInteger (signed)8
UnmatchableQuantityInteger (signed)8
VisibleQuantityInteger (signed)8The visible quantity of this Order.
HiddenQuantityInteger (signed)8
NotionalQuantityInteger (signed)8
CumulativeQuantityInteger (signed)8
OrdersInteger (unsigned)8
AONQuantityInteger (signed)8
TagString50For tagged Instruments, this is the identifier of the individual holding.
SettlementClassForeign key to SettlementClass8
OBInfoString34
AuctionPriceInteger (signed)8
AuctionBuyCumulativeQuantityInteger (signed)8
AuctionSellCumulativeQuantityInteger (signed)8
AuctionMaximumExecutableQuantityInteger (signed)8
AuctionMinimumSurplusInteger (signed)8
AuctionCumulativeValueInteger (signed)8
AuctionCumulativeFeeInteger (signed)8
MatchableValueInteger (signed)8
MMOrderCountInteger (signed)8
MMOrderQuantityInteger (signed)8
CurrencyForeign key to Instrument8An Instrument is the entity that represents something to be traded in MarketGrid. In order for an Instrument to trade it must be listed on a Market_ to produce an InstrumentMarket_. Each Instrument may be traded simultaneously on one or more Markets, each such instance being an InstrumentMarket_.
first_HiddenOrderForeign key to Order8
first_NonMidPegForeign key to Order8
UpdateNumberInteger (unsigned)8A number that records every change that happens to a record. It is primarily used to avoid write after read problems when an intermediate write has changed the originally read record.
OwnerUserForeign key to User8The Id of the User that owns this OrderBook.
OwnerGroupForeign key to Group8The Id of the Group that owns this OrderBook.
OwnerFirmForeign key to Firm8The Id of the Firm that owns this OrderBook.
CreateUserForeign key to User8The Id of the User that created this OrderBook.
CreateTimestampInteger (unsigned)8The time at which this OrderBook was created.
UpdateUserForeign key to User8The Id of the User that last updated this OrderBook.
UpdateTimestampInteger (unsigned)8The time at which this OrderBook was last updated.

Foreign Keys

The following diagram shows the tables that have a foreign key link to the OrderBook table. All Table nodes can be clicked to take you to that table's definition page.

graph LR;
	Firm-->|first_OrderBookBuy|OrderBook
	Firm-->|last_OrderBookBuy|OrderBook
	Firm-->|first_OrderBookSell|OrderBook
	Firm-->|last_OrderBookSell|OrderBook
	click Firm "/marketgrid/developer/model/tables/Firm"
	InstrumentMarket-->|first_OrderBookBuy|OrderBook
	InstrumentMarket-->|last_OrderBookBuy|OrderBook
	InstrumentMarket-->|first_OrderBookSell|OrderBook
	InstrumentMarket-->|last_OrderBookSell|OrderBook
	click InstrumentMarket "/marketgrid/developer/model/tables/InstrumentMarket"
	OrderNotionalQuantity-->|OrderBook|OrderBook
	click OrderNotionalQuantity "/marketgrid/developer/model/tables/OrderNotionalQuantity"
	Order-->|OrderBook|OrderBook
	click Order "/marketgrid/developer/model/tables/Order"