Order_full_change

An Order is the fundamental record of trading activity in the system. This is an entity to record changes in the Order structure. It holds records that are already prepared for sending out via the market data streams (for example resolving internal shared memory indexes into external foreign key Ids)

Metadata

  • Base Table Class: Change
  • Not in MDB
  • Default Size: Order * 4 = 4000

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this Order_full.
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 Order_full_change.
ReferenceString20The published identifier for this Order_full_change. It is a string of characters that uniquely identifies every Order_full_change in the system.
InstrumentMarketForeign key to InstrumentMarket8
OriginalOrderForeign key to Order8If an Order is amended, the OriginalOrder field reflects the Id of the original Order placed. This remains the same even with multiple amendments.
AmendedOrderForeign key to Order8If an Order is amended, the AmendedOrder field reflects the Id of the Order that was amended to create this Order.
PairedOrderForeign key to Order8This field is used internally to track the paired Order on the other side of a Two Sided Reported Trade.
RoutingStateForeign key to RoutingState8
OwnerFirmForeign key to Firm8
OwnerGroupForeign key to Group8
OwnerUserForeign key to User8
OriginatingUserForeign key to User8The User that originally made the Order. This is maintained if the Order is amended.
CounterPartyForeign key to User8Used for One Sided Trade Reports. The Id of the counterparty User with whom the one-sided trade report was done.
SideOne of OrderSide1Whether this is a Buy (0) or a Sell (1).
TypeSet of OrderType4
CurrencyForeign key to Instrument8
PriceDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting prices for this Order_full_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.
QuantityDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting quantities for this Order_full_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.
ValueDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting the value of this Order_full_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.
SettlementCurrencyForeign key to Instrument8
SettlementValueDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting the value of this Order_full_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.
FeeCurrencyForeign key to Instrument8
FeeCurrencyDecimalsInteger (unsigned)1The number of decimal places that should be used when interpreting the value of this Order_full_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 FeeCurrencyDecimals of 2 means 11,500.00.
ExchangeRateInteger (signed)8
FeeExchangeRateInteger (signed)8
OrderStatusSet of OrderStatus4
PriceInteger (signed)8The current Price for this Order_change instance.
TotalQuantityInteger (signed)8The total quantity of this Order.
VisibleQuantityInteger (signed)8The visible quantity of this Order.
HiddenQuantityInteger (signed)8The is the total quantity of the Order that is hidden from the market.
TotalBalanceInteger (signed)8The total remaining quantity of the order.
VisibleBalanceInteger (signed)8The remaining visible balance of the order.
HiddenBalanceInteger (signed)8This is the remaining quantity of the Order that is hidden from the market.
MatchedInteger (signed)8The total amount of the Order that has been matched.
IndicativeMatchedInteger (signed)8The amount of the Order that would be matched in an Auction if the Auction was concluded now.
SessionIndicativeMatchedInteger (signed)8The amount of the Order that would be matched as at the end of the last session.
OrdinalPhaseInteger (signed)1For as multi-phase Auction, this is the phase in which this Order was entered.
TradeQuantityInteger (signed)8The amount of the Order that was matched in this change (if the Reason is Traded or Matched)
TradePriceInteger (signed)8The price at which the Order was matched in this change (if the Reason is Traded or Matched)
ValueInteger (signed)8The value of the Order in the currency in which it will settle.
SettlementValueInteger (signed)8
FeeInteger (signed)8
ReservedFundsInteger (signed)8For auctions with reserved funds optimisation this is the value of reserved funds for the Order's Account after this Order is entered.
AccountForeign key to Account8
AccountCodeString40The human readable identifier of the Account. It is a free text field, up to a maximum of 40 characters.
AccountNameString254
BrokerageAccountForeign key to Account8
TagString50For tagged Instruments, this is the identifier of the individual holding.
SettlementClassForeign key to SettlementClass8
ExternalTransactionIdString20A place for writing the identifier of the external transaction that is connected with this Order_full_change record at the external venue to which it is related.
SecurityLotLabelString20
SecurityLotIdInteger (unsigned)8
PriorityInteger (unsigned)2
ExternalIdString30A place for writing the identifier of this Order_full_change at the external venue where it is managed.
ExpiryDateInteger (signed)4The date on which the Order will expire.
ExpiryTimeInteger (signed)4The time at which the Order will expire.
OrderDateInteger (signed)4Represents a date as an integer in YYYYMMDD format.
ReasonOne of OrderReason1
SoftBlockOverrideInteger (unsigned)1
ErrorOne of Result2
LotSizeInteger (unsigned)4An InstrumentMarket may trade in lots, where a lot is a fixed number of units of the InstrumentMarket. LotSize defines the number of units per lot for an InstrumentMarket. If an InstrumentMarket trades in single units, the LotSize is 1. Prices are always on a per-lot basis. This value determines the LotSize for the instances of this Order_change.
ProjectIdString50The identifier of the specific project at the external register associated with this Order_full_change record.
VintageFromInteger (unsigned)4A year in YYYY format.
VintageToInteger (unsigned)4A year in YYYY format.
ProjectTypeForeign key to ProjectType8
RegionForeign key to Region8
CountryForeign key to Country8
OrderInfoString140Represents some supplementary free text information associated with this Order_full_change record.
BlotterForeign key to Blotter8
MinimumFillInteger (signed)8
ClOrdIDString60In the FIX protocol the ClOrdID field is the user supplied identifier for an inbound Order that the user will provide to identify the Order when acting on the Order. When referring to an exising Order the user will use the OrigClOrdID field to identify the ClOrdID of the Order in question.
ExternalAccountForeign key to ExternalAccount8
ValueCummInteger (signed)8
SettlementValueCummInteger (signed)8
FeeCummInteger (signed)8
TaxCummInteger (signed)8
AmendedClOrdIDString60In the FIX protocol the ClOrdID field is the user supplied identifier for an inbound Order that the user will provide to identify the Order when acting on the Order. When referring to an exising Order the user will use the OrigClOrdID field to identify the ClOrdID of the Order in question.
SourceOne of Source1
PegRefOne of PegRef1
PegOffsetInteger (signed)8
PegLimitInteger (signed)8
FeeLeftInteger (signed)8
AveragePriceInteger (signed)8
SettlementValueLeftInteger (signed)8
ValueLeftInteger (signed)8
ExternalSettlementAccountForeign key to ExternalAccount8
InstrumentForeign key to Instrument8
AuctionAccountForeign key to AuctionAccount8
ModifiedPriorityOne of OrderModifiedPriority1
OrderPriorityOne of OrderPriority1
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 Order_full_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 Order_full.
CreateTimestampInteger (unsigned)8The time at which this Order_full was created.
UpdateUserForeign key to User8The Id of the User that last updated this Order_full.
UpdateTimestampInteger (unsigned)8The time at which this Order_full was last updated.

Foreign Keys

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

graph LR;
	Order-->|last_Order_change|Order_full_change
	click Order "/marketgrid/developer/model/tables/Order"