TwoSideReport

Enter a two-sided Trade Report by a third party.

The trade report must be confirmed by both parties for the trade to execute.

Metadata

  • Message Type: TransactionMessage
  • Message Number: 1048

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
InstrumentMarketForeign key to InstrumentMarket8
BuyerForeign key to User8
SellerForeign key to User8
TypeSet of OrderType4
PriceInteger (signed)8
QuantityInteger (signed)8
TagString50For tagged Instruments, this is the identifier of the individual holding.
VintageInteger (unsigned)4A year in YYYY format.
CurrencyForeign key to Instrument8
SettlementCurrencyBuyerForeign key to Instrument8
SettlementCurrencySellerForeign key to Instrument8
MetaDataString20
ExpiryDateInteger (signed)4Represents a date as an integer in YYYYMMDD format.
ExpiryTimeInteger (signed)4Represents time as an integer in HHMMSS format.
BuyerAccountForeign key to Account8
BuyerAccountCodeString40The human readable identifier of the Account. It is a free text field, up to a maximum of 40 characters.
SellerAccountForeign key to Account8
SellerAccountCodeString40The human readable identifier of the Account. It is a free text field, up to a maximum of 40 characters.

Permissions


Submit unconfirmed TwoSideReport transaction

{
	instrumentmarket: "test-im4",
	buyer: "test-user4",
	seller: "test-user5",
	price: 101,
	quantity: 1,
}

Permission Checks

PermissionActionTableScopeIndex
ReportTradeInstrumentMarketInstance3
ViewMarketInstance0
AllowBuyOrSellMarketInstance0
AllowBuyOrSellMarketInstance0
EnterAccountInstance0

Test file: TwoSideReport