SRAvailExecAllocation
METADATA
| Attribute | Value |
|---|---|
| Topic | 3695-order-allocation |
| MLink Token | ClientTrading |
| Product | SRTrade |
| accessType | SELECT |
| MLink Endpoint | MLink-Order |
Table Definition
| Field | Type | Key | Default Value | Comment |
|---|---|---|---|---|
| availExecNumber | BIGINT | PRI | 0 | unique number for this message |
| omniAccnt | VARCHAR(16) | '' | omnibus accnt SR accnt | |
| clientFirm | 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 | |
| orderSide | enum - BuySell | 'None' | order side always buy for MLEG orders | |
| ssaleFlag | enum - ShortSaleFlag | 'None' | ssale flag None if not stock | |
| positionType | enum - PositionType | 'None' | positionType None if not equity option | |
| spdrSource | enum - SpdrSource | 'None' | parent order source | |
| groupingCode | CHAR(19) | '0000-0000-0000-0000' | unique broker code | |
| mlegLegKey | TINYTEXT | '' | secKeyStringKeylegRatiosidepositionEffect secKeyStringKeylegRatiosidepositionEffect | |
| baseParentNumber | CHAR(19) | '0000-0000-0000-0000' | SR BaseParentNumber these executions belong to can be zero if executions are drop | |
| cumFillQty | INT | 0 | net cumFillQty total for the day | |
| avgFillPrc | DOUBLE | 0 | average fill price | |
| allocStatus | enum - ExecAllocStatus | 'None' | allocation status | |
| timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' | ||
| ChildOrdersList | JSON | 'JSON_ARRAY()' |
PRIMARY KEY DEFINITION (Unique)
| Field | Sequence |
|---|---|
| availExecNumber | 1 |
JSON Block (ChildOrdersList)
| Field | Type | Comment |
|---|---|---|
| clOrdId | enum - clOrdId | childOrders in the above allocation |
SELECT TABLE EXAMPLE QUERY
SELECT *
FROM `SRTrade`.`MsgSRAvailExecAllocation`
WHERE
/* Replace with a BIGINT */
`availExecNumber` = 1234567890;
Doc Columns Query
SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRAvailExecAllocation' ORDER BY ordinal_position ASC;