Schema: SpdrChildExecution (ID: 1535)
SpdrChildExecution records are published when a child order fill is received. These records update if busted or corrected by a downstream venue.
SpdrChildExecution records are published to the SpiderRock elastic cluster as they arrive.
METADATA
| Attribute | Value |
|---|---|
| Topic | 1525-child-orders |
| MLink Token | Internal |
| MLink Endpoint | MLink-Live |
| SRSE Product |
Note: The symbol
=next to a field number indicates that it is a primary key.
BODY
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 10= | fillNumber | long | SR fill number (same as SpdrParentOrder.pkey.fillNumber) | |
| 100 | sysRealm | enum : SysRealm | ||
| 103 | sysEnvironment | enum : SysEnvironment | original (source) sys environment [Stable, Current, etc] | |
| 106 | runStatus | enum : RunStatus | original (source) run status [Prod,Beta] | |
| 109 | clOrdId | long | SR child order clOrdId, or CrossID on cross orders. | |
| 112 | childShape | enum : SpdrOrderShape | ||
| 115 | execShape | enum : ExecShape | ||
| 118 | streetClOrdId | string(24) | usually clOrdID.X16 but can be different if street gateway was translating clOrdId | |
| 121 | streetOrderId | string(24) | street side order ID (for canceling order) | |
| 124 | sideClOrdId | long | Cross Side ClOrdId. From ChildOrder.custClOrdId, or ChildOrder.FaceSideList.alloclOrdID | |
| 127 | parentNumber | long | parent order number | |
| 130 | parentVersion | short | SPDR order instance number (1 = original order; 2 = 1st cancel/replace, etc) | |
| 133 | baseParentNumber | long | base order number (first parent number in chain) | |
| 136 | accnt | string(16) | SR trading accnt | |
| 139 | clientFirm | string(16) | SR client firm | |
| 142 | coreClientFirm | string(16) | ||
| 145 | sponsorClientFirm | string(16) | ||
| 148 | faceSide | enum : FaceSide | ||
| 151 | faceShape | enum : FaceShape | CrossCust = split broker / cust side, CrossFace = split broker / face side, CrossBoth = single broker cross | |
| 154 | faceSideClOrdId | long | either custClOrdId, faceClOrdId, or zero | |
| 157 | secKey | OptionKey | ||
| 160 | secType | enum : SpdrKeyType | ||
| 163 | ticker | TickerKey | ||
| 166 | orderSide | enum : BuySell | ||
| 169 | priceType | enum : PriceType | ||
| 172 | orderExch | int | ||
| 175 | orderExDest | string(16) | ||
| 178 | isoSweep | enum : YesNo | ||
| 181 | isDirected | enum : YesNo | child order isDirected flag | |
| 184 | engineName | string(32) | SpiderRock execution engine that handled the parent order | |
| 187 | gatewayName | string(20) | StreetGateway server than handled the child order (if any) | |
| 190 | routingCode | text1 | ||
| 193 | relationshipType | enum : RelationshipType | type of SR <-> client relationship | |
| 196 | firmType | enum : FirmType | firm type markup on child order | |
| 199 | orderCapacity | enum : OrderCapacity | order capacity markup on child order | |
| 202 | ssaleFlag | enum : ShortSaleFlag | short sale flag @ child order send | |
| 205 | positionType | enum : PositionType | position type @ child order send | |
| 208 | locateQuan | int | locate quantity @ child order send | |
| 211 | orderStatus | enum : OrderStatus | ||
| 214 | cumFillQuantity | int | copied from child order immediately after this fill has been incorporated | |
| 217 | avgFillPrice | double | ||
| 220 | leavesQty | int | ||
| 223 | legRatio | ushort | ||
| 226 | fillProcDetail | text1 | ||
| 229 | execTransType | enum : ExecTransType | ||
| 232 | version | byte | cancel/correct version number (initial fill is version=1) | |
| 235 | fillTs | double | fill report ts (seconds since startup; 100 nanosec resolution) | |
| 238 | fillDttm | DateTime | fill DateTime (from SRDateTime) | |
| 241 | fillSize | int | fill size (from execReport.lastSize) | |
| 244 | fillSide | enum : BuySell | fill side (from execReport.side) | |
| 247 | fillPrice | double | fill price (from execReport.lastPrice) | |
| 250 | fillTransactDttm | DateTime | fill DateTime (from execReport.fillDttm) | |
| 253 | fillMarket | string(8) | fill market (from execReport.lastMarket) | |
| 256 | fillSRLiqTag | string(2) | fill SR normalized liquidity tag | |
| 259 | fillExchLiqTag | string(4) | fill exchange liquidity code | |
| 262 | fillExchDetail | text1 | other fix tags (tag:value#tag:value) [additional detail used for analysis] | |
| 265 | fillExchFee | float | fill exchange fee (either estimated by SR or as reported by street gateway) | |
| 268 | fillExecId | text1 | fill execution id (from execReport.execId) | |
| 271 | fillRefExecId | text1 | fill ref execution id (from execReport.refExecId) [only set on a cancel or correct] | |
| 274 | fillLegRefId | long | fill leg ref id (from execReport.legRefId) | |
| 277 | fillLegRatio | int | legRatio (if spread order) | |
| 280 | fillFirmType | string(16) | fill firm type (as reported from street side) | |
| 283 | fillExecBroker | string(16) | fill execution broker (as reported from street side) | |
| 286 | altBrkrMPID | string(8) | alternative broker MPID for a given route (if needed) | |
| 289 | fillOrderCapacity | enum : OrderCapacity | fill order capacity (as reported from street side) | |
| 292 | fillReportDetail | text1 | all non-standard fix tags received on child fill report (custom packing) [used for passing values back to client or drop gateways] | |
| 295 | fillStreetText | text1 | ||
| 298 | crossSide | enum : CrossSide | indicates if this order was the initiator or responder of the cross fill (None if not cross) | |
| 301 | isCrossBreakupFill | enum : YesNo | cross order was broken up on exchange, and this execution was filled by party not specified on the original cross order | |
| 304 | completionType | enum : CompletionType | None, DAC, POC, TAS, TACO, BTIC | |
| 307 | completionState | enum : CompletionState | ||
| 310 | completionPrice | double | completion trade price (final trade price) | |
| 313 | completionSecKey | OptionKey | final settlement secKey (contract that DAC, TAS, TACO, etc. will convert to; might not be valid until completed) | |
| 316 | completionSecType | enum : SpdrKeyType | usually Future or Option (None if not yet valid) | |
| 319 | locateFirm | string(6) | firm granting the locate (also locate firm used on street FIX orders) | |
| 322 | srcTimestamp | long | source timestamp (fixMessage.sendingTime) from street side [might not be high precision] | |
| 325 | sgwTimestamp | long | street gateway arrival timestamp | |
| 328 | engTimestamp | long | execution engine arrival timestamp | |
| 331 | timestamp | DateTime |
Get Schema API Call
- Python
- cUrl
import requests
# Replace with your desired MLINK URL
MLINK_PROD_URL = 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json'
# Replace with your MLINK API Key
API_KEY = 'XXXX-XXXX-XXXX-XXXX'
# Replace with your desired MsgType.
MSG_TYPE = 'SpdrChildExecution'
# Request Parameters for Get Schema Of The MsgType
params = {
# Required Parameters
"apiKey": API_KEY,
"cmd": 'getschema',
"msgType": MSG_TYPE,
}
response = requests.get(MLINK_PROD_URL, params=params)
curl -G 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json' \
--data-urlencode 'apiKey=XXXX-XXXX-XXXX-XXXX' \
--data-urlencode 'cmd=getschema' \
--data-urlencode 'msgType=SpdrChildExecution'
Get Msg API Call
- Python
- cUrl
import requests
# Replace with your desired MLINK URL
MLINK_PROD_URL = 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json'
# Replace with your MLINK API Key
API_KEY = 'XXXX-XXXX-XXXX-XXXX'
# Replace with your desired MsgType.
MSG_TYPE = 'SpdrChildExecution'
# Replace with your pkey value for getting the specific message desired
PKEY = 'ReplaceThisValueForTheQueryToWork'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned.
VIEW = 'sysRealm|sysEnvironment|runStatus|clOrdId|childShape|execShape|streetClOrdId|streetOrderId|sideClOrdId|parentNumber|parentVersion|baseParentNumber|accnt|clientFirm|coreClientFirm|sponsorClientFirm|faceSide|faceShape|faceSideClOrdId|secKey|secType|ticker|orderSide|priceType|orderExch|orderExDest|isoSweep|isDirected|engineName|gatewayName|routingCode|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|locateQuan|orderStatus|cumFillQuantity|avgFillPrice|leavesQty|legRatio|fillProcDetail|execTransType|version|fillTs|fillDttm|fillSize|fillSide|fillPrice|fillTransactDttm|fillMarket|fillSRLiqTag|fillExchLiqTag|fillExchDetail|fillExchFee|fillExecId|fillRefExecId|fillLegRefId|fillLegRatio|fillFirmType|fillExecBroker|altBrkrMPID|fillOrderCapacity|fillReportDetail|fillStreetText|crossSide|isCrossBreakupFill|completionType|completionState|completionPrice|completionSecKey|completionSecType|locateFirm|srcTimestamp|sgwTimestamp|engTimestamp|timestamp'
# Replace with your desired where clause.
# a string in the form "field1:eq:valuse" or "(field1:ne:value1 & field1:ne:value2)
# "WHERE" clauses can contain the following comparison symbols:
# :gt: is greater than
# :ge: is greater than or equal to
# :lt: is less than
# :le: is less than or equal to
# :eq: is equal
# :ne: is not equal
# %26 is an AND statement
# | is an OR statement
# :sw: is starts with
# :ew: is ends with
# :cv: is contains values
# :nv: is does not contain value
# :cb: is contained between (two dates for instance) separated by '$'
WHERE = 'streetClOrdId:eq:ExampleString'
# Request Parameters for getmsg Of The MsgType
params = {
# Required Parameters
"apiKey": API_KEY,
"cmd": 'getmsg',
"pkey": PKEY,
"msgType": MSG_TYPE,
# Optional Parameters
"view": VIEW,
"where": WHERE
}
response = requests.get(MLINK_PROD_URL, params=params)
curl -G 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json' \
--data-urlencode 'apiKey=XXXX-XXXX-XXXX-XXXX' \
--data-urlencode 'cmd=getmsg' \
--data-urlencode 'pkey=ReplaceThisValueForTheQueryToWork' \
--data-urlencode 'msgType=SpdrChildExecution' \
--data-urlencode 'view=sysRealm|sysEnvironment|runStatus|clOrdId|childShape|execShape|streetClOrdId|streetOrderId|sideClOrdId|parentNumber|parentVersion|baseParentNumber|accnt|clientFirm|coreClientFirm|sponsorClientFirm|faceSide|faceShape|faceSideClOrdId|secKey|secType|ticker|orderSide|priceType|orderExch|orderExDest|isoSweep|isDirected|engineName|gatewayName|routingCode|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|locateQuan|orderStatus|cumFillQuantity|avgFillPrice|leavesQty|legRatio|fillProcDetail|execTransType|version|fillTs|fillDttm|fillSize|fillSide|fillPrice|fillTransactDttm|fillMarket|fillSRLiqTag|fillExchLiqTag|fillExchDetail|fillExchFee|fillExecId|fillRefExecId|fillLegRefId|fillLegRatio|fillFirmType|fillExecBroker|altBrkrMPID|fillOrderCapacity|fillReportDetail|fillStreetText|crossSide|isCrossBreakupFill|completionType|completionState|completionPrice|completionSecKey|completionSecType|locateFirm|srcTimestamp|sgwTimestamp|engTimestamp|timestamp' \
--data-urlencode 'where=streetClOrdId:eq:ExampleString'
Get Msgs API Call
- Python
- cUrl
import requests
# Replace with your desired MLINK URL
MLINK_PROD_URL = 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json'
# Replace with your MLINK API Key
API_KEY = 'XXXX-XXXX-XXXX-XXXX'
# Replace with your desired MsgType.
MSG_TYPE = 'SpdrChildExecution'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'sysRealm|sysEnvironment|runStatus|clOrdId|childShape|execShape|streetClOrdId|streetOrderId|sideClOrdId|parentNumber|parentVersion|baseParentNumber|accnt|clientFirm|coreClientFirm|sponsorClientFirm|faceSide|faceShape|faceSideClOrdId|secKey|secType|ticker|orderSide|priceType|orderExch|orderExDest|isoSweep|isDirected|engineName|gatewayName|routingCode|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|locateQuan|orderStatus|cumFillQuantity|avgFillPrice|leavesQty|legRatio|fillProcDetail|execTransType|version|fillTs|fillDttm|fillSize|fillSide|fillPrice|fillTransactDttm|fillMarket|fillSRLiqTag|fillExchLiqTag|fillExchDetail|fillExchFee|fillExecId|fillRefExecId|fillLegRefId|fillLegRatio|fillFirmType|fillExecBroker|altBrkrMPID|fillOrderCapacity|fillReportDetail|fillStreetText|crossSide|isCrossBreakupFill|completionType|completionState|completionPrice|completionSecKey|completionSecType|locateFirm|srcTimestamp|sgwTimestamp|engTimestamp|timestamp'
# Replace with your desired where clause.
# a string in the form "field1:eq:value" or "(field1:ne:value1 & field1:ne:value2)
# "WHERE" clauses can contain the following comparison symbols:
# :gt: is greater than
# :ge: is greater than or equal to
# :lt: is less than
# :le: is less than or equal to
# :eq: is equal
# :ne: is not equal
# %26 is an AND statement
# | is an OR statement
# :sw: is starts with
# :ew: is ends with
# :cv: is contains values
# :nv: is does not contain value
# :cb: is contained between (two dates for instance) separated by '$'
WHERE = 'streetClOrdId:eq:ExampleString'
# Replace with your desired limit of how many messages you receive. The default limit is 500
LIMIT = 500
# Order clause eg. "(field1:DESC | field1:ASC | field2:DESC:ABS | field2:ASC:ABS" (default is unordered; default is faster)
ORDER = 'sysRealm:ASC'
# Request Parameters for getmsgs Of The MsgType
params = {
# Required Parameters
"apiKey": API_KEY,
"cmd": 'getmsgs',
"msgType": MSG_TYPE,
# Optional Parameters
"view": VIEW,
"where": WHERE,
"limit": LIMIT,
"order": ORDER
}
response = requests.get(MLINK_PROD_URL, params=params)
curl -G 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json' \
--data-urlencode 'apiKey=XXXX-XXXX-XXXX-XXXX' \
--data-urlencode 'cmd=getmsgs' \
--data-urlencode 'msgType=SpdrChildExecution' \
--data-urlencode 'view=sysRealm|sysEnvironment|runStatus|clOrdId|childShape|execShape|streetClOrdId|streetOrderId|sideClOrdId|parentNumber|parentVersion|baseParentNumber|accnt|clientFirm|coreClientFirm|sponsorClientFirm|faceSide|faceShape|faceSideClOrdId|secKey|secType|ticker|orderSide|priceType|orderExch|orderExDest|isoSweep|isDirected|engineName|gatewayName|routingCode|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|locateQuan|orderStatus|cumFillQuantity|avgFillPrice|leavesQty|legRatio|fillProcDetail|execTransType|version|fillTs|fillDttm|fillSize|fillSide|fillPrice|fillTransactDttm|fillMarket|fillSRLiqTag|fillExchLiqTag|fillExchDetail|fillExchFee|fillExecId|fillRefExecId|fillLegRefId|fillLegRatio|fillFirmType|fillExecBroker|altBrkrMPID|fillOrderCapacity|fillReportDetail|fillStreetText|crossSide|isCrossBreakupFill|completionType|completionState|completionPrice|completionSecKey|completionSecType|locateFirm|srcTimestamp|sgwTimestamp|engTimestamp|timestamp' \
--data-urlencode 'where=streetClOrdId:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=sysRealm:ASC'
Get Aggregate API Call
- Python
- cUrl
import requests
# Replace with your desired MLINK URL
MLINK_PROD_URL = 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json'
# Replace with your MLINK API Key
API_KEY = 'XXXX-XXXX-XXXX-XXXX'
# Replace with your desired MsgType.
MSG_TYPE = 'SpdrChildExecution'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'sysRealm|sysEnvironment|runStatus|clOrdId|childShape|execShape|streetClOrdId|streetOrderId|sideClOrdId|parentNumber|parentVersion|baseParentNumber|accnt|clientFirm|coreClientFirm|sponsorClientFirm|faceSide|faceShape|faceSideClOrdId|secKey|secType|ticker|orderSide|priceType|orderExch|orderExDest|isoSweep|isDirected|engineName|gatewayName|routingCode|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|locateQuan|orderStatus|cumFillQuantity|avgFillPrice|leavesQty|legRatio|fillProcDetail|execTransType|version|fillTs|fillDttm|fillSize|fillSide|fillPrice|fillTransactDttm|fillMarket|fillSRLiqTag|fillExchLiqTag|fillExchDetail|fillExchFee|fillExecId|fillRefExecId|fillLegRefId|fillLegRatio|fillFirmType|fillExecBroker|altBrkrMPID|fillOrderCapacity|fillReportDetail|fillStreetText|crossSide|isCrossBreakupFill|completionType|completionState|completionPrice|completionSecKey|completionSecType|locateFirm|srcTimestamp|sgwTimestamp|engTimestamp|timestamp'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'sysRealm|sysEnvironment|runStatus|childShape|execShape|faceSide|faceShape|secType|orderSide|priceType|isoSweep|isDirected|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|orderStatus|execTransType|fillSide|fillOrderCapacity|crossSide|isCrossBreakupFill|completionType|completionState|completionSecType'
# Replace with your desired where clause.
# a string in the form "field1:eq:value" or "(field1:ne:value1 & field1:ne:value2)
# "WHERE" clauses can contain the following comparison symbols:
# :gt: is greater than
# :ge: is greater than or equal to
# :lt: is less than
# :le: is less than or equal to
# :eq: is equal
# :ne: is not equal
# %26 is an AND statement
# | is an OR statement
# :sw: is starts with
# :ew: is ends with
# :cv: is contains values
# :nv: is does not contain value
# :cb: is contained between (two dates for instance) separated by '$'
WHERE = 'streetClOrdId:eq:ExampleString'
# Request Parameters for getaggregate Of The MsgType
params = {
# Required Parameters
"apiKey": API_KEY,
"cmd": 'getaggregate',
"msgType": MSG_TYPE,
"measure": MEASURE,
"group": GROUP,
# Optional Parameters
"where": WHERE,
}
response = requests.get(MLINK_PROD_URL, params=params)
curl -G 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json' \
--data-urlencode 'apiKey=XXXX-XXXX-XXXX-XXXX' \
--data-urlencode 'cmd=getaggregate' \
--data-urlencode 'msgType=SpdrChildExecution' \
--data-urlencode 'measure=sysRealm|sysEnvironment|runStatus|clOrdId|childShape|execShape|streetClOrdId|streetOrderId|sideClOrdId|parentNumber|parentVersion|baseParentNumber|accnt|clientFirm|coreClientFirm|sponsorClientFirm|faceSide|faceShape|faceSideClOrdId|secKey|secType|ticker|orderSide|priceType|orderExch|orderExDest|isoSweep|isDirected|engineName|gatewayName|routingCode|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|locateQuan|orderStatus|cumFillQuantity|avgFillPrice|leavesQty|legRatio|fillProcDetail|execTransType|version|fillTs|fillDttm|fillSize|fillSide|fillPrice|fillTransactDttm|fillMarket|fillSRLiqTag|fillExchLiqTag|fillExchDetail|fillExchFee|fillExecId|fillRefExecId|fillLegRefId|fillLegRatio|fillFirmType|fillExecBroker|altBrkrMPID|fillOrderCapacity|fillReportDetail|fillStreetText|crossSide|isCrossBreakupFill|completionType|completionState|completionPrice|completionSecKey|completionSecType|locateFirm|srcTimestamp|sgwTimestamp|engTimestamp|timestamp' \
--data-urlencode 'group=sysRealm|sysEnvironment|runStatus|childShape|execShape|faceSide|faceShape|secType|orderSide|priceType|isoSweep|isDirected|relationshipType|firmType|orderCapacity|ssaleFlag|positionType|orderStatus|execTransType|fillSide|fillOrderCapacity|crossSide|isCrossBreakupFill|completionType|completionState|completionSecType' \
--data-urlencode 'where=streetClOrdId:eq:ExampleString'
Get Count API Call
- Python
- cUrl
import requests
# Replace with your desired MLINK URL
MLINK_PROD_URL = 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json'
# Replace with your MLINK API Key
API_KEY = 'XXXX-XXXX-XXXX-XXXX'
# Replace with your desired MsgType.
MSG_TYPE = 'SpdrChildExecution'
# Replace with your desired where clause.
# a string in the form "field1:eq:value" or "(field1:ne:value1 & field1:ne:value2)
# "WHERE" clauses can contain the following comparison symbols:
# :gt: is greater than
# :ge: is greater than or equal to
# :lt: is less than
# :le: is less than or equal to
# :eq: is equal
# :ne: is not equal
# %26 is an AND statement
# | is an OR statement
# :sw: is starts with
# :ew: is ends with
# :cv: is contains values
# :nv: is does not contain value
# :cb: is contained between (two dates for instance) separated by '$'
WHERE = 'streetClOrdId:eq:ExampleString'
# Request Parameters for getCount Of The MsgType
params = {
# Required Parameters
"apiKey": API_KEY,
"cmd": 'getcount',
"msgType": MSG_TYPE,
# Optional Parameters
"where": WHERE,
}
response = requests.get(MLINK_PROD_URL, params=params)
curl -G 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json' \
--data-urlencode 'apiKey=XXXX-XXXX-XXXX-XXXX' \
--data-urlencode 'cmd=getcount' \
--data-urlencode 'msgType=SpdrChildExecution' \
--data-urlencode 'where=streetClOrdId:eq:ExampleString'