AccountType

AccountTypes provide a categorisation of Accounts in MarketGrid.

Overview

Where there are functional implications, the AccountTypeCapabilities can be used to attach those capabilities to a class of account.

Generally speaking, outside of an Auction event there are very few functional implications of capabilities. See the capabilities documentation for more details.

Metadata

  • Base Table Class: Static
  • Default Size: 1000

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this AccountType.
StatusSet of Status4
ShortNameString24The short text identifier of this AccountType.
NameString48The long text identifier of this AccountType.
MpIdString20
CapabilitiesSet of AccountTypeCapabilities2
MatchingPriorityInteger (unsigned)1Setting of this value will ensure that an Account with this value will first try and match with Accounts of higher priority than this Account. Primarily used to avoid brokers from front running their client orders (higher priority accounts) with house accounts (lower priority).
ForceExternalAccountInteger (unsigned)1If enabled, creates an ExternalAccount when the Account is created.
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 AccountType.
OwnerGroupForeign key to Group8The Id of the Group that owns this AccountType.
OwnerFirmForeign key to Firm8The Id of the Firm that owns this AccountType.
CreateUserForeign key to User8The Id of the User that created this AccountType.
CreateTimestampInteger (unsigned)8The time at which this AccountType was created.
UpdateUserForeign key to User8The Id of the User that last updated this AccountType.
UpdateTimestampInteger (unsigned)8The time at which this AccountType was last updated.

Foreign Keys

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

graph LR;
	Account-->|AccountType|AccountType
	click Account "/marketgrid/developer/model/tables/Account"
	FirmAccountType-->|AccountType|AccountType
	click FirmAccountType "/marketgrid/developer/model/tables/FirmAccountType"