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.
- Section: Position Keeping
Metadata
- Base Table Class: Static
- Default Size: 1000
Fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| Id | Integer (signed) | 8 | The unique identifier of this AccountType. |
| Status | Set of Status | 4 | |
| ShortName | String | 24 | The short text identifier of this AccountType. |
| Name | String | 48 | The long text identifier of this AccountType. |
| MpId | String | 20 | |
| Capabilities | Set of AccountTypeCapabilities | 2 | |
| MatchingPriority | Integer (unsigned) | 1 | Setting 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). |
| ForceExternalAccount | Integer (unsigned) | 1 | If enabled, creates an ExternalAccount when the Account is created. |
| UpdateNumber | Integer (unsigned) | 8 | A 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. |
| OwnerUser | Foreign key to User | 8 | The Id of the User that owns this AccountType. |
| OwnerGroup | Foreign key to Group | 8 | The Id of the Group that owns this AccountType. |
| OwnerFirm | Foreign key to Firm | 8 | The Id of the Firm that owns this AccountType. |
| CreateUser | Foreign key to User | 8 | The Id of the User that created this AccountType. |
| CreateTimestamp | Integer (unsigned) | 8 | The time at which this AccountType was created. |
| UpdateUser | Foreign key to User | 8 | The Id of the User that last updated this AccountType. |
| UpdateTimestamp | Integer (unsigned) | 8 | The 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"