Skip to main content
Version: 8.6.9.2

SRAllocUnitStatus

V8 Message Definiton

METADATA

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

Table Definition

FieldTypeKeyDefault ValueComment
baseParentNumberCHAR(19)PRI'0000-0000-0000-0000'omnibus parent order minted fillNumber for away executions
secKey_atenum - AssetTypePRI'None'security key stock future or option one unit per security within the parent
secKey_tsenum - TickerSrcPRI'None'security key stock future or option one unit per security within the parent
secKey_tkVARCHAR(12)PRI''security key stock future or option one unit per security within the parent
secKey_yrSMALLINT UNSIGNEDPRI0security key stock future or option one unit per security within the parent
secKey_mnTINYINT UNSIGNEDPRI0security key stock future or option one unit per security within the parent
secKey_dyTINYINT UNSIGNEDPRI0security key stock future or option one unit per security within the parent
secKey_xxDOUBLEPRI0security key stock future or option one unit per security within the parent
secKey_cpenum - CallPutPRI'Call'security key stock future or option one unit per security within the parent
secTypeenum - SpdrKeyType'None'
omniAccntVARCHAR(16)''omnibus accnt SR accnt
omniCFirmVARCHAR(16)''SR client firm
orderSideenum - BuySell'None'
mlegLegKeyTINYTEXT''MLeg package legs blank for singlesecurity parents
spdrSourceenum - SpdrSource'None'parent order source
groupingCodeCHAR(19)'0000-0000-0000-0000'unique broker code
riskGroupIdCHAR(19)'0000-0000-0000-0000'riskGroupId carried by the units fills zero if none
ssaleFlagenum - ShortSaleFlag'None'ssale flag None if not stock
positionTypeenum - PositionType'None'positionType None if not equity option
inQtyINT0total omni fill quantity contractsshares
inAvgPrcDOUBLE0average omni fill price
inMoneyDOUBLE0omni fill money inQty x inAvgPrc x pointValue
outQtyINT0quantity moved by InOut allocation pairs so far
outMoneyDOUBLE0money moved by InOut allocation pairs so far
numOutsINT0number of destination fragments allocated to so far
outAccntsTINYTEXT''destination accounts allocated to so far comma list
unitStatusenum - AllocUnitStatus'None'Open fills and no transfers Partial some transfers Complete fully allocated
instrSourceenum - AllocSource'None'instruction tier covering this unit most specific present None NO tier covers it needs attention
terminalenum - YesNo'None'parent order terminal all brokers closed or bornterminal away execution
firstFillDttmDATETIME(6)'1900-01-01 00:00:00.000000'
lastFillDttmDATETIME(6)'1900-01-01 00:00:00.000000'
lastOutDttmDATETIME(6)'1900-01-01 00:00:00.000000'last InOut pair emission or reversal
terminalDttmDATETIME(6)'1900-01-01 00:00:00.000000'when the parent reached terminal aging anchor for monitoring
modifiedByVARCHAR(24)''user who last modified this record
modifiedInenum - SysEnvironment'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of last modification

PRIMARY KEY DEFINITION (Unique)

FieldSequence
baseParentNumber1
secKey_tk2
secKey_yr3
secKey_mn4
secKey_dy5
secKey_xx6
secKey_cp7
secKey_at8
secKey_ts9

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRTrade`.`MsgSRAllocUnitStatus`
WHERE
/* Replace with a CHAR(19) */
`baseParentNumber` = 'Example_baseParentNumber'
AND
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`secKey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`secKey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`secKey_tk` = 'Example_secKey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`secKey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`secKey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`secKey_dy` = 1
AND
/* Replace with a DOUBLE */
`secKey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`secKey_cp` = 'Call';

Doc Columns Query

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