CREATE TABLE `SRAnalytics`.`MsgStockBetaExt` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','ESX','ANY','CXE','DXE','NXAM','NXBR','NXDUB','NXLS','NXLDN','NXML','NXMLT','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`status` ENUM('None','InsuffPrcPts','Ok') NOT NULL DEFAULT 'None',
`betaInd` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta to IND',
`betaSub` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta to SUB',
`betaGrp` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta to GRP',
`betaNbr` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta to NBR',
`betaSPY` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta [2 year; weekly (fri - fri)]',
`betaSPY_R2` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta R2 [2 year; weekly (fri - fri)]',
`betaQQQ` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta [2 year; weekly (fri - fri)]',
`betaQQQ_R2` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta R2 [2 year; weekly (fri - fri)]',
`betaIWM` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta [2 year; weekly (fri - fri)]',
`betaIWM_R2` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta R2 [2 year; weekly (fri - fri)]',
`betaEEM` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta [2 year; weekly (fri - fri)]',
`betaEEM_R2` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta R2 [2 year; weekly (fri - fri)]',
`betaEFA` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta [2 year; weekly (fri - fri)]',
`betaEFA_R2` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta R2 [2 year; weekly (fri - fri)]',
`betaTicker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'ETF ticker with the largest beta R2 [from the set of ETF''s with significant option volume]',
`betaTicker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','ESX','ANY','CXE','DXE','NXAM','NXBR','NXDUB','NXLS','NXLDN','NXML','NXMLT','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'ETF ticker with the largest beta R2 [from the set of ETF''s with significant option volume]',
`betaTicker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'ETF ticker with the largest beta R2 [from the set of ETF''s with significant option volume]',
`betaValue` FLOAT NOT NULL DEFAULT 0 COMMENT 'beta value for the above ticker',
`betaR2` FLOAT NOT NULL DEFAULT 0 COMMENT 'R2 value for the above ticker',
`betaTickerA_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'ETF ticker A with the largest joint (A+B) beta R2 [Y ~ a + betaA * A + betaB * B]',
`betaTickerA_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','ESX','ANY','CXE','DXE','NXAM','NXBR','NXDUB','NXLS','NXLDN','NXML','NXMLT','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'ETF ticker A with the largest joint (A+B) beta R2 [Y ~ a + betaA * A + betaB * B]',
`betaTickerA_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'ETF ticker A with the largest joint (A+B) beta R2 [Y ~ a + betaA * A + betaB * B]',
`betaTickerB_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'ETF ticker B with the largest joint (A+B) beta R2',
`betaTickerB_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','ESX','ANY','CXE','DXE','NXAM','NXBR','NXDUB','NXLS','NXLDN','NXML','NXMLT','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'ETF ticker B with the largest joint (A+B) beta R2',
`betaTickerB_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'ETF ticker B with the largest joint (A+B) beta R2',
`betaValueA` FLOAT NOT NULL DEFAULT 0 COMMENT 'joint beta value for TickerA',
`betaValueB` FLOAT NOT NULL DEFAULT 0 COMMENT 'joint beta value for TickerB',
`betaR2B` FLOAT NOT NULL DEFAULT 0 COMMENT 'joint R2 value for the TickerA + TickerB',
`betaSPY1y` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta [1 year; weekly (fri - fri)]',
`betaSPY1y_R2` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta R2 [1 year; weekly (fri - fri)]',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='Beta values are computed nightly for a few different indexes and industries.';