Schema: FutOrderGateway (ID: 5150)
METADATA
| Attribute | Value |
|---|---|
| Topic | 5120-srse-gateway |
| MLink Token | Internal |
| MLink Endpoint | MLink-Live |
| SRSE Product | SRTrade |
Note: The symbol
=next to a field number indicates that it is a primary key.
BODY
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 10= | fkey | ExpiryKey | ||
| 11= | accnt | string(16) | SR Account (default = primary account associated with SRSE login) | |
| 12= | orderSide | enum : BuySell | Order side. Values: Buy/Sell. | |
| 13= | groupingCode | long | Client supplied order | |
| 14= | clientFirm | string(16) | ||
| 103 | spdrActionType | enum : SpdrActionType | AddReplace | [Add (new order), AddReplace (add or replace order), Cancel (cxl existing), Replace (update existing only), Release (modify order active size)] |
| 106 | altOrderId | string(24) | Alternate client order ID. This order ID will be copied to all execution reports. | |
| 109 | altAccnt | string(32) | alternate (client assigned) "long" account string (optional) [used to map between client and SR account strings] | |
| 112 | altUserName | string(24) | alternate (client assigned) user name (optional) [used to map between client and SR account strings] | |
| 385 | execBrkrCode | string(16) | (optional) override the default execBrkrCode for this order | |
| 386 | externExDest | string(16) | routing code for orders directed to an external order router (default = null); should match FixRoutingTable.destination (in SR accnt config) | |
| 121 | externParams | text1 | external algo names/parameters (usually just an algo name) | |
| 124 | strategy | string(36) | Client strategy string. This value will appear on the SR Trade Monitor and in execution reports. | |
| 387 | strategyAccnt | string(16) | SR strategy account (option; if exists will be validated) | |
| 388 | visibleInSV | enum : YesNo | allow order to be visible in SV (do not use for high volume of orders) | |
| 130 | orderDttm | DateTime | order entry time (from client;if any) | |
| 133 | orderSize | int | -1 | parent order size (contracts) [-1 = no change;used when spdrActionType=Release] |
| 136 | orderActiveSize | int | -1 | total activated size (total size released for execution) (-1 = all size available; 0 = staged/locked order) |
| 139 | addCumFillQuantity | enum : YesNo | No | If Yes then OrderSize is calculated @ order arrival as requested OrderSize + existing 'CumFillQuantity'. |
| 142 | maxExposureSize | int | -1 | maximum simultaneous cumulative child order public size exposure (-1 = orderActiveSize) [order can overfill if > orderActiveSize and numMakeExchanges > 1] |
| 145 | numMakeExchanges | byte | 1 | number of exchanges (1 - 4) on which to publish public making orders. Effective number might be less than requested number if sufficient exchanges are not available. |
| 148 | publicSize | enum : PublicSizeHandling | None | public order size handling: None=use default size handling (usually limits public size to 'typical' market size); Randomize=randomize public size; MktSize=expose only 'typical' market size; FullSize=expose entire order size where possible |
| 151 | randomizeSize | enum : YesNo | Yes | randomize public order size |
| 154 | canOverlapCxlRepl | enum : YesNo | No | can execution engines overlap cancel/replace operations [order can overfill if YES] (at most one active overlapping cxl/replace operation for each parent order) |
| 157 | progressRule | enum : ProgressRule | None | None = all size immediately available;TWAP = size released in time intervals;VWAP = size released in volume intervals; |
| 605 | progressCatchUpRule | enum : ProgressCatchUpRule | None | late-arrival catch-up handling; None = Immediate |
| 160 | twapSliceCnt | byte | 0 | [ProgressSliceCnt] number of progress slices to use. if none given will compute based on active size and duration. [max 20] |
| 163 | progressExposeTime | int | 0 | minimum time (secs) to expose order (0 = no minimum; used to guarantee that the order is exposed at mid-market for some time before actively taking) |
| 166 | vwapParticipation | float | 0.10 | target vwap participation rate (target % of trade activity) |
| 169 | auctionResponder | enum : AuctionResponder | None | if set, parent order can be an auction responder |
| 172 | triggerType | enum : TriggerType | None | type of trigger (PrintVol/SurfVol only for options) [print = print or actionable quote] |
| 175 | triggerLevel | float | 0 | stop/trigger price for parent order to go active |
| 178 | cxlUPrcRange | enum : UPrcCxl | None | cancel parent order if/when outside min/max uPrc range [_Halt = also cancel if the security/underlier has been halted] |
| 181 | minUBid | float | 0 | [optional] |
| 184 | maxUAsk | float | 0 | [optional] (< $0.01 = none) |
| 187 | minMaxType | enum : MinMaxType | Prc | if Prc minUBid/maxUAsk are expressed as prices; if Pct then they are expresses as pct change since parent order arrival |
| 190 | maxChildOrders | int | 1000 | maximum number of child orders that can be generated by this parent order [order will terminate if/when this cap is reached;zero or neg = unlimited] |
| 193 | spdrStageType | enum : SpdrStageType | None | SizeLock = stage pending modification (can reduce size); SizeModify = stage pending modification (can increase/reduce size) |
| 377 | marketSession | enum : MarketSession | RegMkt | |
| 199 | startDttm | DateTime | 2000-01-01 | [optional] (parent order start time) |
| 202 | orderDuration | int | -1 | [optional] (number of seconds) |
| 378 | activeDuration | int | -1 | |
| 205 | goodTillDttm | DateTime | 2000-01-01 | [optional] (default: 2000-01-01) |
| 208 | startType | enum : StartType | None | [WaitTrigger] |
| 214 | parentOrderHandling | enum : ParentOrderHandling | ActiveTaker | |
| 217 | parentBalanceHandling | enum : ParentBalanceHandling | PostLimit | |
| 220 | orderLimitType | enum : SpdrLimitType | Market | Various (Market, Prc, etc.); establishes the primary LimitPrice for a parent order |
| 223 | takeLimitClass | enum : SpdrLimitClass | Simple | Simple = LimitPrice, Probability = BEST(LimitPrice, ProbLimit) |
| 226 | makeLimitClass | enum : SpdrLimitClass | Simple | Simple = LimitPrice, Probability = BEST(LimitPrice, ProbLimit) |
| 229 | takeReachRule | enum : ReachRule | None = reach room immediately available; Delayed = available after [1-3] seconds; Passive = available if contra side aggresses; WeakOnly = only take if available size < avgMarketSize; ISOSweep = Intermarket Sweep [requires WaitTrigger] | |
| 232 | orderPrcLimit | double | 0 | Applies if LimitType = Prc[] |
| 235 | orderPrcOffset | double | 0 | default=0 |
| 238 | takeAlphaType | enum : AlphaType | None | Applies if takeLimitClass = Probability |
| 241 | makeAlphaType | enum : AlphaType | None | Applies if makeLimitClass = Probability |
| 244 | takeAlphaFactor | float | 0 | [-2,+2] takeProbLimit = MAX(takeProbability, takeProbAvg + takeAlphaFactor * takeProbStd) [if takeAlphaType = Relative] |
| 247 | makeAlphaFactor | float | 0 | [-2,+2] makeProbLimit = MAX(makeProbability, makeProbAvg + makeAlphaFactor * makeProbStd) [if makeAlphaType = Relative] |
| 250 | takeProbability | float | 0 | takeProbLimit = takeProbability [if takeAlphaType = Static] |
| 253 | makeProbability | float | 0 | makeProbLimit = makeProbability [if makeAlphaType = Static] |
| 256 | autoHedge | enum : AutoHedge | None | |
| 259 | hedgeSecKey | ExpiryKey | -EQT-NMS-1900-01-01 | auto-hedge instrument (either TickerKey or ExpiryKey) [hedgeSecKey cannot equal order.FKey] |
| 262 | hedgeSecType | enum : SpdrKeyType | None | None, Stock, or Future |
| 265 | hedgeBetaRatio | float | 1.0 | Portion of executed $money to auto-hedge (can be 1.0 / Beta for beta hedging) [-4.0 to +4.0] (note: 0.0 will be interpreted as 1.0) |
| 268 | hedgeScope | enum : HedgeScope | RiskGroup | Auto-hedge at the RiskGroup or Accnt level |
| 379 | hedgeSession | enum : MarketSession | RegMkt | |
| 274 | positionType | enum : PositionType | Auto | |
| 277 | riskGroupId | long | 0 | All group (grp) risk limits below are relative to this riskGroupId. Default: 0 (none). Required to be non-zero if autoHedge is something other than None. |
| 380 | reqAuxRiskGroupCtrl | enum : YesNo | ||
| 381 | symDayDDeltaOffset | float | 0 | max acct+symbol day $delta offset (target) |
| 316 | maxSymDayDDeltaLn | float | -1 | max acct+symbol day $delta long (positive number;-1=no limit);risk limit = max limit - (current net counter - offset) |
| 319 | maxSymDayDDeltaSh | float | -1 | max acct+symbol day $delta short (positive number;-1=no limit);risk limit = max limit + (current net counter - offset) |
| 599 | maxAccDayWtVegaLn | float | -1 | max accnt day (time weighted) vega long (positive number;-1=no limit);risk limit = max limit - (current net counter - offset) |
| 600 | maxAccDayWtVegaSh | float | -1 | max accnt day (time weighted) vega short (positive number;-1=no limit);risk limit = max limit + (current net counter - offset) |
| 601 | accDayWtVegaOffset | float | 0 | accnt day (time weighted) vega offset (target position) |
| 602 | maxAccDayDDeltaLn | float | -1 | max accnt day $delta long (positive number;-1=no limit);risk limit = max limit - (current net counter - offset) |
| 603 | maxAccDayDDeltaSh | float | -1 | max accnt day $delta short (positive number;-1=no limit);risk limit = max limit + (current net counter - offset) |
| 604 | accDayDDeltaOffset | float | 0 | accnt day $delta offset (target position) |
| 322 | maxGrpDayDDeltaLn | float | -1 | max acct+riskGroup day $delta long (positive number;-1=no limit);risk limit = max limit - current net counter |
| 325 | maxGrpDayDDeltaSh | float | -1 | max acct+riskGroup day $delta short (positive number;-1=no limit);risk limit = max limit + current net counter |
| 382 | maxGrpDayContractsLn | int | -1 | max acct+riskGroup day opt contracts long (positive number;-1=no limit);risk limit = max limit - current net counter |
| 383 | maxGrpDayContractsSh | int | -1 | max acct+riskGroup day opt contracts short (positive number;-1=no limit);risk limit = max limit + current net counter |
| 384 | maxGrpDayContractsAbs | int | -1 | max acct+riskGroup day opt contracts abs (positive number;-1=no limit);risk limit = max limit - abs(current net counter) |
| 389 | maxGrpDayFutContractsLn | int | -1 | max acct+riskGroup day fut contracts long (positive number;-1=no limit);risk limit = max limit - current net counter |
| 390 | maxGrpDayFutContractsSh | int | -1 | max acct+riskGroup day fut contracts short (positive number;-1=no limit);risk limit = max limit + current net counter |
| 391 | maxGrpDayFutContractsAbs | int | -1 | max acct+riskGroup day fut contracts abs (positive number;-1=no limit);risk limit = max limit - abs(current net counter) |
| 328 | maxGrpDayRMetric1Ln | float | -1 | max acct+riskGroup day rMetric1 long (positive number;-1=no limit);risk limit = max limit - current net counter |
| 331 | maxGrpDayRMetric1Sh | float | -1 | max acct+riskGroup day rMetric1 short (positive number;-1=no limit);risk limit = max limit + current net counter |
| 334 | maxGrpDayRMetric1Abs | float | -1 | max acct+riskGroup day rMetric1 abs (positive number;-1=no limit);risk limit = max limit - abs(current net counter) |
| 337 | grpDayRMetric1Ratio | float | 1.0 | target bot / sld ratio (eg ratio=0.5 means that neutral is bot rMetric1 = 0.5x sld rMetric1) |
| 364 | traderName | string(32) | Name of the trader associated with the order | |
| 367 | userData1 | text1 | client supplied data field; passes through to parent and child executions and reports as well as FIX drops | |
| 370 | userData2 | text1 | client supplied data field; passes through to parent and child executions and reports as well as FIX drops | |
| 373 | childData | text1 | client supplied data field; passes through to down stream child orders | |
| 376 | checksum | byte | Must be set to 13. This helps detect some column/value misalignments. | |
| 608 | altLimitType | enum : AltLimitType | None | None = no alt limit; Prc = static price |
| 611 | altPrcLimit | double | 0 | Applies if altLimitType = Prc |
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 = 'FutOrderGateway'
# 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=FutOrderGateway'
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 = 'FutOrderGateway'
# 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 = 'spdrActionType|altOrderId|altAccnt|altUserName|execBrkrCode|externExDest|externParams|strategy|strategyAccnt|visibleInSV|orderDttm|orderSize|orderActiveSize|addCumFillQuantity|maxExposureSize|numMakeExchanges|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|twapSliceCnt|progressExposeTime|vwapParticipation|auctionResponder|triggerType|triggerLevel|cxlUPrcRange|minUBid|maxUAsk|minMaxType|maxChildOrders|spdrStageType|marketSession|startDttm|orderDuration|activeDuration|goodTillDttm|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|orderPrcLimit|orderPrcOffset|takeAlphaType|makeAlphaType|takeAlphaFactor|makeAlphaFactor|takeProbability|makeProbability|autoHedge|hedgeSecKey|hedgeSecType|hedgeBetaRatio|hedgeScope|hedgeSession|positionType|riskGroupId|reqAuxRiskGroupCtrl|symDayDDeltaOffset|maxSymDayDDeltaLn|maxSymDayDDeltaSh|maxAccDayWtVegaLn|maxAccDayWtVegaSh|accDayWtVegaOffset|maxAccDayDDeltaLn|maxAccDayDDeltaSh|accDayDDeltaOffset|maxGrpDayDDeltaLn|maxGrpDayDDeltaSh|maxGrpDayContractsLn|maxGrpDayContractsSh|maxGrpDayContractsAbs|maxGrpDayFutContractsLn|maxGrpDayFutContractsSh|maxGrpDayFutContractsAbs|maxGrpDayRMetric1Ln|maxGrpDayRMetric1Sh|maxGrpDayRMetric1Abs|grpDayRMetric1Ratio|traderName|userData1|userData2|childData|checksum|altLimitType|altPrcLimit'
# 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 = 'accnt: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=FutOrderGateway' \
--data-urlencode 'view=spdrActionType|altOrderId|altAccnt|altUserName|execBrkrCode|externExDest|externParams|strategy|strategyAccnt|visibleInSV|orderDttm|orderSize|orderActiveSize|addCumFillQuantity|maxExposureSize|numMakeExchanges|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|twapSliceCnt|progressExposeTime|vwapParticipation|auctionResponder|triggerType|triggerLevel|cxlUPrcRange|minUBid|maxUAsk|minMaxType|maxChildOrders|spdrStageType|marketSession|startDttm|orderDuration|activeDuration|goodTillDttm|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|orderPrcLimit|orderPrcOffset|takeAlphaType|makeAlphaType|takeAlphaFactor|makeAlphaFactor|takeProbability|makeProbability|autoHedge|hedgeSecKey|hedgeSecType|hedgeBetaRatio|hedgeScope|hedgeSession|positionType|riskGroupId|reqAuxRiskGroupCtrl|symDayDDeltaOffset|maxSymDayDDeltaLn|maxSymDayDDeltaSh|maxAccDayWtVegaLn|maxAccDayWtVegaSh|accDayWtVegaOffset|maxAccDayDDeltaLn|maxAccDayDDeltaSh|accDayDDeltaOffset|maxGrpDayDDeltaLn|maxGrpDayDDeltaSh|maxGrpDayContractsLn|maxGrpDayContractsSh|maxGrpDayContractsAbs|maxGrpDayFutContractsLn|maxGrpDayFutContractsSh|maxGrpDayFutContractsAbs|maxGrpDayRMetric1Ln|maxGrpDayRMetric1Sh|maxGrpDayRMetric1Abs|grpDayRMetric1Ratio|traderName|userData1|userData2|childData|checksum|altLimitType|altPrcLimit' \
--data-urlencode 'where=accnt: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 = 'FutOrderGateway'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'spdrActionType|altOrderId|altAccnt|altUserName|execBrkrCode|externExDest|externParams|strategy|strategyAccnt|visibleInSV|orderDttm|orderSize|orderActiveSize|addCumFillQuantity|maxExposureSize|numMakeExchanges|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|twapSliceCnt|progressExposeTime|vwapParticipation|auctionResponder|triggerType|triggerLevel|cxlUPrcRange|minUBid|maxUAsk|minMaxType|maxChildOrders|spdrStageType|marketSession|startDttm|orderDuration|activeDuration|goodTillDttm|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|orderPrcLimit|orderPrcOffset|takeAlphaType|makeAlphaType|takeAlphaFactor|makeAlphaFactor|takeProbability|makeProbability|autoHedge|hedgeSecKey|hedgeSecType|hedgeBetaRatio|hedgeScope|hedgeSession|positionType|riskGroupId|reqAuxRiskGroupCtrl|symDayDDeltaOffset|maxSymDayDDeltaLn|maxSymDayDDeltaSh|maxAccDayWtVegaLn|maxAccDayWtVegaSh|accDayWtVegaOffset|maxAccDayDDeltaLn|maxAccDayDDeltaSh|accDayDDeltaOffset|maxGrpDayDDeltaLn|maxGrpDayDDeltaSh|maxGrpDayContractsLn|maxGrpDayContractsSh|maxGrpDayContractsAbs|maxGrpDayFutContractsLn|maxGrpDayFutContractsSh|maxGrpDayFutContractsAbs|maxGrpDayRMetric1Ln|maxGrpDayRMetric1Sh|maxGrpDayRMetric1Abs|grpDayRMetric1Ratio|traderName|userData1|userData2|childData|checksum|altLimitType|altPrcLimit'
# 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 = 'accnt: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 = 'spdrActionType: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=FutOrderGateway' \
--data-urlencode 'view=spdrActionType|altOrderId|altAccnt|altUserName|execBrkrCode|externExDest|externParams|strategy|strategyAccnt|visibleInSV|orderDttm|orderSize|orderActiveSize|addCumFillQuantity|maxExposureSize|numMakeExchanges|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|twapSliceCnt|progressExposeTime|vwapParticipation|auctionResponder|triggerType|triggerLevel|cxlUPrcRange|minUBid|maxUAsk|minMaxType|maxChildOrders|spdrStageType|marketSession|startDttm|orderDuration|activeDuration|goodTillDttm|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|orderPrcLimit|orderPrcOffset|takeAlphaType|makeAlphaType|takeAlphaFactor|makeAlphaFactor|takeProbability|makeProbability|autoHedge|hedgeSecKey|hedgeSecType|hedgeBetaRatio|hedgeScope|hedgeSession|positionType|riskGroupId|reqAuxRiskGroupCtrl|symDayDDeltaOffset|maxSymDayDDeltaLn|maxSymDayDDeltaSh|maxAccDayWtVegaLn|maxAccDayWtVegaSh|accDayWtVegaOffset|maxAccDayDDeltaLn|maxAccDayDDeltaSh|accDayDDeltaOffset|maxGrpDayDDeltaLn|maxGrpDayDDeltaSh|maxGrpDayContractsLn|maxGrpDayContractsSh|maxGrpDayContractsAbs|maxGrpDayFutContractsLn|maxGrpDayFutContractsSh|maxGrpDayFutContractsAbs|maxGrpDayRMetric1Ln|maxGrpDayRMetric1Sh|maxGrpDayRMetric1Abs|grpDayRMetric1Ratio|traderName|userData1|userData2|childData|checksum|altLimitType|altPrcLimit' \
--data-urlencode 'where=accnt:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=spdrActionType: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 = 'FutOrderGateway'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'spdrActionType|altOrderId|altAccnt|altUserName|execBrkrCode|externExDest|externParams|strategy|strategyAccnt|visibleInSV|orderDttm|orderSize|orderActiveSize|addCumFillQuantity|maxExposureSize|numMakeExchanges|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|twapSliceCnt|progressExposeTime|vwapParticipation|auctionResponder|triggerType|triggerLevel|cxlUPrcRange|minUBid|maxUAsk|minMaxType|maxChildOrders|spdrStageType|marketSession|startDttm|orderDuration|activeDuration|goodTillDttm|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|orderPrcLimit|orderPrcOffset|takeAlphaType|makeAlphaType|takeAlphaFactor|makeAlphaFactor|takeProbability|makeProbability|autoHedge|hedgeSecKey|hedgeSecType|hedgeBetaRatio|hedgeScope|hedgeSession|positionType|riskGroupId|reqAuxRiskGroupCtrl|symDayDDeltaOffset|maxSymDayDDeltaLn|maxSymDayDDeltaSh|maxAccDayWtVegaLn|maxAccDayWtVegaSh|accDayWtVegaOffset|maxAccDayDDeltaLn|maxAccDayDDeltaSh|accDayDDeltaOffset|maxGrpDayDDeltaLn|maxGrpDayDDeltaSh|maxGrpDayContractsLn|maxGrpDayContractsSh|maxGrpDayContractsAbs|maxGrpDayFutContractsLn|maxGrpDayFutContractsSh|maxGrpDayFutContractsAbs|maxGrpDayRMetric1Ln|maxGrpDayRMetric1Sh|maxGrpDayRMetric1Abs|grpDayRMetric1Ratio|traderName|userData1|userData2|childData|checksum|altLimitType|altPrcLimit'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'spdrActionType|visibleInSV|addCumFillQuantity|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|auctionResponder|triggerType|cxlUPrcRange|minMaxType|spdrStageType|marketSession|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|takeAlphaType|makeAlphaType|autoHedge|hedgeSecType|hedgeScope|hedgeSession|positionType|reqAuxRiskGroupCtrl|altLimitType'
# 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 = 'accnt: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=FutOrderGateway' \
--data-urlencode 'measure=spdrActionType|altOrderId|altAccnt|altUserName|execBrkrCode|externExDest|externParams|strategy|strategyAccnt|visibleInSV|orderDttm|orderSize|orderActiveSize|addCumFillQuantity|maxExposureSize|numMakeExchanges|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|twapSliceCnt|progressExposeTime|vwapParticipation|auctionResponder|triggerType|triggerLevel|cxlUPrcRange|minUBid|maxUAsk|minMaxType|maxChildOrders|spdrStageType|marketSession|startDttm|orderDuration|activeDuration|goodTillDttm|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|orderPrcLimit|orderPrcOffset|takeAlphaType|makeAlphaType|takeAlphaFactor|makeAlphaFactor|takeProbability|makeProbability|autoHedge|hedgeSecKey|hedgeSecType|hedgeBetaRatio|hedgeScope|hedgeSession|positionType|riskGroupId|reqAuxRiskGroupCtrl|symDayDDeltaOffset|maxSymDayDDeltaLn|maxSymDayDDeltaSh|maxAccDayWtVegaLn|maxAccDayWtVegaSh|accDayWtVegaOffset|maxAccDayDDeltaLn|maxAccDayDDeltaSh|accDayDDeltaOffset|maxGrpDayDDeltaLn|maxGrpDayDDeltaSh|maxGrpDayContractsLn|maxGrpDayContractsSh|maxGrpDayContractsAbs|maxGrpDayFutContractsLn|maxGrpDayFutContractsSh|maxGrpDayFutContractsAbs|maxGrpDayRMetric1Ln|maxGrpDayRMetric1Sh|maxGrpDayRMetric1Abs|grpDayRMetric1Ratio|traderName|userData1|userData2|childData|checksum|altLimitType|altPrcLimit' \
--data-urlencode 'group=spdrActionType|visibleInSV|addCumFillQuantity|publicSize|randomizeSize|canOverlapCxlRepl|progressRule|progressCatchUpRule|auctionResponder|triggerType|cxlUPrcRange|minMaxType|spdrStageType|marketSession|startType|parentOrderHandling|parentBalanceHandling|orderLimitType|takeLimitClass|makeLimitClass|takeReachRule|takeAlphaType|makeAlphaType|autoHedge|hedgeSecType|hedgeScope|hedgeSession|positionType|reqAuxRiskGroupCtrl|altLimitType' \
--data-urlencode 'where=accnt: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 = 'FutOrderGateway'
# 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 = 'accnt: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=FutOrderGateway' \
--data-urlencode 'where=accnt:eq:ExampleString'