EquityCorpActionRecordV5
corp action record (managed by SR)
METADATA
Attribute | Value |
---|---|
Topic | 4740-risk-v5 |
MLink Token | ClientRisk |
Product | SRRisk |
accessType | SELECT |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
ticker_at | enum - AssetType | PRI | 'None' | ticker at EOD on trading date |
ticker_ts | enum - TickerSrc | PRI | 'None' | ticker at EOD on trading date |
ticker_tk | VARCHAR(12) | PRI | '' | ticker at EOD on trading date |
exDate | DATE | PRI | '1900-01-01' | exdate of the action |
corpActionText | TINYTEXT | '' | descriptive detail optional | |
timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' | ||
CashList | JSON | 'JSON_OBJECT()' | ||
ComponentList | JSON | 'JSON_OBJECT()' |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
ticker_tk | 1 |
ticker_at | 2 |
ticker_ts | 3 |
exDate | 4 |
JSON Block (CashList)
Field | Type | Comment |
---|---|---|
amount | double | |
currency | enum - currency | |
cashType | enum - cashType | |
description | string |
JSON Block (ComponentList)
Field | Type | Comment |
---|---|---|
tickerSOD | TickerKey | ticker SOD |
componentRatio | double | priceposition adjustment ratio ratio x closemark adjclosemark default 1 |
componentFraction | double | position x componentFraction x spinoffMark cashInLieu default 1 |
componentMark | double | SOD mark for tickerSOD if not supplied SR calculated mark will be used |
componentType | enum - 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;