Schema: TraceAccntRoutesResult (ID: 1923)
METADATA
| Attribute | Value |
|---|---|
| Topic | 1800-client-config |
| MLink Token | ClientConfig |
| SRSE Product |
Note: The symbol
=next to a field number indicates that it is a primary key.
BODY
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 10= | trace_Job | long | ||
| 11= | trace_Number | int | ||
| 100 | requestID | long | reflected from TraceAccntRoutes request | |
| 101 | userName | string(24) | user requesting the route trace | |
| 102 | timestamp | DateTime | event create timestamp | |
| 103 | accnt | string(16) | ||
| 104 | clientFirm | string(16) | ||
| 105 | ticker | TickerKey | ||
| 106 | secType | enum : SpdrKeyType | ||
| 107 | trace_Type | enum : TraceType | ||
| 108 | trace_ExecBrkrCode | string(16) | ||
| 109 | trace_RouteExDest | string(16) | ||
| 110 | trace_MktSession | flag : MktSessionFlag | specific market session(s) to trace (default is regular market session) | |
| 111 | trace_ExternExDest | string(16) | pOrder.externExDest | |
| 112 | eeTraceCat | enum : EETraceCat | ||
| 113 | exDest | string(16) | ||
| 114 | exDest2 | string(16) | ||
| 115 | execBrkrCode | string(16) | execBrkrCode we are tracing | |
| 116 | results | text1 | trace line result | |
| 117 | otherComments | text1 | ||
| 118 | deliveryStatus | text2 | delivery instruction(s) status | |
| 119 | execEngine_Name | string(32) | ||
| 120 | execEngine_State | enum : AutoEngineState | ||
| 121 | AC_AccountStatus | text1 | SR account type (omnibus accounts are expected to be flat at the end of the day) | |
| 122 | AC_AccntName | text1 | account name | |
| 123 | AEG_Key | string(32) | exchGroup/secType | |
| 124 | AEG_RouteAllocRule | enum : RouteAllocRule | ||
| 125 | AEGI_RouteEntry | text1 | ||
| 126 | ARC_ClientCoding | text1 | ||
| 127 | ARC_RoutingRule | enum : RoutingRule | ||
| 128 | ARC_RoutePos | string(8) | ||
| 129 | ARC_ExternParams | text1 | pass through params (must be understood by end point handler) usually [tag=value;tag=value;tag=value] | |
| 130 | ARC_ExecBrkrCoding | text1 | exec broker account (supplied by exec broker) (usually Account<1>) | |
| 131 | ARC_ClrFlipExDest | string(16) | exchange (eg. CBOEOPT, NMSSTK, CMXNIGHTHAWK) | |
| 132 | ARC_ClrFlipCoding | text1 | type of clearing corp delivery | |
| 133 | ARC_ClrFlipBrkrMPID | string(8) | clearing broker MPID (forwarded option exchanges for the equity leg of MLegTied orders) | |
| 134 | ARCI_RoutingCode | string(65) | routing session code (is a RouteDefinition.pkey.routingCode) [RouteDefinition.execBrkrCode must match execBrkrCode] | |
| 135 | RD_Connection | text1 | ||
| 136 | RD_TemplateName | string(32) | name of FixMsgTemplate (rewrite template) used for this session (if any) | |
| 137 | RD_DeliveryCoding | enum : DeliveryCoding | (street side routes only) indicates what style of delivery instruction coding this session utilizes (coding is implemented inside each template) | |
| 138 | RD_SessionGiveupFirm | string(4) | primary (default) session giveup/clearing firm (eg. 659) | |
| 139 | RD_Status | text2 | current (live) route session status (from the EE's perspective) | |
| 140 | RDI_ExDest | string(16) | exchange (eg. CBOEOPT, NMSSTK, CMXNIGHTHAWK) | |
| 141 | RDI_TickerList | string(64) | ||
| 142 | RDI_TradingPeriod | enum : TradingPeriod | only required if this exDest has more specific trading hours that ticker -> tickerDefinition -> tradingHours | |
| 143 | RDI_MsgRate | int | maximum message rate per second for this route (<= zero nothing low priority will be routed to this exDest) | |
| 144 | RDI_SecType | flag : SecTypeFlag | Tied = MLeg w/Stock | |
| 145 | RDI_OrderEntry | enum : YesNo | can handle normal order entry messages | |
| 146 | RDI_ActiveMaker | enum : YesNo | can handle active making (ActiveMaker algo) order entry messages | |
| 147 | RDI_MktSession | flag : MktSessionFlag | ||
| 148 | RDI_MktAuction | enum : YesNo | can handle exchange SOD/EOD (eg. MarketOnClose) auctions | |
| 149 | RDI_CrossHandling | flag : CrossHandlingFlag | ||
| 150 | RDI_CrossAttributes | flag : CrossAttrFlag | can process ISO crosses; can instruct exDest to sweep away markets; can accept allocation inst on cross order; can cross FLEX options | |
| 151 | RDI_OtherMsgs | flag : OtherMsgFlag | ||
| 152 | RDI_StageReview | enum : YesNo |
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 = 'TraceAccntRoutesResult'
# 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=TraceAccntRoutesResult'
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 = 'TraceAccntRoutesResult'
# 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 = 'requestID|userName|timestamp|accnt|clientFirm|ticker|secType|trace_Type|trace_ExecBrkrCode|trace_RouteExDest|trace_MktSession|trace_ExternExDest|eeTraceCat|exDest|exDest2|execBrkrCode|results|otherComments|deliveryStatus|execEngine_Name|execEngine_State|AC_AccountStatus|AC_AccntName|AEG_Key|AEG_RouteAllocRule|AEGI_RouteEntry|ARC_ClientCoding|ARC_RoutingRule|ARC_RoutePos|ARC_ExternParams|ARC_ExecBrkrCoding|ARC_ClrFlipExDest|ARC_ClrFlipCoding|ARC_ClrFlipBrkrMPID|ARCI_RoutingCode|RD_Connection|RD_TemplateName|RD_DeliveryCoding|RD_SessionGiveupFirm|RD_Status|RDI_ExDest|RDI_TickerList|RDI_TradingPeriod|RDI_MsgRate|RDI_SecType|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktSession|RDI_MktAuction|RDI_CrossHandling|RDI_CrossAttributes|RDI_OtherMsgs|RDI_StageReview'
# 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 = 'userName: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=TraceAccntRoutesResult' \
--data-urlencode 'view=requestID|userName|timestamp|accnt|clientFirm|ticker|secType|trace_Type|trace_ExecBrkrCode|trace_RouteExDest|trace_MktSession|trace_ExternExDest|eeTraceCat|exDest|exDest2|execBrkrCode|results|otherComments|deliveryStatus|execEngine_Name|execEngine_State|AC_AccountStatus|AC_AccntName|AEG_Key|AEG_RouteAllocRule|AEGI_RouteEntry|ARC_ClientCoding|ARC_RoutingRule|ARC_RoutePos|ARC_ExternParams|ARC_ExecBrkrCoding|ARC_ClrFlipExDest|ARC_ClrFlipCoding|ARC_ClrFlipBrkrMPID|ARCI_RoutingCode|RD_Connection|RD_TemplateName|RD_DeliveryCoding|RD_SessionGiveupFirm|RD_Status|RDI_ExDest|RDI_TickerList|RDI_TradingPeriod|RDI_MsgRate|RDI_SecType|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktSession|RDI_MktAuction|RDI_CrossHandling|RDI_CrossAttributes|RDI_OtherMsgs|RDI_StageReview' \
--data-urlencode 'where=userName: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 = 'TraceAccntRoutesResult'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'requestID|userName|timestamp|accnt|clientFirm|ticker|secType|trace_Type|trace_ExecBrkrCode|trace_RouteExDest|trace_MktSession|trace_ExternExDest|eeTraceCat|exDest|exDest2|execBrkrCode|results|otherComments|deliveryStatus|execEngine_Name|execEngine_State|AC_AccountStatus|AC_AccntName|AEG_Key|AEG_RouteAllocRule|AEGI_RouteEntry|ARC_ClientCoding|ARC_RoutingRule|ARC_RoutePos|ARC_ExternParams|ARC_ExecBrkrCoding|ARC_ClrFlipExDest|ARC_ClrFlipCoding|ARC_ClrFlipBrkrMPID|ARCI_RoutingCode|RD_Connection|RD_TemplateName|RD_DeliveryCoding|RD_SessionGiveupFirm|RD_Status|RDI_ExDest|RDI_TickerList|RDI_TradingPeriod|RDI_MsgRate|RDI_SecType|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktSession|RDI_MktAuction|RDI_CrossHandling|RDI_CrossAttributes|RDI_OtherMsgs|RDI_StageReview'
# 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 = 'userName: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 = 'requestID: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=TraceAccntRoutesResult' \
--data-urlencode 'view=requestID|userName|timestamp|accnt|clientFirm|ticker|secType|trace_Type|trace_ExecBrkrCode|trace_RouteExDest|trace_MktSession|trace_ExternExDest|eeTraceCat|exDest|exDest2|execBrkrCode|results|otherComments|deliveryStatus|execEngine_Name|execEngine_State|AC_AccountStatus|AC_AccntName|AEG_Key|AEG_RouteAllocRule|AEGI_RouteEntry|ARC_ClientCoding|ARC_RoutingRule|ARC_RoutePos|ARC_ExternParams|ARC_ExecBrkrCoding|ARC_ClrFlipExDest|ARC_ClrFlipCoding|ARC_ClrFlipBrkrMPID|ARCI_RoutingCode|RD_Connection|RD_TemplateName|RD_DeliveryCoding|RD_SessionGiveupFirm|RD_Status|RDI_ExDest|RDI_TickerList|RDI_TradingPeriod|RDI_MsgRate|RDI_SecType|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktSession|RDI_MktAuction|RDI_CrossHandling|RDI_CrossAttributes|RDI_OtherMsgs|RDI_StageReview' \
--data-urlencode 'where=userName:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=requestID: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 = 'TraceAccntRoutesResult'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'requestID|userName|timestamp|accnt|clientFirm|ticker|secType|trace_Type|trace_ExecBrkrCode|trace_RouteExDest|trace_MktSession|trace_ExternExDest|eeTraceCat|exDest|exDest2|execBrkrCode|results|otherComments|deliveryStatus|execEngine_Name|execEngine_State|AC_AccountStatus|AC_AccntName|AEG_Key|AEG_RouteAllocRule|AEGI_RouteEntry|ARC_ClientCoding|ARC_RoutingRule|ARC_RoutePos|ARC_ExternParams|ARC_ExecBrkrCoding|ARC_ClrFlipExDest|ARC_ClrFlipCoding|ARC_ClrFlipBrkrMPID|ARCI_RoutingCode|RD_Connection|RD_TemplateName|RD_DeliveryCoding|RD_SessionGiveupFirm|RD_Status|RDI_ExDest|RDI_TickerList|RDI_TradingPeriod|RDI_MsgRate|RDI_SecType|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktSession|RDI_MktAuction|RDI_CrossHandling|RDI_CrossAttributes|RDI_OtherMsgs|RDI_StageReview'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'secType|trace_Type|eeTraceCat|execEngine_State|AEG_RouteAllocRule|ARC_RoutingRule|RD_DeliveryCoding|RDI_TradingPeriod|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktAuction|RDI_StageReview'
# 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 = 'userName: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=TraceAccntRoutesResult' \
--data-urlencode 'measure=requestID|userName|timestamp|accnt|clientFirm|ticker|secType|trace_Type|trace_ExecBrkrCode|trace_RouteExDest|trace_MktSession|trace_ExternExDest|eeTraceCat|exDest|exDest2|execBrkrCode|results|otherComments|deliveryStatus|execEngine_Name|execEngine_State|AC_AccountStatus|AC_AccntName|AEG_Key|AEG_RouteAllocRule|AEGI_RouteEntry|ARC_ClientCoding|ARC_RoutingRule|ARC_RoutePos|ARC_ExternParams|ARC_ExecBrkrCoding|ARC_ClrFlipExDest|ARC_ClrFlipCoding|ARC_ClrFlipBrkrMPID|ARCI_RoutingCode|RD_Connection|RD_TemplateName|RD_DeliveryCoding|RD_SessionGiveupFirm|RD_Status|RDI_ExDest|RDI_TickerList|RDI_TradingPeriod|RDI_MsgRate|RDI_SecType|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktSession|RDI_MktAuction|RDI_CrossHandling|RDI_CrossAttributes|RDI_OtherMsgs|RDI_StageReview' \
--data-urlencode 'group=secType|trace_Type|eeTraceCat|execEngine_State|AEG_RouteAllocRule|ARC_RoutingRule|RD_DeliveryCoding|RDI_TradingPeriod|RDI_OrderEntry|RDI_ActiveMaker|RDI_MktAuction|RDI_StageReview' \
--data-urlencode 'where=userName: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 = 'TraceAccntRoutesResult'
# 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 = 'userName: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=TraceAccntRoutesResult' \
--data-urlencode 'where=userName:eq:ExampleString'