Schema: SpdrParentReviewResponse (ID: 4200)
SpdrParentReviewResponse records are created when a parent order review request is completed
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 | clientClOrdId | string(24) | client ClOrdId (if handled by ClientGateway) |
145 | srcRoutingCode | string(65) | RoutingCode (if handled by ClientGateway) |
148 | strategy | string(36) | client-supplied strategy string;visible on SpiderRock GUI tools and other order reports. |
151 | userName | string(24) | name of the user entering the order |
154 | orderSide | enum : BuySell | |
157 | orderSize | int | maximum fill size (contracts) [can be less than requested] |
160 | orderActiveSize | int | |
163 | reviewResult | enum : ReviewResult | |
166 | reviewText | text1 | review release / reject text (will be showed to the user submitting the parent order) |
169 | responseSpdrSource | enum : SpdrSource | source of the response (SRSE, FIX, etc) |
172 | responseClOrdId | string(24) | review request / response clOrdID (if any) |
175 | responseOrigClOrdId | string(24) | review request / response orig clOrdID |
178 | responseCancelClOrdId | string(24) | review request / response cancel clOrdID |
181 | firmType | enum : FirmType | will override firmType on the original parent order (if != None) |
184 | orderCapacity | enum : OrderCapacity | will override orderCapacity on the original parent order (if != None) |
187 | positionType | enum : PositionType | will override positionType on the original parent order (if != None) |
190 | ssaleFlag | enum : ShortSaleFlag | will override ssaleFlag on the original parent order (if != None) |
193 | locateQuan | int | locate quantity |
196 | locateFirm | string(6) | locate firm |
199 | locatePool | string(16) | locate pool @ firm granting the locate |
202 | userData1 | text1 | will override value on original parent order (if != null) |
205 | userData2 | text1 | will override value on the original parent order (if != null) |
208 | childData | text1 | will override value on the original parent order (if != null) |
211 | timestamp | DateTime |
REPEATING FIELDS
OrderLegs
Field | Type | Comment |
---|---|---|
217 | ticker | TickerKey |
220 | stockSide | enum : BuySell |
223 | stockShares | int |
226 | ssaleFlag | enum : ShortSaleFlag |
229 | reviewStkLegId | string(24) |
232 | reviewStkLegAltId | string(24) |
235 | numLegs | byte |
238 | secKey1 | OptionKey |
241 | secType1 | enum : SpdrKeyType |
244 | mult1 | ushort |
247 | side1 | enum : BuySell |
250 | posType1 | enum : PositionType |
253 | ssaleFlag1 | enum : ShortSaleFlag |
256 | reviewLegId1 | string(24) |
259 | reviewLegAltId1 | string(24) |
262 | secKey2 | OptionKey |
265 | secType2 | enum : SpdrKeyType |
268 | mult2 | ushort |
271 | side2 | enum : BuySell |
274 | posType2 | enum : PositionType |
277 | ssaleFlag2 | enum : ShortSaleFlag |
280 | reviewLegId2 | string(24) |
283 | reviewLegAltId2 | string(24) |
286 | secKey3 | OptionKey |
289 | secType3 | enum : SpdrKeyType |
292 | mult3 | ushort |
295 | side3 | enum : BuySell |
298 | posType3 | enum : PositionType |
301 | ssaleFlag3 | enum : ShortSaleFlag |
304 | reviewLegId3 | string(24) |
307 | reviewLegAltId3 | string(24) |
310 | secKey4 | OptionKey |
313 | secType4 | enum : SpdrKeyType |
316 | mult4 | ushort |
319 | side4 | enum : BuySell |
322 | posType4 | enum : PositionType |
325 | ssaleFlag4 | enum : ShortSaleFlag |
328 | reviewLegId4 | string(24) |
331 | reviewLegAltId4 | string(24) |
334 | secKey5 | OptionKey |
337 | secType5 | enum : SpdrKeyType |
340 | mult5 | ushort |
343 | side5 | enum : BuySell |
346 | posType5 | enum : PositionType |
349 | ssaleFlag5 | enum : ShortSaleFlag |
352 | reviewLegId5 | string(24) |
355 | reviewLegAltId5 | string(24) |
358 | secKey6 | OptionKey |
361 | secType6 | enum : SpdrKeyType |
364 | mult6 | ushort |
367 | side6 | enum : BuySell |
370 | posType6 | enum : PositionType |
373 | ssaleFlag6 | enum : ShortSaleFlag |
376 | reviewLegId6 | string(24) |
379 | reviewLegAltId6 | string(24) |
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 = 'SpdrParentReviewResponse'
# 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=SpdrParentReviewResponse'
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 = 'SpdrParentReviewResponse'
# 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|clientClOrdId|srcRoutingCode|strategy|userName|orderSide|orderSize|orderActiveSize|reviewResult|reviewText|responseSpdrSource|responseClOrdId|responseOrigClOrdId|responseCancelClOrdId|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|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=SpdrParentReviewResponse' \
--data-urlencode 'view=sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|clientClOrdId|srcRoutingCode|strategy|userName|orderSide|orderSize|orderActiveSize|reviewResult|reviewText|responseSpdrSource|responseClOrdId|responseOrigClOrdId|responseCancelClOrdId|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|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 = 'SpdrParentReviewResponse'
# 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|clientClOrdId|srcRoutingCode|strategy|userName|orderSide|orderSize|orderActiveSize|reviewResult|reviewText|responseSpdrSource|responseClOrdId|responseOrigClOrdId|responseCancelClOrdId|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|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=SpdrParentReviewResponse' \
--data-urlencode 'view=sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|clientClOrdId|srcRoutingCode|strategy|userName|orderSide|orderSize|orderActiveSize|reviewResult|reviewText|responseSpdrSource|responseClOrdId|responseOrigClOrdId|responseCancelClOrdId|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|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 = 'SpdrParentReviewResponse'
# 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|clientClOrdId|srcRoutingCode|strategy|userName|orderSide|orderSize|orderActiveSize|reviewResult|reviewText|responseSpdrSource|responseClOrdId|responseOrigClOrdId|responseCancelClOrdId|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|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|reviewResult|responseSpdrSource|firmType|orderCapacity|positionType|ssaleFlag'
# 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=SpdrParentReviewResponse' \
--data-urlencode 'measure=sysEnvironment|runStatus|parentShape|altOrderId|altPrevOrderId|altAccnt|altUserName|secKey|secType|securityDesc|accnt|clientFirm|spdrSource|groupingCode|clientClOrdId|srcRoutingCode|strategy|userName|orderSide|orderSize|orderActiveSize|reviewResult|reviewText|responseSpdrSource|responseClOrdId|responseOrigClOrdId|responseCancelClOrdId|firmType|orderCapacity|positionType|ssaleFlag|locateQuan|locateFirm|locatePool|userData1|userData2|childData|timestamp' \
--data-urlencode 'group=sysEnvironment|runStatus|parentShape|secType|spdrSource|orderSide|reviewResult|responseSpdrSource|firmType|orderCapacity|positionType|ssaleFlag' \
--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 = 'SpdrParentReviewResponse'
# 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=SpdrParentReviewResponse' \
--data-urlencode 'where=altOrderId:eq:ExampleString'