Skip to main content
Version: Upcoming

SRAllocationNotice

V8 Message Definiton

METADATA

AttributeValue
Topic3695-order-allocation
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
allocNumberBIGINTPRI0unique number assigned to this allocation notice
tradeDateDATE'1900-01-01'
clientFirmVARCHAR(16)''
omniAccntVARCHAR(16)''omnibus accnt SR accnt
secKey_atenum - AssetType'None'security key stock future or option
secKey_tsenum - TickerSrc'None'security key stock future or option
secKey_tkVARCHAR(12)''security key stock future or option
secKey_yrSMALLINT UNSIGNED0security key stock future or option
secKey_mnTINYINT UNSIGNED0security key stock future or option
secKey_dyTINYINT UNSIGNED0security key stock future or option
secKey_xxDOUBLE0security key stock future or option
secKey_cpenum - CallPut'Call'security key stock future or option
secTypeenum - SpdrKeyType'None'security type
mlegLegKeyTINYTEXT''secKeyStringKeylegRatiosidepositionEffect secKeyStringKeylegRatiosidepositionEffect
orderSideenum - BuySell'None'order side always buy for MLEG orders
ssaleFlagenum - ShortSaleFlag'None'ssale flag None if not stock
positionTypeenum - PositionType'None'positionType None if not equity option
noticeStateenum - NoticeState'None'indicates that this noticed is ready to forward to a custodian
noticeTextTINYTEXT''
allocMethodenum - AllocMethod'None'method for delivery of the allocation instruction to the broker
execBrkrCodeVARCHAR(16)''used for FIX routing can be null
allocExDestVARCHAR(16)''used for FIX routing
orderShapeenum - SpdrOrderShape'None'Single or MLeg
cumFillQuantityINT0total fill size of all ChildOrders
avgFillPriceDOUBLE0parent order average fill price
netMoneyDOUBLE0net allocation money
modifiedByVARCHAR(24)''user who last modified this record
modifiedInenum - SysEnvironment'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of last modification
ChildOrdersListJSON'JSON_ARRAY()'
FragmentsListJSON'JSON_ARRAY()'
LegPosTypeListJSON'JSON_ARRAY()'
OrderLegsListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
allocNumber1

JSON Block (ChildOrdersList)

FieldTypeComment
clOrdIdenum - clOrdId
orderSizeenum - orderSize
cumFillQuantityenum - cumFillQuantity
avgFillPriceenum - avgFillPrice
streetClOrdIdenum - streetClOrdIdusually clOrdIDX16 but can be different if street gateway was translating clOrdId
streetOrderIdenum - streetOrderIdstreet side order ID for canceling order

JSON Block (FragmentsList)

FieldTypeComment
accntenum - accntSR alloc accnt
clientFirmenum - clientFirmSR client firm
allocAccntenum - allocAccntclearing firm alloc accnt maps to FixAllocAccount
allocFragIdenum - allocFragIdunique ID of this allocfragment maps to FixIndividualAllocID
allocSizeenum - allocSizeaccnt alloc size

JSON Block (LegPosTypeList)

FieldTypeComment
secKeyenum - secKey
secTypeenum - SpdrKeyType
accntenum - accntSR alloc accnt matches fragment
clientFirmenum - clientFirmSR client firm
ssaleFlagenum - ShortSaleFlagssale flag if secType Stock
positionTypeenum - PositionTypepositionType if secType Stock
firmPositionenum - firmPosition

JSON Block (OrderLegsList)

FieldTypeComment
secKeyenum - secKey
secTypeenum - SpdrKeyType
multenum - mult
sideenum - BuySell
legIdenum - legIdSR leg Id
altLegIdenum - altLegIdclient leg Id usually from a FIX order
sumLegQtyenum - sumLegQty
sumLegMnyenum - sumLegMny

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRTrade`.`MsgSRAllocationNotice`
WHERE
/* Replace with a BIGINT */
`allocNumber` = 1234567890;

Doc Columns Query

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRAllocationNotice' ORDER BY ordinal_position ASC;