Schema: SpdrParentReviewRequest (ID: 4195)
SpdrParentReviewRequest records created when a parent order is submitted with StageType=StageReview. These records indicate that an external review of the parent order has been requested.
METADATA
Attribute | Value |
---|---|
Topic | 4195-parent-review |
MLink Token | ClientTrading |
SRSE Product | SRTrade |
Note: The symbol
=
next to a field number indicates that it is a primary key.
BODY
# | Field | Type | Comment |
---|---|---|---|
10= | parentNumber | long | SPDR order number |
100 | sysEnvironment | enum : SysEnvironment | original (source) sys environment [Stable, Current, etc] |
103 | runStatus | enum : RunStatus | original (source) run status [Prod,Beta] |
106 | parentShape | enum : SpdrOrderShape | Parent Shape [Single, Cross, MLeg, MLegCross] |
109 | altOrderId | string(24) | alternate order ID (usually clOrdId from client) |
112 | altPrevOrderId | string(24) | alternate prev order ID (usually origClOrdId from client during cxl/replace) |
115 | altAccnt | string(32) | alternate (client assigned) "long" account string (optional) [used to map between client and SR account strings] |
118 | altUserName | string(24) | alternate (client assigned) user name (optional) [used to map between client and SR account strings] |
121 | secKey | OptionKey | Composite Security Key |
124 | secType | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
127 | securityDesc | text1 | additional security description |
130 | accnt | string(16) | SR trading account |
133 | clientFirm | string(16) | SR client firm |
136 | spdrSource | enum : SpdrSource | from original parent order |
139 | groupingCode | long | from original parent order |
142 | strategy | string(36) | client-supplied strategy string;visible on SpiderRock GUI tools and other order reports. |
145 | userName | string(24) | name of the user entering the order |
148 | orderSide | enum : BuySell | |
151 | orderSize | int | maximum fill size (contracts) |
154 | firmType | enum : FirmType | used to override firmType in account config |
157 | orderCapacity | enum : OrderCapacity | |
160 | positionType | enum : PositionType | |
163 | ssaleFlag | enum : ShortSaleFlag | used to determine stock auto-hedge flags |
166 | locateQuan | int | available locate quantity (if selling short) |
169 | locateFirm | string(6) | firm granting the locate (also locate firm used on street FIX orders) |
172 | locatePool | string(16) | locate pool @ firm granting the locate |
175 | noCrossGroup | string(16) | |
178 | exchTraderId | string(16) | |
181 | largeTraderId | string(16) | |
184 | tradingLocation | string(16) | |
187 | hedgeSecKey | ExpiryKey | |
190 | hedgeSecType | enum : SpdrKeyType | |
193 | hedgeUnits | float | |
196 | userData1 | text1 | client supplied data field; passes through to parent and child executions and reports as well as FIX drops |
199 | userData2 | text1 | client supplied data field; passes through to parent and child executions and reports as well as FIX drops |
202 | childData | text1 | client supplied data field; passes through to down stream child orders |
205 | timestamp | DateTime |
REPEATING FIELDS
OrderLegs
Field | Type | Comment |
---|---|---|
211 | ticker | TickerKey |
214 | stockSide | enum : BuySell |
217 | stockShares | int |
220 | stockLegId | long |
223 | altStkLegId | string(24) |
226 | ssaleFlag | enum : ShortSaleFlag |
229 | numLegs | byte |
232 | secKey1 | OptionKey |
235 | secType1 | enum : SpdrKeyType |
238 | mult1 | ushort |
241 | side1 | enum : BuySell |
244 | legId1 | long |
247 | altLegId1 | string(24) |
250 | posType1 | enum : PositionType |
253 | ssaleFlag1 | enum : ShortSaleFlag |
256 | secKey2 | OptionKey |
259 | secType2 | enum : SpdrKeyType |
262 | mult2 | ushort |
265 | side2 | enum : BuySell |
268 | legId2 | long |
271 | altLegId2 | string(24) |
274 | posType2 | enum : PositionType |
277 | ssaleFlag2 | enum : ShortSaleFlag |
280 | secKey3 | OptionKey |
283 | secType3 | enum : SpdrKeyType |
286 | mult3 | ushort |
289 | side3 | enum : BuySell |
292 | legId3 | long |
295 | altLegId3 | string(24) |
298 | posType3 | enum : PositionType |
301 | ssaleFlag3 | enum : ShortSaleFlag |
304 | secKey4 | OptionKey |
307 | secType4 | enum : SpdrKeyType |
310 | mult4 | ushort |
313 | side4 | enum : BuySell |
316 | legId4 | long |
319 | altLegId4 | string(24) |
322 | posType4 | enum : PositionType |
325 | ssaleFlag4 | enum : ShortSaleFlag |
328 | secKey5 | OptionKey |
331 | secType5 | enum : SpdrKeyType |
334 | mult5 | ushort |
337 | side5 | enum : BuySell |
340 | legId5 | long |
343 | altLegId5 | string(24) |
346 | posType5 | enum : PositionType |
349 | ssaleFlag5 | enum : ShortSaleFlag |
352 | secKey6 | OptionKey |
355 | secType6 | enum : SpdrKeyType |
358 | mult6 | ushort |
361 | side6 | enum : BuySell |
364 | legId6 | long |
367 | altLegId6 | string(24) |
370 | posType6 | enum : PositionType |
373 | ssaleFlag6 | enum : ShortSaleFlag |
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 = 'SpdrParentReviewRequest'
# 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=SpdrParentReviewRequest'
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 = 'SpdrParentReviewRequest'
# 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 = 'sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|strategy|userName|orderSide|orderSize|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|noCrossGroup|exchTraderId|largeTraderId|tradingLocation|hedgeSecKey|hedgeSecType|hedgeUnits|userData1|userData2|childData|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 = 'altOrderId: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=SpdrParentReviewRequest' \
--data-urlencode 'view=sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|strategy|userName|orderSide|orderSize|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|noCrossGroup|exchTraderId|largeTraderId|tradingLocation|hedgeSecKey|hedgeSecType|hedgeUnits|userData1|userData2|childData|timestamp' \
--data-urlencode 'where=altOrderId: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 = 'SpdrParentReviewRequest'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|strategy|userName|orderSide|orderSize|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|noCrossGroup|exchTraderId|largeTraderId|tradingLocation|hedgeSecKey|hedgeSecType|hedgeUnits|userData1|userData2|childData|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 = 'altOrderId: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 = 'sysEnvironment: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=SpdrParentReviewRequest' \
--data-urlencode 'view=sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|strategy|userName|orderSide|orderSize|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|noCrossGroup|exchTraderId|largeTraderId|tradingLocation|hedgeSecKey|hedgeSecType|hedgeUnits|userData1|userData2|childData|timestamp' \
--data-urlencode 'where=altOrderId:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=sysEnvironment: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 = 'SpdrParentReviewRequest'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|strategy|userName|orderSide|orderSize|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|noCrossGroup|exchTraderId|largeTraderId|tradingLocation|hedgeSecKey|hedgeSecType|hedgeUnits|userData1|userData2|childData|timestamp'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'sysEnvironment|runStatus|parentShape|secType|spdrSource|orderSide|firmType|orderCapacity|positionType|ssaleFlag|hedgeSecType'
# 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 = 'altOrderId: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=SpdrParentReviewRequest' \
--data-urlencode 'measure=sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|strategy|userName|orderSide|orderSize|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|noCrossGroup|exchTraderId|largeTraderId|tradingLocation|hedgeSecKey|hedgeSecType|hedgeUnits|userData1|userData2|childData|timestamp' \
--data-urlencode 'group=sysEnvironment|runStatus|parentShape|secType|spdrSource|orderSide|firmType|orderCapacity|positionType|ssaleFlag|hedgeSecType' \
--data-urlencode 'where=altOrderId: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 = 'SpdrParentReviewRequest'
# 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 = 'altOrderId: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=SpdrParentReviewRequest' \
--data-urlencode 'where=altOrderId:eq:ExampleString'