Skip to main content
Version: 8.4.12.1

StockBeta

V8 Message Definiton

Beta values are computed weekly for a few different ETFs.

METADATA

AttributeValue
Topic3225-market-statistics
MLink TokenOptAnalytics
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'
ticker_tsenum - TickerSrcPRI'None'
ticker_tkVARCHAR(12)PRI''
statusenum - BetaStatus'None'
betaFLOAT0depricate
betaIndFLOAT0SR beta to IND
betaSubFLOAT0SR beta to SUB
betaGrpFLOAT0SR beta to GRP
betaQQQFLOAT0SR beta to QQQ 2 year weekly fri fri
betaSPYFLOAT0SR beta to SPY 2 year weekly fri fri
betaIWMFLOAT0SR beta to IWM 2 year weekly fri fri
timestampDATETIME(6)'1900-01-01 00:00:00.000000'record update timestamp

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgStockBeta` (
`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','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','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',
`beta` FLOAT NOT NULL DEFAULT 0 COMMENT '(depricate)',
`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',
`betaQQQ` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta to QQQ [2 year; weekly (fri - fri)]',
`betaSPY` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta to SPY [2 year; weekly (fri - fri)]',
`betaIWM` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR beta to IWM [2 year; weekly (fri - fri)]',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'record update timestamp',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='Beta values are computed weekly for a few different ETFs.';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`status`,
`beta`,
`betaInd`,
`betaSub`,
`betaGrp`,
`betaQQQ`,
`betaSPY`,
`betaIWM`,
`timestamp`
FROM `SRAnalytics`.`MsgStockBeta`
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';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='StockBeta' ORDER BY ordinal_position ASC;