Skip to main content
Version: Upcoming

SRParentBrkrEvent

V8 Message Definiton

SpdrParentBrkrEvent records are published when a new or cxl/replace parent order arrives causes a broker to begin working and again when a parent order terminates and the underlying broker stops working. The initial version contains state and market data from just after the initial risk check and first attempt at generating child orders.

METADATA

AttributeValue
Topic3985-parent-orders
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT
MLink EndpointMLink-Order

Table Definition

FieldTypeKeyDefault ValueComment
parentNumberCHAR(19)PRI'0000-0000-0000-0000'
recTypeenum - EventRecTypePRI'New'type of record NewModifyReplaceCloseReject
secKey_atenum - AssetType'None'
secKey_tsenum - TickerSrc'None'
secKey_tkVARCHAR(12)''
secKey_yrSMALLINT UNSIGNED0
secKey_mnTINYINT UNSIGNED0
secKey_dyTINYINT UNSIGNED0
secKey_xxDOUBLE0
secKey_cpenum - CallPut'Call'
secTypeenum - SpdrKeyType'None'
accntVARCHAR(16)''
spdrSourceenum - SpdrSource'None'
groupingCodeCHAR(19)'0000-0000-0000-0000'
orderSideenum - BuySell'None'
clientFirmVARCHAR(16)''SR client firm code
altAccntTINYTEXT''alternate client assigned long account string optional
altUserNameVARCHAR(24)''alternate client assigned user name optional
eventNumberSMALLINT UNSIGNED0
stageTypeenum - SpdrStageType'None'parent is a staged order ToolVisible
stageReviewenum - StageReview'None'
baseParentNumberCHAR(19)'0000-0000-0000-0000'SPDR order number initial number in cancelreplace sequence also source parent for dynamically generated orderseg autohedges
prevParentNumberBIGINT0SPDR order number order being cancelledreplaced zero if none
engineNameTINYTEXT''server stripe
ticker_atenum - AssetType'None'SpiderRock underlier stock key
ticker_tsenum - TickerSrc'None'SpiderRock underlier stock key
ticker_tkVARCHAR(12)''SpiderRock underlier stock key
spdrBrokerStatusenum - SpdrBrokerStatus'None'
strategyAccntVARCHAR(16)''SR strategy account option if exists will be validated
spdrOrderStatusenum - SpdrOrderStatus'PendNew'parent order status
spdrCloseReasonenum - SpdrCloseReason'None'parent order close reason if closed
spdrRejectReasonenum - SpdrRejectReason'None'parent order reject reason if any
spdrCommentTINYTEXT''additional detail closereject reason last child order error
bidPrcDOUBLE0bid nbbo price record publish
askPrcDOUBLE0ask nbbo price record publish
bidIVolFLOAT0bid nbbo ivol record publish
askIVolFLOAT0ask nbbo ivol record publish
bidSizeINT0bid size nbbo cum record publish
askSizeINT0ask size nbbo cum record publish
uBidDOUBLE0underlier bid price record publish options only
uAskDOUBLE0underlier ask price record publish options only
surfacePrcFLOAT0SR surface price record publish
surfaceVolFLOAT0SR surface volatility record publish
surfaceYrsFLOAT0SR surface calc value record publish
surfaceSDivFLOAT0SR surface calc value record publish
surfaceRateFLOAT0SR surface calc value record publish
surfaceUPrcFLOAT0SR surface calc value record publish
surfaceDeFLOAT0SR surface calc value record publish
surfaceGaFLOAT0SR surface calc value record publish
surfaceThFLOAT0SR surface calc value record publish
surfaceVeFLOAT0SR surface calc value record publish
surfaceRoFLOAT0SR surface calc value record publish
surfacePhFLOAT0SR surface calc value record publish
arriveNbboSizeINT0size of the single largest exchange parent order arrival
arriveNbboExchenum - OptExch'None'exchange representing largest size order arrival
arriveCumSizeINT0cum size of all exchanges at NBBO price parent order arrival
arriveNumExchTINYINT UNSIGNED0num exchanges making up cum size parent order arrival
arriveLimitSizeINT0immediately marketable size up to limit price on parent order arrival
arriveLimitPrcDOUBLE0expected average fill price if all immediately marketable size executed as advertized
avgFillPrcDOUBLE0average fill price of all fills attributed parent order
cumFillQuanINT0cumulative fill quantity attributed to parent order
numChildOrdersSMALLINT UNSIGNED0total number of child orders generated by this parent broker parent number
numDayChildOrdersSMALLINT UNSIGNED0total number of child orders generated by this parent broker all day base parent number
openOrderSizeINT0open order size
actionOrderSizeINT0order size available for immediate action note not all algo combinations allow immediate action
riskLimitSizeINT0risk limit size distance to most restrictive risk limit associated with this parent order
riskLimitDescenum - SpdrRisk'None'reason for size reduction identifies the most restrictive risk limit
riskLimitLevelenum - SpdrRiskLevel'None'risk limit level responsible for reduction
riskLimitDetailTINYTEXT''risk limit level responsible for reduction
limitRefUPrcDOUBLE0effective reference underlier price record publish usually either mid or bidask depending on limit type
limitPriceDOUBLE0parent simple prc limit if any
limitVolFLOAT0parent simple vol limit if any
makeLimitPriceDOUBLE0effective order limit price record publish
makeLimitErrenum - LimitError'None'limit price error code if any
makeLimitErrDescTINYTEXT''additional limit price error descriptive text
takeLimitPriceDOUBLE0effective order limit price record publish
takeLimitErrenum - LimitError'None'limit price error code if any
takeLimitErrDescTINYTEXT''additional limit price error descriptive text
brokerStateenum - BrokerState'None'broker monitor state
makeStateenum - AlgoState'None'enum current state of nonmarketable order handler maker
takeStateenum - AlgoState'None'enum current state of marketable order handler taker
mktCrossStateenum - MktCrossState'None'enum current state of mkt cross handler if any
lastChildEventenum - ChildEvent'None'most recent child handling event
spdrMktStateenum - SpdrMarketState'None'market state code
numOrdersINT0number active child orders record send
leavesQtyINT0number of active child order contracts sum of all active child orders record send
childOrderLeavesINT0number of open child orders record send
arrivalSDivFLOAT0effective sdiv rate parent order arrival fixed for life of parent order
arrivalRateFLOAT0effective interest rate parent order arrival fixed for life of parent order
arrivalDDivFLOAT0effective cumulative discrete dividend parent order arrival fixed for life of parent order
hedgeSecKey_atenum - AssetType'None'autohedge sec key
hedgeSecKey_tsenum - TickerSrc'None'autohedge sec key
hedgeSecKey_tkVARCHAR(12)''autohedge sec key
hedgeSecKey_yrSMALLINT UNSIGNED0autohedge sec key
hedgeSecKey_mnTINYINT UNSIGNED0autohedge sec key
hedgeSecKey_dyTINYINT UNSIGNED0autohedge sec key
hedgeSecTypeenum - SpdrKeyType'None'autohedge sec type
theoOpxFLOAT0option theo prc from theoVol
theoVolFLOAT0option theo vol from theoModelif any
childOrderMaskBIGINT0bitmask of all exchange for which a child order was generated
priceFormatenum - PriceFormat'None'price display format code
uPriceFormatenum - PriceFormat'None'underlier price display format code
userNameVARCHAR(24)''user associated with the most recent parent order
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of last modification

PRIMARY KEY DEFINITION (Unique)

FieldSequence
parentNumber1
recType2

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRTrade`.`MsgSRParentBrkrEvent`
WHERE
/* Replace with a CHAR(19) */
`parentNumber` = 'Example_parentNumber'
AND
/* Replace with a ENUM('New','Modify','Replace','Close','Reject') */
`recType` = 'New';

Doc Columns Query

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