Skip to main content
Version: 8.4.10.4

StockPrintMarkup

V8 Message Definiton

StockPrintMarkup records are created/published for all stock prints

METADATA

AttributeValue
Topic2990-market-data-stock
MLink TokenEqtAnalytics
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'
ticker_tsenum - TickerSrcPRI'None'
ticker_tkVARCHAR(12)PRI''
prtNumberBIGINT0
prtExchenum - StkExch'None'print exch
prtSizeINT0print size
prtPriceFLOAT0print price level
prtClusterNumINT0incremental print cluster counter one counter per ticker used to group prints into clusters
prtClusterSizeINT0cumulative size of prints in this sequence prints same or more aggressive price with less than 25 ms elapsing since first print can span exchanges
prtVolumeINT0cumulative print size today
mrkPriceFLOAT0last regular market print price
prtTypeTINYINT UNSIGNED0OPRA message type from OPRA spec
prtCond1TINYINT UNSIGNED0print condition from SIP feed
prtCond2TINYINT UNSIGNED0
prtCond3TINYINT UNSIGNED0
prtCond4TINYINT UNSIGNED0
prtSideenum - PrtSide'None'Print side None Mid Bid Ask
bidPriceFLOAT0nbbo bid print arrival time
askPriceFLOAT0nbbo ask print arrival time
bidSizeINT0
askSizeINT0
bidPrice2FLOAT0nbbo 2nd best bid print arrival time
askPrice2FLOAT0nbbo 2nd best ask print arrival time
bidSize2INT0nbbo 2nd best bid size
askSize2INT0nbbo 2nd best ask size
srcTimestampBIGINT0exchange high precision timestamp if available
netTimestampBIGINT0inbound print packet PTP timestamp from SR gateway switch
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgStockPrintMarkup` (
`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 '',
`prtNumber` BIGINT NOT NULL DEFAULT 0,
`prtExch` ENUM('None','AMEX','NQBX','NSX','FNRA','ISE','EDGA','EDGX','CHX','NYSE','ARCA','NSDQ','CBSX','PSX','BTSY','BATS','CBIDX','IEX','OTC','MPRL','LTSE','MEMX','MXIDX','DJIDX','BXE','CXE','DXE','XETRA','NXAM','NXBR','NXLS','NXML','NXOS','NXP') NOT NULL DEFAULT 'None' COMMENT 'print exch',
`prtSize` INT NOT NULL DEFAULT 0 COMMENT 'print size',
`prtPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'print price level',
`prtClusterNum` INT NOT NULL DEFAULT 0 COMMENT 'incremental print cluster counter (one counter per ticker; used to group prints into clusters)',
`prtClusterSize` INT NOT NULL DEFAULT 0 COMMENT 'cumulative size of prints in this sequence (prints @ same or more aggressive price with less than 25 ms elapsing since first print; can span exchanges)',
`prtVolume` INT NOT NULL DEFAULT 0 COMMENT 'cumulative print size today',
`mrkPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'last regular market print price',
`prtType` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'OPRA message type (from OPRA spec)',
`prtCond1` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'print condition (from SIP feed)',
`prtCond2` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`prtCond3` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`prtCond4` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`prtSide` ENUM('None','Mid','Bid','Ask') NOT NULL DEFAULT 'None' COMMENT 'Print side: None; Mid; Bid; Ask',
`bidPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo bid @ print arrival time',
`askPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo ask @ print arrival time',
`bidSize` INT NOT NULL DEFAULT 0,
`askSize` INT NOT NULL DEFAULT 0,
`bidPrice2` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo 2nd best bid @ print arrival time',
`askPrice2` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo 2nd best ask @ print arrival time',
`bidSize2` INT NOT NULL DEFAULT 0 COMMENT 'nbbo 2nd best bid size',
`askSize2` INT NOT NULL DEFAULT 0 COMMENT 'nbbo 2nd best ask size',
`srcTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'exchange high precision timestamp (if available)',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'inbound print packet PTP timestamp from SR gateway switch',
`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='StockPrintMarkup records are created/published for all stock prints';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`prtNumber`,
`prtExch`,
`prtSize`,
`prtPrice`,
`prtClusterNum`,
`prtClusterSize`,
`prtVolume`,
`mrkPrice`,
`prtType`,
`prtCond1`,
`prtCond2`,
`prtCond3`,
`prtCond4`,
`prtSide`,
`bidPrice`,
`askPrice`,
`bidSize`,
`askSize`,
`bidPrice2`,
`askPrice2`,
`bidSize2`,
`askSize2`,
`srcTimestamp`,
`netTimestamp`,
`timestamp`
FROM `SRAnalytics`.`MsgStockPrintMarkup`
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='StockPrintMarkup' ORDER BY ordinal_position ASC;