Skip to main content
Version: 8.4.10.2

EquityCorpActionRecordV5

V8 Message Definiton

corp action record (managed by SR)

METADATA

AttributeValue
Topic4740-risk-v5
MLink TokenClientRisk
ProductSRRisk
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'ticker at EOD on trading date
ticker_tsenum - TickerSrcPRI'None'ticker at EOD on trading date
ticker_tkVARCHAR(12)PRI''ticker at EOD on trading date
exDateDATEPRI'1900-01-01'exdate of the action
corpActionTextTINYTEXT''descriptive detail optional
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
CashListJSON'JSON_OBJECT()'
ComponentListJSON'JSON_OBJECT()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
exDate4

JSON Block (CashList)

FieldTypeComment
amountdouble
currencyenum - currency
cashTypeenum - cashType
descriptionstring

JSON Block (ComponentList)

FieldTypeComment
tickerSODTickerKeyticker SOD
componentRatiodoublepriceposition adjustment ratio ratio x closemark adjclosemark default 1
componentFractiondoubleposition x componentFraction x spinoffMark cashInLieu default 1
componentMarkdoubleSOD mark for tickerSOD if not supplied SR calculated mark will be used
componentTypeenum - componentType

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRRisk`.`MsgEquityCorpActionRecordV5` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'ticker at EOD on trading date',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'ticker at EOD on trading date',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'ticker at EOD on trading date',
`exDate` DATE NOT NULL DEFAULT '1900-01-01' COMMENT 'ex-date of the action',
`corpActionText` TINYTEXT NOT NULL DEFAULT '' COMMENT 'descriptive detail (optional)',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`CashList` JSON NOT NULL DEFAULT JSON_OBJECT() CHECK(JSON_VALID(CashList)),
`ComponentList` JSON NOT NULL DEFAULT JSON_OBJECT() CHECK(JSON_VALID(ComponentList)),
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`,`exDate`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='corp action record (managed by SR)';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`exDate`,
`corpActionText`,
`timestamp`,
`CashList`,
`ComponentList`
FROM `SRRisk`.`MsgEquityCorpActionRecordV5`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`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','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a DATE */
`exDate` = '2022-01-01';

Doc Columns Query

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