Skip to main content

Transactions

Data Dictionary - Entity Table: Transactions#

Transaction table records all transactions affecting a client portfolio holding.

Primary Key ('id').ENGINE = InnoDB..
Column NameData TypePK Primary Key, NN-Not Null, NullExampleComments
idBIGINT(12)PK, NN1PrimaryKey-ID,(auto creates)Contains the transactions
position_idBIGINT(12)NOT NULL1ID of the position
verification_dateDATETIMENULL10/10/2020 12:30:00 PMVerification Date (Completion date of the entire trade verification process incl. confirmation, affirmation and allocation)
Transaction_DateDATETIMENOT NULL10/10/2020 12:30:00 PMTrade Date (Execution date of the trade, relevant for tax rules and holding periods)
performance_dateDATETIMENULL10/10/2020 12:30:00 PMPerformance Date (date from which performance should be calculated - custodians are mostly settlement oriented while most performance reporting systems are trade date oriented)
settlement_dateDATETIMENULL10/10/2020 12:30:00 PMSettlement Date (relevant for brokers re funding of trades and to determine legal ownership)
transaction_type_idBIGINT(12)NOT NULL1ID of the transaction type
transaction_meta_type_idBIGINT(12)NULL1ID of the meta type
quantityDECIMAL(25,9)NOT NULL2000quantity traded
cost_priceDECIMAL(25,9)NOT NULL12Average execution price for transaction
cost_price_currency_idBIGINT(12)NOT NULL1ID of the cost price currency
transaction_valueDECIMAL(25,9)NULL24000Transaction value in trade currency
transaction_value_currency_idBIGINT(12)NULL1Currency ID of Transaction value
internal_book_textVARCHAR(45)NULLA123Internal booking text
external_book_textVARCHAR(45)NULLB123External booking text
FillBIGINT(12)NULL1Filling order id
ExternalIDVARCHAR(45)NULL1External transaction id (e.g. from trading or corporate actions system). Where present should match a corresponding row in the Order table.
InternalIDVARCHAR(45)NULL1Internal transaction id. Where present should match a corresponding row in the Order table.
CONSTRAINTFOREIGN KEYREFERENCESON DELETEON UPDATE
position_id(position_id)Position(id)NO ACTIONNO ACTION
cost_price_currency_id(cost_price_currency_id)Currency (id)NO ACTIONNO ACTION
transaction_type_id(transaction_type_id)Transaction_Type(id)NO ACTIONNO ACTION
transaction_meta_ type_id(transaction_meta_ type_id)Transaction_Meta_Type (id)NO ACTIONNO ACTION
transaction_value_ currency_id(transaction_value_ currency_id)Currency (id)NO ACTIONNO ACTION
Fill(Fill)Fill (id)NO ACTIONNO ACTION
CREATE INDEXONASCVISIBLE.
position_id_idxTransactions(position_id ASC)VISIBLE.
cost_price_currency_id_idxTransactions(cost_price_currency_id ASC)VISIBLE.
transaction_type_ id_idxTransactions (transaction_type_id ASC)VISIBLE.
transaction_meta_ type_id_idxTransactions (transaction_meta_type_id ASC)VISIBLE.
transaction_value_ currency_id_idxTransactions (transaction_value_currency_id ASC)VISIBLE.
Fill_idxTransactions (Fill ASC)VISIBLE.