TradeReport_change

Metadata

  • Base Table Class: Change
  • Default Size: Order = 1000

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this TradeReport.
StatusSet of Status4
TimestampInteger (unsigned)8The time at which this change record was generated. This is not the same as the business-level timestamp of this TradeReport_change.
ReferenceString20The published identifier for this TradeReport_change. It is a string of characters that uniquely identifies every TradeReport_change in the system.
OrderForeign key to Order8
PairedOrderForeign key to Order8This field is used to track the paired Order on the other side of a Reported Trade.
InstrumentMarketForeign key to InstrumentMarket8
TagString50For tagged Instruments, this is the identifier of the individual holding.
VintageInteger (unsigned)4A year in YYYY format.
SideOne of OrderSide1Whether this is a Buy (0) or a Sell (1).
TypeSet of OrderType4
OrderStatusSet of OrderStatus4
CurrencyForeign key to Instrument8
SettlementCurrencyForeign key to Instrument8
PriceDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting prices for this TradeReport_change. Prices within MarketGrid are stored and communicated as integers with fixed numbers of decimals. This field specifies how many digits are to the right of the decimal point. For example, a price of 10350 with PriceDecimals set to 2 means 103.50.
PriceInteger (signed)8
QuantityDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting quantities for this TradeReport_change. Quantities within MarketGrid are stored and communicated as integers with fixed numbers of decimals. This field specifies how many digits are to the right of the decimal point. For example, a quantity of 12345 with QuantityDecimals set to 3 means 12.345.
QuantityInteger (signed)8
ValueDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting the value of this TradeReport_change. Values within MarketGrid are stored and communicated as integers with fixed numbers of decimals. This field specifies how many digits are to the right of the decimal point. For example, a value of 1150000 with ValueDecimals of 2 means 11,500.00.
ValueInteger (signed)8
SettlementValueDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting the value of this TradeReport_change. Values within MarketGrid are stored and communicated as integers with fixed numbers of decimals. This field specifies how many digits are to the right of the decimal point. For example, a value of 1150000 with SettlementValueDecimals of 2 means 11,500.00.
SettlementValueInteger (signed)8
AccountForeign key to Account8
ExpiryDateInteger (signed)4Represents a date as an integer in YYYYMMDD format.
ExpiryTimeInteger (signed)4Represents time as an integer in HHMMSS format.
OwnerFirmForeign key to Firm8
OwnerGroupForeign key to Group8
OwnerUserForeign key to User8
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.
BCSequenceInteger (unsigned)8The sequence number of this TradeReport_change message in the overall broadcast sequence.
ReloadedInteger (unsigned)1Set to true for change records that are generated during a normal startup from engine cache files.
InstanceIdInteger (unsigned)4
RunIdInteger (unsigned)4
ChangedFieldOne of KVPKey4
CreateUserForeign key to User8The Id of the User that created this TradeReport.
CreateTimestampInteger (unsigned)8The time at which this TradeReport was created.
UpdateUserForeign key to User8The Id of the User that last updated this TradeReport.
UpdateTimestampInteger (unsigned)8The time at which this TradeReport was last updated.

Foreign Keys

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

graph LR;
	Order-->|last_TradeReport_change|TradeReport_change
	click Order "/marketgrid/developer/model/tables/Order"