Enterprise

An Enterprise is used to provide a grouping mechanism for Firm_ entities in the Trading System.

For example, a large bank that owns several broker firms may be recorded as an Enterprise that owns those brokers that are in turn set up as individual Firm_ instances in the Trading System.

Metadata

  • Base Table Class: Static
  • Default Size: 50

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this Enterprise.
StatusSet of Status4
ShortNameString24The short text identifier of this Enterprise.
ExternalFKInteger (unsigned)8FK for this record in the external system that generated it.
NameString48The long text identifier of this Enterprise.
VenueForeign key to Venue8The Venue to which the Enterprise belongs. Each Enterprise is a member of a single Venue and may only see Markets (and InstrumentMarkets) that share the same Venue.
EnterpriseTypeOne of EnterpriseType1The type of the Enterprise.
PermissionGroupForeign key to PermissionGroup8(Optional) permission group that defines a base collection of permissions applied to this enterprise.
TemplateEnterpriseForeign key to Enterprise8The Id of the template enterprise from which to inherit permissions & status.
WorkingStatusSet of Status4The currently active value of the Status attribute. The Status of the Enterprise. This is a bit field as defined in the Status_ table.
FeeSetForeign key to FeeSet8This is a reference to the FeeSet table. It is keyed by the FeeSet column in this table to the Id column in the FeeSet table.
AddressString500The street address of the Enterprise.
CityString48The city name (as text) of the Enterprise.
StateString48The State (as text) of the Enterprise.
ZipCodeString20The zip or post code (as text) of the Enterprise.
CountryForeign key to Country8This is a reference to the Country table. It is keyed by the Country column in this table to the Id column in the Country table.
SettlementCurrencyForeign 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_.
MetaDataString1024MetaData blob for pass-through to external systems.
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 Enterprise.
OwnerGroupForeign key to Group8The Id of the Group that owns this Enterprise.
OwnerFirmForeign key to Firm8The Id of the Firm that owns this Enterprise.
CreateUserForeign key to User8The Id of the User that created this Enterprise.
CreateTimestampInteger (unsigned)8The time at which this Enterprise was created.
UpdateUserForeign key to User8The Id of the User that last updated this Enterprise.
UpdateTimestampInteger (unsigned)8The time at which this Enterprise was last updated.

Foreign Keys

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

graph LR;
	Firm-->|Enterprise|Enterprise
	click Firm "/marketgrid/developer/model/tables/Firm"
	Permission-->|Enterprise|Enterprise
	click Permission "/marketgrid/developer/model/tables/Permission"