Skip to main content
Version: 8.5.11.1

OptionFlexPrint

V8 Message Definiton

The most recent (last) record for each active FLEX option.

METADATA

AttributeValue
Topic2750-market-data-options
MLink TokenOptFlexPrint
ProductSRLive
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
eventIdCHAR(19)PRI'0000-0000-0000-0000'unique FLEX event ID guid
optExchenum - OptExch'None'
exchangeIdVARCHAR(16)''identifier associated with this trade assigned by the exchange may not be 100 reliable
flexRootVARCHAR(6)''security symbol of the FLEX option
closureTypeenum - FlexClosureType'None'
printClosureenum - FlexPrintClosure'None'
pkgQtyINT0package quantity
pkgPriceDOUBLE0total price inclusive of all legs
recordIdSetTEXT''OPRA FLEX text lines contributing to this event pipe delimited if more than one
createTimeDATETIME(6)'1900-01-01 00:00:00.000000'creation time of this event
modifyTimeDATETIME(6)'1900-01-01 00:00:00.000000'last modification time for this event
numLegsINT0expected number of legs in complete package
legsCompleteenum - YesNo'None'
LegsListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
eventId1

JSON Block (LegsList)

FieldTypeComment
okeyenum - okeyOptionKey of the instrument if available
flexTypeenum - FlexTypeEuropean or American exercise AM or PM exercise time
quantityenum - quantityquantity of contracts in this leg of the event
priceenum - priceprice of this leg of the event could be quoted in percentage of closing price
priceTypeenum - FlexPriceTypeprice type of the event
deltaenum - deltadelta supplied with the event for delta adjusted at close events
refPriceenum - refPricereference price of the event for use in delta ajusting the final price
closePriceenum - closePriceclose price used for both percentage adjusted and delta adjusted events
priceAdjenum - priceAdjfinal adjusted price made available after the event is marked as PctAdjApplied or DeltaAdjApplied
strikeAdjenum - strikeAdjfinal adjusted strike made available after the event is marked PctAdjApplied

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRLive`.`MsgOptionFlexPrint` (
`eventId` CHAR(19) NOT NULL DEFAULT '0000-0000-0000-0000' COMMENT 'unique FLEX event ID (guid)',
`optExch` ENUM('None','AMEX','BOX','CBOE','ISE','NYSE','PHLX','NSDQ','BATS','C2','NQBX','MIAX','GMNI','CME','CBOT','NYMEX','COMEX','ICE','EDGO','MCRY','MPRL','SDRK','DQTE','EMLD','CFE','MEMX','SPHR','EUREX','CEDX','NXAM','NXBR','NXLS','NXML','NXOS','NXP','ICEFE','SRC') NOT NULL DEFAULT 'None',
`exchangeId` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'identifier associated with this trade assigned by the exchange (may not be 100% reliable)',
`flexRoot` VARCHAR(6) NOT NULL DEFAULT '' COMMENT 'security symbol of the FLEX option',
`closureType` ENUM('None','DeltaAdjAtClose','PctAdjAtClose') NOT NULL DEFAULT 'None',
`printClosure` ENUM('None','PendingClose','Closed','Cancelled') NOT NULL DEFAULT 'None',
`pkgQty` INT NOT NULL DEFAULT 0 COMMENT 'package quantity',
`pkgPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'total price inclusive of all legs',
`recordIdSet` TEXT NOT NULL DEFAULT '' COMMENT 'OPRA FLEX text line(s) contributing to this event [pipe delimited if more than one]' CHECK(LENGTH(recordIdSet) <= 10000),
`createTime` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'creation time of this event',
`modifyTime` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'last modification time for this event',
`numLegs` INT NOT NULL DEFAULT 0 COMMENT 'expected number of legs in complete package',
`legsComplete` ENUM('None','Yes','No') NOT NULL DEFAULT 'None',
`LegsList` JSON NOT NULL DEFAULT JSON_ARRAY() CHECK(JSON_VALID(LegsList)),
CONSTRAINT nonnegative_eventId CHECK(ASCII(eventId) < 56),
PRIMARY KEY USING HASH (`eventId`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='The most recent (last) record for each active FLEX option.';

SELECT TABLE EXAMPLE QUERY

SELECT
`eventId`,
`optExch`,
`exchangeId`,
`flexRoot`,
`closureType`,
`printClosure`,
`pkgQty`,
`pkgPrice`,
`recordIdSet`,
`createTime`,
`modifyTime`,
`numLegs`,
`legsComplete`,
`LegsList`
FROM `SRLive`.`MsgOptionFlexPrint`
WHERE
/* Replace with a CHAR(19) */
`eventId` = 'Example_eventId';

Doc Columns Query

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