Skip to main content
Version: Upcoming

RiskCubeDetailV5

V8 Message Definiton

RiskCubeDetail records are published by CoreRiskServers and are designed to be aggregated and analyzed over time. RiskCubeDetail records are published to the SpiderRock Archive Host data pipeline at the end of each trading period.

METADATA

AttributeValue
Topic4740-risk-v5
MLink TokenClientRisk
ProductSRRisk
accessTypeSELECT
MLink EndpointMLink-Order

Table Definition

FieldTypeKeyDefault ValueComment
accntVARCHAR(16)PRI''SR Accnt
secKey_atenum - AssetTypePRI'None'
secKey_tsenum - TickerSrcPRI'None'
secKey_tkVARCHAR(12)PRI''
secKey_yrSMALLINT UNSIGNEDPRI0
secKey_mnTINYINT UNSIGNEDPRI0
secKey_dyTINYINT UNSIGNEDPRI0
secKey_xxDOUBLEPRI0
secKey_cpenum - CallPutPRI'Call'
secTypeenum - SecTypePRI'None'Call Put Stock Future Cash
tradeDateDATEPRI'1900-01-01'
riskSessionenum - RiskSessionPRI'Regular'
clientFirmVARCHAR(16)PRI''SR assigned client firm
versionenum - RiskCubeVersion'None'
clearingFirmVARCHAR(8)''Clearing Firm
clearingAccntVARCHAR(16)''Clearing Firm Accnt
riskServerCodeVARCHAR(6)''SR RiskServer server that published this record
viewGroup1VARCHAR(12)''Client defined view group 1 can be fiteredaggregated
viewGroup2VARCHAR(12)''Client defined view group 2 can be fiteredaggregated
viewGroup3VARCHAR(12)''Client defined view group 3 can be fiteredaggregated
ticker_atenum - AssetType'None'Risk Symbol underlier for equities product group for futureoption complexes
ticker_tsenum - TickerSrc'None'Risk Symbol underlier for equities product group for futureoption complexes
ticker_tkVARCHAR(12)''Risk Symbol underlier for equities product group for futureoption complexes
riskClassVARCHAR(8)''Symbol risk class from SymbolControl record
symbolTypeenum - SymbolType'None'Symbol type
optRiskClassenum - OptRiskClass'None'
betaFLOAT0beta usually beta to SPX see AccountConfigbetaSource
betaSourceenum - BetaSource'None'
sectorVARCHAR(16)''Client defined sector from SymbolControl record
indNumINT0Ind Num 00
subNumINT0Sub Num 0000
grpNumINT0Grp Num 000000
nbrNumINT0Nbr Num 00000000
eDaysSMALLINT0days to next earnings 5 30
dDaysSMALLINT0days to next dividend 5 30
xDeltaFLOAT0calls 05 delta puts 05 delta
expCodeenum - ExpCode'None'Timetoexpiry code W1 W2 M1 M2 M34 M56 M7C Y1 Y2
skewCodeenum - SkewCode'None'Skew bucket code DdDeep DownSide Dn DownSide At ATM Up UpSide DU FarUpSide
eDaysCodeenum - EDaysCode'None'Days to next earnings event if any
iVolRangeenum - iVolRange'None'Implied ATM Vol Range
liqRangeenum - LiqRange'None'Underlier liquidity range publisherclassified 5 levels
atmVolQuantileFLOAT0AtmVol level quantile
atmVolMoveQuantileFLOAT0logatmVolatmVolEMA90d quantile earningscolored move
atmCenMoveQuantileFLOAT0logatmCenatmCenEMA90d quantile earningscensored move
openVegaQuantileFLOAT0market openvega activity quantile
skewDDFLOAT0dd deep downside skew metric xde 045
skewDNFLOAT0dn downside skew metric 045 xde 015
skewATFLOAT0at atm skew risk metric 015 xde 015
skewUPFLOAT0up upside skew risk metric 015 xde 045
skewDUFLOAT0du far upside skew risk metric 045 xde
shOpnPosINT0shares startofday
fcOpnPosINT0futures contracts startofday
cnOpnPosINT0options contracts startofday
cnAtmEquivFLOAT0atm equivalent contracts oprcnOpnPos oprcnBot oprcnSld oprve opratmVega
shBotINT0shares bot
shSldINT0shares sld
shSldShrtINT0shares sld short
fcBotINT0future contracts bot
fcSldINT0future contracts sld
cnBotINT0option contracts bot
cnSldINT0option contracts sld
cnOpenedINT0option contracts opened
cnClosedINT0option contracts closed
opnDirVARCHAR(2)''open startofday direction LN or SH
posDirVARCHAR(2)''current startofday trades direction LN or SH
unitOpnPosINT0effective opening position shares or cn pointValue startofday
unitCurPosINT0effective current position shares or cn pointValue startofday trades
unitQtyBotINT0effective shares bot shares or cn underlierPerCn
unitQtySldINT0effective shares sld shares or cn underlierPerCn
dayPnlFLOAT0day pnl
dayDnPnlFLOAT0day pnl delta neutral
dayTrdDeltaFLOAT0day trade delta
dayTrdDDeltaFLOAT0day trade delta
dayTrdGammaFLOAT0day trade gamma
dayTrdDGammaFLOAT0day trade gamma
dayTrdVegaFLOAT0day trade vega
dayTrdWVegaFLOAT0day trade wVega vega vol
dayTrdTVegaFLOAT0day trade tVega vega sqrtmax01 years 4
dayTrdWtVegaFLOAT0day trade wtVega vega vol sqrtmax01 years 4
dayTrdThetaFLOAT0day trade theta
dayEdgeOpenedFLOAT0day theo option edge opened requires a theo model
dayEdgeClosedFLOAT0day theo option edge closed requires a theo model
dayMnyBotDOUBLE0day money bot
dayMnySldDOUBLE0day money sld
opnPnlVolMarkFLOAT0cursurface prsurface cnOpnClr upc
opnPnlMidMarkFLOAT0curmid prmid cnOpnClr upc
opnPnlClrMarkFLOAT0curmid prclr cnOpnClr upc
opnClrMarkFLOAT0startofday clearing mark should be corp action adjusted
opnDivPnLFLOAT0dividends paidreceived since prior period
opnMarkBrkMnyFLOAT0cursurface curmid unitCurPos
opnTheoEdgeFLOAT0opening edge edge at the end of prior period requires a theo model
posTheoEdgeFLOAT0current edge opening positions trades requires a theo model
tVolMoveFLOAT0LNtVol tVolPr
tEdgeMoveFLOAT0LNtVol iVol LNtVolPr iVolPr
tEdgeFLOAT0LNtVol iVol
opnPnlDeFLOAT0open position mult dePr dUPrc BS delta PnL NOT hedgeDe
opnPnlGaFLOAT0open position mult 05 avggammagammaPr dUPrc dUPrc
opnPnlThFLOAT0open position mult decomposedThetadYearsV dYearsC
opnPnlVeFLOAT0open position mult optVega dVol includes spotinduced vol change
opnPnlVoFLOAT0open position mult 05 avgvolgavolgaPr dVol dVol
opnPnlVaFLOAT0open position mult optVanna dVol dUPrc
opnPnlSlFLOAT0open position mult vePr veSlopePr dUPrc hedge effect overlaps with opnPnlVe
opnPnlRateFLOAT0open position mult optRho dRate
opnPnlSDivFLOAT0open position mult optPhi dSDiv
opnPnlDDivFLOAT0open position mult dePr dDDiv uses BS delta not phi
opnPnlErrFLOAT0unattributed pnl opnPnlSv opnPnlGa opnPnlTh opnPnlVe opnPnlVo opnPnlVa opnPnlRate opnPnlSDiv opnPnlDDiv
opnEdgeChangeFLOAT0open position mult tEdge tEdgePr requires a theo model
posDeltaFLOAT0live position mult optDelta
posDDeltaFLOAT0live position mult optDelta UPrc
posDBetaFLOAT0live position mult optDelta beta UPrc
posGammaFLOAT0live position mult optGamma
posDGammaFLOAT0live position mult optGamma uPrc uPrc 100
posVegaFLOAT0live position mult optVega
posWVegaFLOAT0live position mult optVega iVol
posTVegaFLOAT0live position mult optVega sqrtmax01 years 4
posWtVegaFLOAT0live position mult optVega iVol sqrtmax01 years 4
posVolgaFLOAT0live position mult optVolg
posVannaFLOAT0live position mult optVanna
posThetaFLOAT0live position mult optTheta
posRhoFLOAT0live position mult optRho
posPhiFLOAT0live position mult optPhi
posHDeltaFLOAT0hedge delta either ivol or tvol basedfollows binary rules
posHDDeltaFLOAT0hedge delta dollarized
posHGammaFLOAT0hedge gamma either ivol or tvol basedfollows binary rules
posHDGammaFLOAT0hedge gamma dollarized
posNotionalFLOAT0live position mult uPrc
posMktValueFLOAT0live position mult SR surface mark
posPremOParFLOAT0live position mult premium over parity
atmVolFLOAT0atm volatility
symVolFLOAT0underlier symbol volatility term21dcensored
srSlopeFLOAT0strike veSlope sr surfaceoptions only
prcSVolFLOAT0SR Surface Vol
prcTOpxFLOAT0SR Surface Price
prcYOpxFLOAT0SR Yesterday Surface Price
prcUPrcFLOAT0underlier price
prcYearsFLOAT0yearstoexpiry
prcRateFLOAT0discount ratetoexpiry
prcSdivFLOAT0continuous stock div ratetoexpiry
prcDdivFLOAT0cumulative discrete dividend paid through expiry
uPrcRatioFLOAT0stock price multiplier
uPrcMoveFLOAT0Underlier price change
iVolMoveFLOAT0Implied vol change fixed strike ivol change from prior period
iVolDiffFLOAT0todays ivol previous ivol
exDivAmtFLOAT0estimated exDiv amount if any
borrowRateFLOAT0estimated stock borrow rate if any
curMidMarkDOUBLE0current mid market price
modelTypeTINYINT UNSIGNED0SRPricingLibCalcModelType
underliersPerCnDOUBLE0underliers per contract
underlierTypeenum - UnderlierType'None'underlier type used for option pricing
pointValueFLOAT0value of one point
pointCurrencyenum - Currency'None'
tickValueFLOAT0value of one tick
multihedgeenum - Multihedge'None'
multihedgeSource_atenum - AssetType'None'MH Ticker Key starts with if exists
multihedgeSource_tsenum - TickerSrc'None'MH Ticker Key starts with if exists
multihedgeSource_tkVARCHAR(12)''MH Ticker Key starts with if exists
multihedgePVRatioFLOAT0pv multiplier fraction of underlier value uPerCn x uPrc SUMuPerCn x uPrc associated with this fragment
spanPrcIncUpFLOAT0default exchange span price up increment for this asset
spanPrcIncDnFLOAT0default exchange span price dn increment for this asset
spanVolIncFLOAT0default exchange span volatility increment for this asset
prcSpanTypeenum - SpanType'None'exchange prcSpan type
volSpanTypeenum - SpanType'None'exchange volSpan type
spanPricingModelenum - SpanPricingModel'None'Exchangedefined model for SPAN option pricing calcs
marginTypeenum - MarginType'None'margin slide type NMSEquity 15 NMSIndex 86 NMSMedium 10
KstarFLOAT0strike that solves BSKstar surfVol BSAMERK surfVol
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
accnt1
secKey_tk2
secKey_yr3
secKey_mn4
secKey_dy5
secKey_xx6
secKey_cp7
secKey_at8
secKey_ts9
secType10
tradeDate11
riskSession12
clientFirm13

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRRisk`.`MsgRiskCubeDetailV5`
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
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'
AND
/* Replace with a ENUM('None','Call','Put','Stock','Future','Cash') */
`secType` = 'None'
AND
/* Replace with a DATE */
`tradeDate` = '2022-01-01'
AND
/* Replace with a ENUM('Regular','PostClose') */
`riskSession` = 'Regular'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

Doc Columns Query

SELECT * FROM SRRisk.doccolumns WHERE TABLE_NAME='RiskCubeDetailV5' ORDER BY ordinal_position ASC;