Skip to main content
Version: 8.4.12.1

FuturePrint

V8 Message Definiton

The most recent (last) print record for each active futures market.

METADATA

AttributeValue
Topic2580-market-data-futures
MLink TokenFutMktData
ProductSRLive
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
prtExchenum - FutExch'None'print exchange
prtSizeINT0print size contracts
prtPriceDOUBLE0print price
prtClusterNumINT0incremental print cluster counter one counter per fkey used to group prints into clusters
prtClusterSizeINT0cumulative size of prints in this sequence sequence of prints same or better price with less than 25 ms elapsing since first print
prtTypeTINYINT UNSIGNED0print type exchange specific
prtOrdersSMALLINT UNSIGNED0number of orders participating in this print
prtQuanINT0cumulative electronic print size at current price level
prtVolumeINT0cumulative day electronic print volume in contracts
bidFLOAT0exchange bid print time
askFLOAT0exchange ask print time
bszINT0cumulative bid size print time
aszINT0cumulative ask size print time
ageFLOAT0age of prevailing quote at time of print
prtSideenum - PrtSide'None'implied print side from bidask
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'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
fkey_tk1
fkey_yr2
fkey_mn3
fkey_dy4
fkey_at5
fkey_ts6

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRLive`.`MsgFuturePrint` (
`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,
`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',
`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 (sequence of prints @ same or better price with less than 25 ms elapsing since first print)',
`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',
`prtQuan` INT NOT NULL DEFAULT 0 COMMENT 'cumulative (electronic) print size at current price level',
`prtVolume` INT NOT NULL DEFAULT 0 COMMENT 'cumulative day (electronic) print volume in contracts',
`bid` FLOAT NOT NULL DEFAULT 0 COMMENT 'exchange bid (@ print time)',
`ask` FLOAT NOT NULL DEFAULT 0 COMMENT 'exchange ask (@ print time)',
`bsz` INT NOT NULL DEFAULT 0 COMMENT 'cumulative bid size (@ print time)',
`asz` INT NOT NULL DEFAULT 0 COMMENT 'cumulative ask size (@ print time)',
`age` FLOAT NOT NULL DEFAULT 0 COMMENT 'age of prevailing quote at time of print',
`prtSide` ENUM('None','Mid','Bid','Ask') NOT NULL DEFAULT 'None' COMMENT 'implied print side (from 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',
PRIMARY KEY USING HASH (`fkey_tk`,`fkey_yr`,`fkey_mn`,`fkey_dy`,`fkey_at`,`fkey_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='The most recent (last) print record for each active futures market.';

SELECT TABLE EXAMPLE QUERY

SELECT
`fkey_at`,
`fkey_ts`,
`fkey_tk`,
`fkey_yr`,
`fkey_mn`,
`fkey_dy`,
`prtExch`,
`prtSize`,
`prtPrice`,
`prtClusterNum`,
`prtClusterSize`,
`prtType`,
`prtOrders`,
`prtQuan`,
`prtVolume`,
`bid`,
`ask`,
`bsz`,
`asz`,
`age`,
`prtSide`,
`prtTimestamp`,
`netTimestamp`,
`timestamp`
FROM `SRLive`.`MsgFuturePrint`
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;

Doc Columns Query

SELECT * FROM SRLive.doccolumns WHERE TABLE_NAME='FuturePrint' ORDER BY ordinal_position ASC;