System

The System structure holds the current state for the Trading System. This includes all the time values used throughout the system backend. There is only ever one record in this table.

Metadata

  • Base Table Class: Static
  • Default Size: 1

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this System.
StatusSet of Status4
MachineModeOne of MachineMode1Storage for the zeromq context use by the trading engine process
SystemModeOne of SystemMode1The current operational mode of the system. This attribute is used by the system to ensure an orderly interaction between different processes within the system.
SystemStartedInteger (unsigned)1Whether the system has started or not
SystemStatusSet of Status4The top level status of the system. It provides a single overriding status that allows the system to be suspended (or activated) from a single attribute.
TransactionCountInteger (unsigned)8The number of transactions that the system has currently processed.
SystemStartTimeInteger (unsigned)4When the system was started
SystemStartTimestampInteger (unsigned)8Nanosecond time when the system was started
SystemTimeAtMidnightInteger (unsigned)4The underlying system time at the point at which "midnight" last changed in the system.
SystemStartOfDaySecsInteger (unsigned)4
SystemTimestampInteger (unsigned)8Current system nanosecond time
SystemTimeInteger (unsigned)4Current system Unix time
SystemTimeMonotonicInteger (unsigned)4Current system time read from a monotonic clock source
SystemClockInteger (signed)4Current system time in integer HHMMSS format
SystemDateInteger (signed)4Current system date in integer YYYYMMDD format
SystemDayOfWeekOne of DayOfWeek1The effective day of the week in the system at this time.
SystemUUIDInteger (unsigned)4
SystemClientUUIDInteger (unsigned)4
LastTimeoutCheckInteger (unsigned)4The time at which the system last checked for any sessions that need to be timed out.
LastAuctionIndicativeInteger (unsigned)4The time at which the last indicative auction calculation was performed.
TransactionMajorInteger (unsigned)8This attribute stores the high bits that are used to ensure distinct transaction numbers are produced for this running instance of the system.
UserLoginTokens_countInteger (unsigned)2Count of following field
UserLoginTokensInteger (signed)8An array to store all the session tokens for the maximum number of concurrent connections the system can support.
BootstrapDatabaseString100The name of the database from which the trading engine was started.
TableCountInteger (signed)8
RemapCountInteger (signed)8
PermissionsVersionInteger (unsigned)4Incremented whenever any permission caches are updated.
ABICheckSumString40SHA-1 checksum identifying the version of the shared memory ABI.
SystemShutdownInteger (unsigned)1
NextLoginSearchIndexInteger (unsigned)4
NextLoginCycleInteger (unsigned)2
SystemCycleStateInteger (signed)1
SystemCycleCountInteger (unsigned)4
InstanceIdInteger (unsigned)4
EngineMD5SumString32
BCSequenceAfterReloadInteger (unsigned)8
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 System.
OwnerGroupForeign key to Group8The Id of the Group that owns this System.
OwnerFirmForeign key to Firm8The Id of the Firm that owns this System.
CreateUserForeign key to User8The Id of the User that created this System.
CreateTimestampInteger (unsigned)8The time at which this System was created.
UpdateUserForeign key to User8The Id of the User that last updated this System.
UpdateTimestampInteger (unsigned)8The time at which this System was last updated.