HoldingTransaction

Metadata

  • Base Table Class: Entity
  • Default Size: 1000

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this HoldingTransaction.
StatusSet of Status4
ExternalTimestampInteger (unsigned)8
RecordIdInteger (signed)8
HoldingForeign key to Holding8A Holding describes the position held by an Account_ for a given Instrument_. Such a position is a combination of the balance at the start of the day and the aggregate actual buys and sells completed since the opening balance. In addition, the balances of planned transactions (effectively the unmatched Order_ records) are also recorded here for the purposes of monitoring and risk management.
PairedHoldingTransactionForeign key to HoldingTransaction8
InstrumentForeign key to Instrument8An Instrument is the entity that represents something to be traded in MarketGrid. In order for an Instrument to trade it must be listed on a Market_ to produce an InstrumentMarket_. Each Instrument may be traded simultaneously on one or more Markets, each such instance being an InstrumentMarket_.
TagString50For tagged Instruments, this is the identifier of the individual holding.
ExternalIdString30A place for writing the identifier of this HoldingTransaction at the external venue where it is managed.
ExternalTransactionIdString20A place for writing the identifier of the external transaction that is connected with this HoldingTransaction record at the external venue to which it is related.
ExternalAccountForeign key to ExternalAccount8This is a reference to the ExternalAccount table. It is keyed by the ExternalAccount column in this table to the Id column in the ExternalAccount table.
QuantityInteger (signed)8
PrevQuantityInteger (signed)8
TypeOne of HoldingTransactionType1
HoldingTransactionStatusOne of HoldingTransactionStatus1
ExternalStatusString1024
ReasonOne of HoldingTransactionReason1A reason code to indicate why this HoldingTransaction was created.
SuspenseAccountReasonOne of Result2For banking transactions on the Suspense Account, this is a Result code that indicates why the transaction is in the Suspense Account
VerifyExternalInteger (unsigned)1
NoParentInteger (unsigned)1
ProjectIdString50The identifier of the specific project at the external register associated with this HoldingTransaction record.
VintageInteger (unsigned)4A year in YYYY format.
ProjectTypeForeign key to ProjectType8This is a reference to the ProjectType table. It is keyed by the ProjectType column in this table to the Id column in the ProjectType table.
RegionForeign key to Region8This is a reference to the Region table. It is keyed by the Region column in this table to the Id column in the Region table.
CountryForeign key to Country8This is a reference to the Country table. It is keyed by the Country column in this table to the Id column in the Country table.
TradeForeign key to Trade8If this transaction is related to settlement of a trade, this is the particular trade to which it applies.
TradeSettlementTypeOne of TradeSettlementType1The type of trade settlement transaction.
TradeCostsActionOne of TradeCostsAction1The action for a trade costs transaction.
HoldingTransactionMetaDataString2000A free-format field with pass-through information for the Holding Transaction.
TradeReportForeign key to Order8Used for XCHG where we may create a holding transaction from a TwoSideReport.
LinkedHoldingTransactionForeign key to HoldingTransaction8For a transaction resulting from a bank ACH return, this links back to the transaction generated by the original ACH request.
HoldingBalanceInteger (signed)8Balance of the Holding at the time of the transaction.
HoldingAvailableBalanceInteger (signed)8AvailableBalance of the Holding at the time of the transaction.
HoldingAvailableToTransferInteger (signed)8Useable balance of the Holding at the time of the transaction.
HoldingTransactionSourceOne of Source1
CreateMemoString100
VerifyMemoString100
ConfirmAfterDaysInteger (unsigned)2If not zero, is the number of days after being posted by JPM that the transaction may become confirmed. If set, takes precedence over ConfirmAfter and will set ConfirmAfter once the transaction is posted by JPM.
ConfirmAfterInteger (unsigned)8If not null, is the date/time after which an incoming ACH deposit may become confirmed.
IsForNettingInteger (unsigned)1
IsPayrollProceedsInteger (unsigned)1
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 HoldingTransaction.
OwnerGroupForeign key to Group8The Id of the Group that owns this HoldingTransaction.
OwnerFirmForeign key to Firm8The Id of the Firm that owns this HoldingTransaction.
CreateUserForeign key to User8The Id of the User that created this HoldingTransaction.
CreateTimestampInteger (unsigned)8The time at which this HoldingTransaction was created.
UpdateUserForeign key to User8The Id of the User that last updated this HoldingTransaction.
UpdateTimestampInteger (unsigned)8The time at which this HoldingTransaction was last updated.

Foreign Keys

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

graph LR;
	BankTransaction-->|HoldingTransaction|HoldingTransaction
	click BankTransaction "/marketgrid/developer/model/tables/BankTransaction"