Skip to main content
Version: 8.6.10.4

MarRiskCounter

V8 Message Definiton

Values in this table represent current (live) SpiderRock MAR risk counters for a risk group/risk firm combination. A risk group is typically a group of client accounts that have a common beneficial owner. A risk firm is a firm with control of the corresponding risk settings for the risk group.

METADATA​

AttributeValue
Topic4625-risk-counter
MLink TokenClientControl
ProductSRControl
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition​

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'ANYANY the entire control group a product key ES is the product row in its own contracts and currency a family head ES is the family row in Primary contracts and the realm currency
ticker_tsenum - TickerSrcPRI'None'ANYANY the entire control group a product key ES is the product row in its own contracts and currency a family head ES is the family row in Primary contracts and the realm currency
ticker_tkVARCHAR(12)PRI''ANYANY the entire control group a product key ES is the product row in its own contracts and currency a family head ES is the family row in Primary contracts and the realm currency
riskGroupVARCHAR(16)PRI''
riskFirmVARCHAR(16)PRI''client firm that can viewedit this record
isTestAccntenum - YesNoPRI'None'
riskLevelenum - MarRiskLevelPRI'None'AccountConfig risk level this counter aggregates for engines mint counters at the exact level None only from prelevel engines
sysRealmenum - SysRealm'None'
sysEnvironmentenum - SysEnvironment'None'original source sys environment Stable Current etc
riskEngineVARCHAR(32)''EE engine name
liveMarginAccFLOAT0live net per symbol total portfolio startofday positions day trades margin can include external sources
liveMarginDayFLOAT0live net per symbol day portfolio day trades only margin can include external sources
liveOpenExposureFLOAT0live abs open child order Delta no netting open child orders only
dayFutCnBotFLOAT0day future contracts bot in the family Primarys contracts an MES fill counts pointValueprimary pointValue 01 ES
dayFutCnSldFLOAT0day future contracts sld Primary units
accFutCnNetFLOAT0accnt future contracts net Primary units can be startofday positions day trades
accOptCnAbsFLOAT0accnt option contracts Primary units for futures optionssumabspercontract net startofday positions day trades
accFutCnAbsFLOAT0accnt future contracts Primary unitssumabspercontract net startofday positions day trades
dayMarginUDnVDnFLOAT0day margin UPrcDnVolDn
dayMarginUDnVUpFLOAT0day margin UPrcDnVolUp
dayMarginUUpVDnFLOAT0day margin UPrcUpVolDn
dayMarginUUpVUpFLOAT0day margin UPrcUpVolUp
accMarginUDnVDnFLOAT0acc margin UPrcDnVolDn
accMarginUDnVUpFLOAT0acc margin UPrcDnVolUp
accMarginUUpVDnFLOAT0acc margin UPrcUpVolDn
accMarginUUpVUpFLOAT0acc margin UPrcUpVolUp
counterINT0
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of latest change
currencyenum - Currency'None'the currency of the money fields the products on a product row the realms on a family or group row

PRIMARY KEY DEFINITION (Unique)​

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
riskGroup4
riskFirm5
isTestAccnt6
riskLevel7

SELECT TABLE EXAMPLE QUERY​

SELECT *
FROM `SRControl`.`MsgMarRiskCounter`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE','CRDT','GCR','SWAP','ENT','MBS','SET','LOAN') */
`ticker_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','CRCY','CMDY','DTI','SOVN','SR_US','SR_EU','SR_AP','SR_UK','USD','EUR','GBP','CHF','JPY','CAD','AUD','HKD','KRW','INR','SGD','TWD','CNY','CNH','BRL','MXN','ZAR','SEK','NOK','DKK','PLN','ILS','TRY','NZD','THB','MYR','IDR','PHP','CZK','HUF','SAR','AED','CLP','COP') */
`ticker_ts` = 'NONE'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a VARCHAR(16) */
`riskGroup` = 'Example_riskGroup'
AND
/* Replace with a VARCHAR(16) */
`riskFirm` = 'Example_riskFirm'
AND
/* Replace with a ENUM('None','Yes','No') */
`isTestAccnt` = 'NONE'
AND
/* Replace with a ENUM('None','ExsOnSpons','ExsOnCore','SponsOnCore','CoreOnCore','CoreOnSub','CoreOnAccnt','SubOnAccnt','CoreOnCustom','SubOnCustom','CFirmOnCore') */
`riskLevel` = 'NONE';

Doc Columns Query​

SELECT * FROM SRControl.doccolumns WHERE TABLE_NAME='MarRiskCounter' ORDER BY ordinal_position ASC;