Skip to main content
Version: Upcoming

ProductTradingStatus

V8 Message Definiton

This table contains live trading status records for entire product groups (futures and options) and asset groups and individual instruments

METADATA

AttributeValue
Topic4440-product-status
MLink TokenClientLive
ProductSRLive
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ccode_atenum - AssetTypePRI'None'product group
ccode_tsenum - TickerSrcPRI'None'product group
ccode_tkVARCHAR(12)PRI''product group
assetCodeVARCHAR(6)PRI''asset code if this status update applies to a specific asset group Can be empty
securityIDBIGINTPRI0product ID if this status update applies to a specific instrument Can be 0
tradeDateDATE'1900-01-01'
marketStatusenum - MarketStatus'None'market status open halted etc
timestampDATETIME(6)'1900-01-01 00:00:00.000000'time of last state update CST

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ccode_tk1
ccode_at2
ccode_ts3
assetCode4
securityID5

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRLive`.`MsgProductTradingStatus` (
`ccode_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'product group',
`ccode_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 'product group',
`ccode_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'product group',
`assetCode` VARCHAR(6) NOT NULL DEFAULT '' COMMENT 'asset code if this status update applies to a specific asset group (Can be empty)',
`securityID` BIGINT NOT NULL DEFAULT 0 COMMENT 'product ID if this status update applies to a specific instrument (Can be 0)',
`tradeDate` DATE NOT NULL DEFAULT '1900-01-01',
`marketStatus` ENUM('None','PreOpen','PreCross','Cross','Open','Closed','Halted','AfterHours') NOT NULL DEFAULT 'None' COMMENT 'market status (open, halted, etc)',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'time of last state update (CST)',
PRIMARY KEY USING HASH (`ccode_tk`,`ccode_at`,`ccode_ts`,`assetCode`,`securityID`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='This table contains live trading status records for entire product groups (futures and options) and asset groups and individual instruments';

SELECT TABLE EXAMPLE QUERY

SELECT
`ccode_at`,
`ccode_ts`,
`ccode_tk`,
`assetCode`,
`securityID`,
`tradeDate`,
`marketStatus`,
`timestamp`
FROM `SRLive`.`MsgProductTradingStatus`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ccode_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') */
`ccode_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ccode_tk` = 'Example_ccode_tk'
AND
/* Replace with a VARCHAR(6) */
`assetCode` = 'Example_assetCode'
AND
/* Replace with a BIGINT */
`securityID` = 1234567890;

Doc Columns Query

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