FirmAccountType
Mapping which AccountTypes may be used for particular Firms. It also determines which FeeSet if any should be applied for this kind of Account.
- Section: Position Keeping
Metadata
- Base Table Class: Static
- Default Size: Firm * AccountType = 50000
Fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| Id | Integer (signed) | 8 | The unique identifier of this FirmAccountType. |
| Status | Set of Status | 4 | |
| Firm | Foreign key to Firm | 8 | A Firm is the organisational unit into which users of the Trading System are grouped. Every Firm belongs to one Enterprise. |
| AccountType | Foreign key to AccountType | 8 | This is a reference to the AccountType table. It is keyed by the AccountType column in this table to the Id column in the AccountType table. |
| FeeSet | Foreign key to FeeSet | 8 | This 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. |
| MpId | String | 20 | |
| 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 FirmAccountType. |
| OwnerGroup | Foreign key to Group | 8 | The Id of the Group that owns this FirmAccountType. |
| OwnerFirm | Foreign key to Firm | 8 | The Id of the Firm that owns this FirmAccountType. |
| CreateUser | Foreign key to User | 8 | The Id of the User that created this FirmAccountType. |
| CreateTimestamp | Integer (unsigned) | 8 | The time at which this FirmAccountType was created. |
| UpdateUser | Foreign key to User | 8 | The Id of the User that last updated this FirmAccountType. |
| UpdateTimestamp | Integer (unsigned) | 8 | The time at which this FirmAccountType was last updated. |
Foreign Keys
The following diagram shows the tables that have a foreign key link to the FirmAccountType table. All Table nodes can be clicked to take you to that table's definition page.
graph LR; Account-->|FirmAccountType|FirmAccountType click Account "/marketgrid/developer/model/tables/Account"