Skip to main content
Version: 8.4.12.1

FuturePrintSet

V8 Message Definiton

FuturePrintSet records are created for all future prints (outrights and spreads) and published to the SpiderRock elastic cluster when markup detail is complete (F+10M)

METADATA

AttributeValue
Topic2580-market-data-futures
MLink TokenFutAnalytics
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
fkey_atenum - AssetTypePRI'None'
fkey_tsenum - TickerSrcPRI'None'
fkey_tkVARCHAR(12)PRI''
fkey_yrSMALLINT UNSIGNEDPRI0
fkey_mnTINYINT UNSIGNEDPRI0
fkey_dyTINYINT UNSIGNEDPRI0
prtNumberBIGINTPRI0Unique print set identifier will increment but not guaranteed to be sequential
updateTypeenum - PrtUpdateType'None'
ticker_atenum - AssetType'None'underlying stock key
ticker_tsenum - TickerSrc'None'underlying stock key
ticker_tkVARCHAR(12)''underlying stock key
prtExchenum - FutExch'None'print exchange
prtSizeINT0print size contracts
prtPriceDOUBLE0print price
prtTypeTINYINT UNSIGNED0print type exchange specific
prtOrdersSMALLINT UNSIGNED0number of orders participating in this print
prtClusterNumINT0incremental print cluster counter one counter per fkey 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 day electronic print volume in contracts
prtSideenum - PrtSide'None'Print side None Mid Bid Ask
prtTimestampBIGINT0exchange high precision timestamp if available
netTimestampBIGINT0inbound packet PTP timestamp from SR gateway switchusually syncronized with facility grandfather clock
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
bidPriceDOUBLE0exch best bid print arrival time
askPriceDOUBLE0exch best ask print arrival time
bidSizeINT0bid size print arrival time
askSizeINT0ask size print arrival time
bidPrice2DOUBLE0exch 2nd best bid print arrival time
askPrice2DOUBLE0exch 2nd best ask print arrival time
bidSize2INT02nd best bid print arrival time
askSize2INT02nd best ask print arrival time
prtProbabilityFLOAT0M1 probability that buying prtQuan contracts prtPrice will have positive m1 pnl prtPriceM1 prtPrice recorded at time of print
bidPriceM1DOUBLE0bid price 1 minute
askPriceM1DOUBLE0ask price 1 minute
prtPriceM1DOUBLE0market price 1 minute midquote if not intervening printsmost recent print otherwise
pnlM1FLOAT0pnl after 1 minute
pnlM1Errenum - YesNo'None'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
fkey_tk1
fkey_yr2
fkey_mn3
fkey_dy4
fkey_at5
fkey_ts6
prtNumber7

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgFuturePrintSet` (
`fkey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`fkey_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',
`fkey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`fkey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`fkey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`fkey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`prtNumber` BIGINT NOT NULL DEFAULT 0 COMMENT 'Unique print set identifier; will increment but not guaranteed to be sequential.',
`updateType` ENUM('None','Print','Markup') NOT NULL DEFAULT 'None',
`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 'underlying stock key',
`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 'underlying stock key',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'underlying stock key',
`prtExch` ENUM('None','CFE','CME','CBOT','COMEX','NYMEX','ICE','EUREX','CEDX','NXAM','NXBR','NXLS','NXML','NXOS','NXP','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'print exchange',
`prtSize` INT NOT NULL DEFAULT 0 COMMENT 'print size [contracts]',
`prtPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'print price',
`prtType` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'print type [exchange specific]',
`prtOrders` SMALLINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'number of orders participating in this print',
`prtClusterNum` INT NOT NULL DEFAULT 0 COMMENT 'incremental print cluster counter (one counter per fkey; 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 day (electronic) print volume in contracts',
`prtSide` ENUM('None','Mid','Bid','Ask') NOT NULL DEFAULT 'None' COMMENT 'Print side: None; Mid; Bid; Ask',
`prtTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'exchange high precision timestamp (if available)',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'inbound packet PTP timestamp from SR gateway switch;usually syncronized with facility grandfather clock',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`bidPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'exch best bid @ print arrival time',
`askPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'exch best ask @ print arrival time',
`bidSize` INT NOT NULL DEFAULT 0 COMMENT 'bid size @ print arrival time',
`askSize` INT NOT NULL DEFAULT 0 COMMENT 'ask size @ print arrival time',
`bidPrice2` DOUBLE NOT NULL DEFAULT 0 COMMENT 'exch 2nd best bid @ print arrival time',
`askPrice2` DOUBLE NOT NULL DEFAULT 0 COMMENT 'exch 2nd best ask @ print arrival time',
`bidSize2` INT NOT NULL DEFAULT 0 COMMENT '2nd best bid @ print arrival time',
`askSize2` INT NOT NULL DEFAULT 0 COMMENT '2nd best ask @ print arrival time',
`prtProbability` FLOAT NOT NULL DEFAULT 0 COMMENT '[M1] probability that buying prtQuan contracts @ prtPrice will have positive m1 pnl (prtPriceM1 >= prtPrice) [recorded at time of print]',
`bidPriceM1` DOUBLE NOT NULL DEFAULT 0 COMMENT 'bid price +1 minute',
`askPriceM1` DOUBLE NOT NULL DEFAULT 0 COMMENT 'ask price +1 minute',
`prtPriceM1` DOUBLE NOT NULL DEFAULT 0 COMMENT 'market price +1 minute [mid-quote if not intervening prints;most recent print otherwise]',
`pnlM1` FLOAT NOT NULL DEFAULT 0 COMMENT 'pnl after 1 minute',
`pnlM1Err` ENUM('None','Yes','No') NOT NULL DEFAULT 'None',
PRIMARY KEY USING HASH (`fkey_tk`,`fkey_yr`,`fkey_mn`,`fkey_dy`,`fkey_at`,`fkey_ts`,`prtNumber`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='FuturePrintSet records are created for all future prints (outrights and spreads) and published to the SpiderRock elastic cluster when markup detail is complete (F+10M)';

SELECT TABLE EXAMPLE QUERY

SELECT
`fkey_at`,
`fkey_ts`,
`fkey_tk`,
`fkey_yr`,
`fkey_mn`,
`fkey_dy`,
`prtNumber`,
`updateType`,
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`prtExch`,
`prtSize`,
`prtPrice`,
`prtType`,
`prtOrders`,
`prtClusterNum`,
`prtClusterSize`,
`prtVolume`,
`prtSide`,
`prtTimestamp`,
`netTimestamp`,
`timestamp`,
`bidPrice`,
`askPrice`,
`bidSize`,
`askSize`,
`bidPrice2`,
`askPrice2`,
`bidSize2`,
`askSize2`,
`prtProbability`,
`bidPriceM1`,
`askPriceM1`,
`prtPriceM1`,
`pnlM1`,
`pnlM1Err`
FROM `SRAnalytics`.`MsgFuturePrintSet`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`fkey_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') */
`fkey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`fkey_tk` = 'Example_fkey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`fkey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_dy` = 1
AND
/* Replace with a BIGINT */
`prtNumber` = 1234567890;

Doc Columns Query

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