Skip to main content
Version: Upcoming

SRFixParentCancel

V8 Message Definiton

Records inserted into this table causes the corresponding parent order to be cancelled if it is active and cancellable.

METADATA

AttributeValue
Topic3985-parent-orders
MLink TokenInternal
ProductSRTrade
accessTypeSELECT,INSERT,DELETE
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
altCancelIdVARCHAR(24)PRI''usually client FIX clOrdId of the inbound OrderCancel request
srcRoutingCodeVARCHAR(65)PRI''client FIX session
clientSeqNumInINT0
altOrderIdVARCHAR(24)''usually client FIX origClOrdId order to be cancelled
secKey_atenum - AssetType'None'Composite Security Key
secKey_tsenum - TickerSrc'None'Composite Security Key
secKey_tkVARCHAR(12)''Composite Security Key
secKey_yrSMALLINT UNSIGNED0Composite Security Key
secKey_mnTINYINT UNSIGNED0Composite Security Key
secKey_dyTINYINT UNSIGNED0Composite Security Key
secKey_xxDOUBLE0Composite Security Key
secKey_cpenum - CallPut'Call'Composite Security Key
secTypeenum - SpdrKeyType'None'Security Type Stock Future Option
cxlReasonVARCHAR(16)''
spdrCloseReasonenum - SpdrCloseReason'None'Valid values from CGW UserCxl System
engineNameVARCHAR(32)''set by the engine handling event should be blank on arrival
modifiedByVARCHAR(24)''user who last modified this record
modifiedInenum - SysEnvironment'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of last modification

PRIMARY KEY DEFINITION (Unique)

FieldSequence
altCancelId1
srcRoutingCode2

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRTrade`.`MsgSRFixParentCancel`
WHERE
/* Replace with a VARCHAR(24) */
`altCancelId` = 'Example_altCancelId'
AND
/* Replace with a VARCHAR(65) */
`srcRoutingCode` = 'Example_srcRoutingCode';

INSERT TABLE EXAMPLE QUERY

INSERT INTO `SRTrade`.`MsgSRFixParentCancel`(
/* Replace with a VARCHAR(24) */
`altCancelId`,
/* Replace with a VARCHAR(65) */
`srcRoutingCode`,
/* Replace with a INT */
`clientSeqNumIn`,
/* Replace with a VARCHAR(24) */
`altOrderId`,
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`secKey_at`,
/* 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','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`secKey_ts`,
/* Replace with a VARCHAR(12) */
`secKey_tk`,
/* Replace with a SMALLINT UNSIGNED */
`secKey_yr`,
/* Replace with a TINYINT UNSIGNED */
`secKey_mn`,
/* Replace with a TINYINT UNSIGNED */
`secKey_dy`,
/* Replace with a DOUBLE */
`secKey_xx`,
/* Replace with a ENUM('Call','Put','Pair') */
`secKey_cp`,
/* Replace with a ENUM('None','Stock','Future','Option','MLeg') */
`secType`,
/* Replace with a VARCHAR(16) */
`cxlReason`,
/* Replace with a ENUM('None','Cancelled','Filled','Replaced','Expired','Limit','System','LegReject','DoneForDay','IOCExpire','UserCxl','NoProgress','TooManyRej','ReplReject','AlgoClose','Restart','InvldParentLimit','FilledRepl','ForceClose','DmaReject','DmaExpire','DmaBrkrCxl','ReviewReject','MarketState','AlgoReject','ReviewTimeout','ChildReject','ChildCancel','ReviewClose','UPrcRange','LegBrkrClosed','ExchRisk','CrossFailed') */
`spdrCloseReason`,
/* Replace with a VARCHAR(32) */
`engineName`,
/* Replace with a DATETIME(6) */
`timestamp`
)
VALUES(
'Example_altCancelId',
'Example_srcRoutingCode',
5,
'Example_altOrderId',
'None',
'None',
'Example_secKey_tk',
123,
1,
1,
4.56,
'Call',
'None',
'Example_cxlReason',
'None',
'Example_engineName',
'2022-01-01 12:34:56.000000'
);

DELETE TABLE EXAMPLE QUERY

DELETE FROM `SRTrade`.`MsgSRFixParentCancel` 
WHERE
/* Replace with a VARCHAR(24) */
`altCancelId` = 'Example_altCancelId'
AND
/* Replace with a VARCHAR(65) */
`srcRoutingCode` = 'Example_srcRoutingCode';

Doc Columns Query

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRFixParentCancel' ORDER BY ordinal_position ASC;