SRExecutionAllocation
METADATA
| Attribute | Value |
|---|---|
| Topic | 3695-order-allocation |
| MLink Token | ClientTrading |
| Product | SRTrade |
| accessType | SELECT,INSERT |
| MLink Endpoint | MLink-Order |
Table Definition
| Field | Type | Key | Default Value | Comment |
|---|---|---|---|---|
| fillNumber | BIGINT | PRI | 0 | fillNumber of the SpdrParentExecution being allocated |
| baseParentNumber | CHAR(19) | '0000-0000-0000-0000' | parent order of the allocated execution always filled manualaway executions get minted parents | |
| omniAccnt | VARCHAR(16) | '' | omnibus accnt SR accnt | |
| omniCFirm | VARCHAR(16) | '' | SR client firm | |
| secKey_at | enum - AssetType | 'None' | security key stock future or option | |
| secKey_ts | enum - TickerSrc | 'None' | security key stock future or option | |
| secKey_tk | VARCHAR(12) | '' | security key stock future or option | |
| secKey_yr | SMALLINT UNSIGNED | 0 | security key stock future or option | |
| secKey_mn | TINYINT UNSIGNED | 0 | security key stock future or option | |
| secKey_dy | TINYINT UNSIGNED | 0 | security key stock future or option | |
| secKey_xx | DOUBLE | 0 | security key stock future or option | |
| secKey_cp | enum - CallPut | 'Call' | security key stock future or option | |
| secType | enum - SpdrKeyType | 'None' | security type | |
| mlegLegKey | TINYTEXT | '' | secKeyStringKeylegRatiosidepositionEffect secKeyStringKeylegRatiosidepositionEffect | |
| orderSide | enum - BuySell | 'None' | order side always buy for MLEG orders | |
| clOrdId | CHAR(19) | '0000-0000-0000-0000' | child order this fill belongs to onehop join to the childs SpdrAllocationNotice | |
| allocationRule | enum - AllocationRule | 'None' | ||
| allocStatus | enum - AllocStatus | 'None' | ||
| allocDetail | TEXT | '' | ||
| deliveryStatus | enum - AllocDeliveryStatus | 'None' | downstream delivery rollup backpropagated from the childs SpdrAllocationNoticeStatus 3700 distinct from allocStatus which is internal emission state | |
| modifiedBy | VARCHAR(24) | '' | user who last modified this record | |
| modifiedIn | enum - SysEnvironment | 'None' | ||
| timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' | timestamp of last modification | |
| FragmentsList | JSON | 'JSON_ARRAY()' |
PRIMARY KEY DEFINITION (Unique)
| Field | Sequence |
|---|---|
| fillNumber | 1 |
JSON Block (FragmentsList)
| Field | Type | Comment |
|---|---|---|
| fragAccnt | enum - fragAccnt | target SR alloc accnt |
| fragCFirm | enum - fragCFirm | SR client firm |
| allocSize | enum - allocSize | shares of this fill assigned to the fragment |
SELECT TABLE EXAMPLE QUERY
SELECT *
FROM `SRTrade`.`MsgSRExecutionAllocation`
WHERE
/* Replace with a BIGINT */
`fillNumber` = 1234567890;
INSERT TABLE EXAMPLE QUERY
INSERT INTO `SRTrade`.`MsgSRExecutionAllocation`(
/* Replace with a BIGINT */
`fillNumber`,
/* Replace with a CHAR(19) */
`baseParentNumber`,
/* Replace with a VARCHAR(16) */
`omniAccnt`,
/* Replace with a VARCHAR(16) */
`omniCFirm`,
/* 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 TINYTEXT */
`mlegLegKey`,
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide`,
/* Replace with a CHAR(19) */
`clOrdId`,
/* Replace with a ENUM('None','Hamilton','LargestWins') */
`allocationRule`,
/* Replace with a ENUM('None','Pending','Done','Error','Waiting') */
`allocStatus`,
/* Replace with a TEXT */
`allocDetail`,
/* Replace with a ENUM('None','Pend','Queued','Sent','Ack','Err') */
`deliveryStatus`,
/* Replace with a DATETIME(6) */
`timestamp`,
/* Replace with a JSON */
`FragmentsList`
)
VALUES(
1234567890,
'Example_baseParentNumber',
'Example_omniAccnt',
'Example_omniCFirm',
'None',
'None',
'Example_secKey_tk',
123,
1,
1,
4.56,
'Call',
'None',
'dummy tiny text',
'None',
'Example_clOrdId',
'None',
'None',
'dummy text',
'None',
'2022-01-01 12:34:56.000000',
'{"key": "value"}'
);
Doc Columns Query
SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRExecutionAllocation' ORDER BY ordinal_position ASC;