ExchangeRate

Used to persist the prevailing exchange rate for each currency pair when the system is shut down or shared memory is refreshed. For fast lookup of the exchange rates in the engine, see the CurrentExchangeRate table. For consumption of rates by other processes, see the ExchangeRate_change change table.

Metadata

  • Base Table Class: Entity
  • Default Size: 1000

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this ExchangeRate.
StatusSet of Status4
Currency1Foreign key to Instrument8
Currency2Foreign key to Instrument8
RateInteger (signed)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 ExchangeRate.
OwnerGroupForeign key to Group8The Id of the Group that owns this ExchangeRate.
OwnerFirmForeign key to Firm8The Id of the Firm that owns this ExchangeRate.
CreateUserForeign key to User8The Id of the User that created this ExchangeRate.
CreateTimestampInteger (unsigned)8The time at which this ExchangeRate was created.
UpdateUserForeign key to User8The Id of the User that last updated this ExchangeRate.
UpdateTimestampInteger (unsigned)8The time at which this ExchangeRate was last updated.