Schema: FutSpreadDefinitionV3 (ID: 9306)
One row per exchange-listed strategy whose legs are all futures: a calendar, butterfly, condor, pack,
bundle, strip or inter-commodity spread, as the venue lists it. Keyed by the venue instrument, the
ExpiryKey its FutureBookQuote (2580) carries, so a book joins to its definition with no index.
LEGS ARE STATED AS THE VENUE STATES THEM: the venue's order, sides and ratios, never canonicalised.
A buy of the instrument buys every Buy leg and sells every Sell leg at the stated ratios, and the
quoted price is the signed sum of the legs in those sides, so the sign of a quote is readable from
this row alone. CME quotes an equity-index calendar deferred minus nearby (the buyer buys the
deferred) and most other calendars nearby minus deferred; both arrive here as the venue's legs.
A leg set with an option or stock leg is a SpreadDefinitionV3 (9300) and never appears here.
METADATA
| Attribute | Value |
|---|---|
| Topic | 9300-product-def-spreads |
| MLink Token | FutureDefinition |
| MLink Endpoint | MLink-Live |
| SRSE Product | SRReference |
Note: The symbol
=next to a field number indicates that it is a primary key.
BODY
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 10= | fkey | ExpiryKey | the venue instrument: ccode '#' + the venue id on the listing source, the strategy's expiration | |
| 100 | ticker | TickerKey | the complex the legs share ('@ES'); the first leg's for an inter-commodity spread | |
| 103 | mic | string(4) | ISO 10383 - the listing venue | |
| 106 | exchID | string(30) | the venue's own identifier for the instrument | |
| 109 | exchSymbol | string(30) | the venue's text symbol for the instrument ('ESZ6-ESH7') | |
| 112 | productType | enum : ProductType | the venue's strategy type: CalSpr, EqCalSpr, BFly, Condor, Pack, Bndl, InterCmd ... | |
| 115 | userDefined | enum : YesNo | a user-defined strategy, listed for the session that created it | |
| 118 | scopeFlags | flag : SpreadScope | MultiTicker when the legs span more than one complex | |
| 121 | nearKey | ExpiryKey | the earlier-expiring leg; empty when not a calendar | |
| 124 | farKey | ExpiryKey | the later-expiring leg; empty when not a calendar | |
| 127 | nearRatio | int | +1 or -1, the near leg's signed ratio for a buy; 0 when not a calendar | |
| 130 | priceFormat | enum : PriceFormat | how the strategy quotes | |
| 133 | minTickSize | double | the smallest price increment; a listed strategy may tick finer than its legs | |
| 136 | productGroup | string(6) | the venue's product group for the instrument (CME Asset) | |
| 139 | securityGroup | string(6) | the venue's security group for the instrument | |
| 142 | timestamp | DateTime | when this row was last written | |
| 900 | v3Source | enum : V3Source | Bridge = projected from a legacy record; Loader = written natively. None reads as Loader |
REPEATING FIELDS
Legs
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 146 | legKey | ExpiryKey | the futures contract this leg trades | |
| 147 | legSide | enum : BuySell | the side of this leg in a buy of the strategy, as the venue states it | |
| 148 | legRatio | uint | the venue's ratio for this leg |
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 = 'FutSpreadDefinitionV3'
# 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=FutSpreadDefinitionV3'
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 = 'FutSpreadDefinitionV3'
# 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 = 'ticker|mic|exchID|exchSymbol|productType|userDefined|scopeFlags|nearKey|farKey|nearRatio|priceFormat|minTickSize|productGroup|securityGroup|timestamp|v3Source'
# 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 = 'mic: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=FutSpreadDefinitionV3' \
--data-urlencode 'view=ticker|mic|exchID|exchSymbol|productType|userDefined|scopeFlags|nearKey|farKey|nearRatio|priceFormat|minTickSize|productGroup|securityGroup|timestamp|v3Source' \
--data-urlencode 'where=mic: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 = 'FutSpreadDefinitionV3'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'ticker|mic|exchID|exchSymbol|productType|userDefined|scopeFlags|nearKey|farKey|nearRatio|priceFormat|minTickSize|productGroup|securityGroup|timestamp|v3Source'
# 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 = 'mic: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 = 'ticker: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=FutSpreadDefinitionV3' \
--data-urlencode 'view=ticker|mic|exchID|exchSymbol|productType|userDefined|scopeFlags|nearKey|farKey|nearRatio|priceFormat|minTickSize|productGroup|securityGroup|timestamp|v3Source' \
--data-urlencode 'where=mic:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=ticker: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 = 'FutSpreadDefinitionV3'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'ticker|mic|exchID|exchSymbol|productType|userDefined|scopeFlags|nearKey|farKey|nearRatio|priceFormat|minTickSize|productGroup|securityGroup|timestamp|v3Source'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'productType|userDefined|priceFormat|v3Source'
# 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 = 'mic: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=FutSpreadDefinitionV3' \
--data-urlencode 'measure=ticker|mic|exchID|exchSymbol|productType|userDefined|scopeFlags|nearKey|farKey|nearRatio|priceFormat|minTickSize|productGroup|securityGroup|timestamp|v3Source' \
--data-urlencode 'group=productType|userDefined|priceFormat|v3Source' \
--data-urlencode 'where=mic: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 = 'FutSpreadDefinitionV3'
# 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 = 'mic: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=FutSpreadDefinitionV3' \
--data-urlencode 'where=mic:eq:ExampleString'