Skip to main content
Version: Upcoming

SRPairLeggerOrder

V8 Message Definiton

METADATA

AttributeValue
Topic5355-strategy-legger
MLink TokenInternal
ProductSRTrade
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
orderNumberCHAR(19)PRI'0000-0000-0000-0000'pair legger order number should be an SR Guid
spdrSourceenum - SpdrSource'None'
accntVARCHAR(16)''SR trading account
clientFirmVARCHAR(16)''SR client firm
pairCtrlStateenum - PairCtrlState'None'
strategyVARCHAR(36)''clientsupplied strategy string visible on SpiderRock GUI tools and other order reports
userNameVARCHAR(24)''name of the user entering the order
orderSizeINT0pair size number of complete spreads
leggerLimitDOUBLE0pair limit
leggerLimitTypeenum - LeggerLimitType'None'pair limit type stock Price future Price optExpiry AtmVol only option StrikeVol
leggerAlgoenum - LeggerAlgo'None'
legRatioTypeenum - LegRatioType'None'vega ve qty pv wVega vol ve qty pv tVega ve Max4 years 01 qty pv wtVega vol ve Max4 years 01 qty pv
numAtmStrikesSMALLINT UNSIGNED0number of OptExpiry atm strikes max 6
legExposurePctFLOAT0percentage of legger order size than can be exposed on a single leg without completing related legs
legCompletionSlippageDOUBLE0maximum leg slippage to complete an open pair order in leggerLimitType units
marketSessionenum - MarketSession'None'
orderDurationINT0optional number of seconds
goodTillDttmDATETIME(6)'1900-01-01 00:00:00.000000'optional default 20990101
maxMktPctMoveDOUBLE0optional if any leg stock price future price or option underlier price moves more than maxMktPctMove from values at order activation then the entire order will be automatically put on hold
autoHedgeenum - AutoHedge'None'only for optExpiryoptExpiry and optionoption pairs
hedgeSessionenum - MarketSession'None'
userData1TINYTEXT''client supplied data field passes through to parent and child executions and reports as well as FIX drops
userData2TINYTEXT''client supplied data field passes through to parent and child executions and reports as well as FIX drops
childDataTINYTEXT''client supplied data field passes through to down stream child orders
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
LegsListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
orderNumber1

JSON Block (LegsList)

FieldTypeComment
secKeyenum - secKeyleg Security can be a stock future optExpiry or option must be the same for all legs cp can be call put or both if secType optExpiry
secTypeenum - LeggerSecTypenote stockstock stockfuture futurefuture optExpiryoptExpiry or optionoption are allowed
ratioenum - ratioleg ratio note can be in shares contracts vega wvega tvega or wtvega terms optExpiry must be in one of the xVega choices
legPriorityenum - LegPriorityLead legs fill first note if there are no lead legs the first leg in the list will be treated as the lead leg
posTypeenum - PositionTypenote must be Auto for optExpiry not required for stock
ssaleFlagenum - ShortSaleFlagonly for stock legs and autohedging
hedgeInstrumentenum - HedgeInst
hedgeSecKeyenum - hedgeSecKeyautohedge instrument can be a TickerKey stock or ExpiryKey future required for Stock and Future

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRTrade`.`MsgSRPairLeggerOrder`
WHERE
/* Replace with a CHAR(19) */
`orderNumber` = 'Example_orderNumber';

Doc Columns Query

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