HoldingTransaction

This message is used to submit a Holding Transaction & adjust the corresponding Holding record.

Metadata

  • Message Type: TransactionMessage
  • Message Number: 1052

Inherited fields

NameTypeSize (bytes)Description
MessageTypeInteger (unsigned)2The unique identifier of this message.
ClientIdInteger (unsigned)4The unique identifier of a session with the server, returned in a successful LoginReply message.
RequestIdInteger (unsigned)4Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.

Fields

NameTypeSize (bytes)Description
RecordIdInteger (signed)8
AccountForeign key to Account8Account Id associated with the holding transaction.
FirmForeign key to Firm8Firm Id associated with the holding transaction.
AccountCodeString40The human readable identifier of the Account. It is a free text field, up to a maximum of 40 characters.
InstrumentForeign key to Instrument8Instrument Id associated with the holding transaction.
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.
ExternalTransactionIdString20This is the identifier of this transaction in the external system that initiated it
HoldingTransactionMetaDataString2000
QuantityInteger (signed)8
ReasonOne of HoldingTransactionReason1
TypeOne of HoldingTransactionType1
VerifyExternalInteger (unsigned)1
VerifiedInteger (unsigned)1If true, the HoldingTransaction will have HoldingTransactionStatus Confirmed when first entered (no extra confirmation step required).
NoParentInteger (unsigned)1
ForceInteger (unsigned)1
MemoString100
SetMinimumBalanceInteger (unsigned)1
VintageInteger (unsigned)4A year in YYYY format.
ProjectTypeForeign key to ProjectType8
RegionForeign key to Region8
CountryForeign key to Country8
ConfirmationNumberString34
PaymentTypeOne of HoldingTransactionPaymentType1
ValueDateTimeInteger (unsigned)8
AccountDetailsString1024
infoStruct (HoldingInfo)90
TradeSettlementTypeOne of TradeSettlementType1
IsForNettingInteger (unsigned)1
IsPayrollProceedsInteger (unsigned)1

Permissions


Unverified Holding Transaction

{
	instrument: "test-currency",
	quantity: 10,
	type: HoldingTransactionType.Deposit,
	firm: "test-firm",
	accountcode: "test-account",
	verified: false,
}

Permission Checks

PermissionActionTableScopeIndex
DepositAccountInstance0
SetBalanceAccountInstance0
ApproveDenyHoldingInstance-1

Test file: HoldingTransaction


Deposit

{
	instrument: "test-currency",
	quantity: 10,
	type: HoldingTransactionType.Deposit,
	firm: "test-firm",
	accountcode: "test-account",
}

Permission Checks

PermissionActionTableScopeIndex
DepositAccountInstance0
SetBalanceAccountInstance0
ApproveDenyHoldingInstance-1

Test file: HoldingTransaction_Deposit


Set Balance

{
	instrument: "test-currency",
	quantity: 10,
	type: HoldingTransactionType.Set,
	firm: "test-firm",
	accountcode: "test-account",
}

Permission Checks

PermissionActionTableScopeIndex
SetBalanceAccountInstance0
SetBalanceAccountInstance0
ApproveDenyHoldingInstance-1

Test file: HoldingTransaction_SetBalance


Withdraw

{
	instrument: "test-currency",
	quantity: 10,
	type: HoldingTransactionType.Withdraw,
	firm: "test-firm",
	accountcode: "test-account",
}

Permission Checks

PermissionActionTableScopeIndex
WithdrawAccountInstance0
SetBalanceAccountInstance0
ApproveDenyHoldingInstance-1

Test file: HoldingTransaction_Withdraw