Schema: FutExpiryDefinitionV3 (ID: 9121)
One row per futures contract - the expiry-rung counterpart of OptExpiryDefinitionV3.
A PRODUCT CARRIES A RULE, A CONTRACT CARRIES DATES AND TERMS. The listing rule (listingCycle, undExpiryRule) is on CCodeDefinitionV3; the resolved dates for one contract are here.
Margin is not here - SpanRiskParameters (4370) keeps it.
METADATA
| Attribute | Value |
|---|---|
| Topic | 9100-product-def-core |
| 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 | ccode + contract month | |
| 100 | ccode | TickerKey | the product - CCodeDefinitionV3; also fkey.TickerKey, stored for the reverse index | |
| 103 | lastTradeDate | DateKey | final trading day for this contract | |
| 106 | firstNoticeDate | DateKey | first notice day; empty = not supplied. Cash settlement is settleMethod, never an absent date | |
| 109 | firstDeliveryDate | DateKey | first day delivery may occur; empty = not supplied | |
| 112 | lastDeliveryDate | DateKey | last day delivery may occur; empty = not supplied | |
| 115 | finalSettleDate | DateKey | when the final settlement price is struck | |
| 118 | contractMonth | DateKey | the delivery month itself; NOT derivable from fkey where the code and month differ | |
| 121 | underliersPerCn | double | overrides CCodeDefinitionV3; double because CME sizes can be fractional | |
| 124 | tickValue | float | cash value of one minTickSize move, in the contract currency | |
| 127 | minTickSize | double | smallest price increment for this contract | |
| 130 | settleMethod | enum : SettleMethod | a mid-life change to cash settlement leaves old contracts physical | |
| 160 | decayQty | int | daily decay quantity; 0 = does not decay | |
| 163 | decayStartDate | DateKey | date decayQty starts reducing the contract size; empty when it does not decay | |
| 166 | contractSize | float | deliverable quantity, in CCodeDefinitionV3.contractUnit | |
| 169 | minLotSize | short | minimum tradeable lot | |
| 172 | contMultiplier | float | deliverable multiplier | |
| 175 | parValue | float | per-contract par value | |
| 178 | productTerm | enum : ProductTerm | Month / Week / BalanceOfMonth / Quarter / Season ... | |
| 133 | spotMonthLimit | int | applies while this contract is the spot month; -1 = unrestricted, 0 = not supplied | |
| 136 | singleMonthLimit | int | -1 = unrestricted, 0 = not supplied; a venue never publishes a limit of zero | |
| 151 | statusFlag | enum : TkStatusFlag | Active or Delisted. A delisted row stays resolvable and is never deleted | |
| 154 | pendingDelete | enum : YesNo | Yes = queued for removal; stop resolving against this row | |
| 181 | exchSymbol | string(30) | the venue's full text symbol for this contract; empty when the venue assigns none | |
| 184 | priceRatio | double | price ratio for interest-rate inter-commodity spreads | |
| 900 | v3Source | enum : V3Source | Bridge = projected from a legacy record; Loader = written natively. None reads as Loader | |
| 157 | timestamp | DateTime | when this row was last written | |
| 187 | displayFactor | double | venue display multiplier for quoted prices (CME tag 9787); 0 = not supplied | |
| 190 | productType | enum : ProductType | the venue's contract type (Outright, TAS, TAA, BIC ...); an execution engine completes a TAS fill as TAS | |
| 193 | lastTradeDttm | DateTime | the venue's last-trade timestamp, time of day included; lastTradeDate is its date | |
| 196 | dividendPeriodStart | DateKey | first ex-date the contract counts | |
| 199 | dividendPeriodEnd | DateKey | last ex-date the contract counts |
REPEATING FIELDS
Deliverable
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 142 | bondKey | OptionKey | the deliverable issue | |
| 145 | conversionFactor | double | scaled per CCodeDefinitionV3.conversionFactorScale | |
| 148 | isDeliverable | enum : YesNo | rows are RETAINED when eligibility lapses, so a delivered basket stays reconstructable |
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 = 'FutExpiryDefinitionV3'
# 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=FutExpiryDefinitionV3'
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 = 'FutExpiryDefinitionV3'
# 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 = 'ccode|lastTradeDate|firstNoticeDate|firstDeliveryDate|lastDeliveryDate|finalSettleDate|contractMonth|underliersPerCn|tickValue|minTickSize|settleMethod|decayQty|decayStartDate|contractSize|minLotSize|contMultiplier|parValue|productTerm|spotMonthLimit|singleMonthLimit|statusFlag|pendingDelete|exchSymbol|priceRatio|v3Source|timestamp|displayFactor|productType|lastTradeDttm|dividendPeriodStart|dividendPeriodEnd'
# 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 = 'exchSymbol: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=FutExpiryDefinitionV3' \
--data-urlencode 'view=ccode|lastTradeDate|firstNoticeDate|firstDeliveryDate|lastDeliveryDate|finalSettleDate|contractMonth|underliersPerCn|tickValue|minTickSize|settleMethod|decayQty|decayStartDate|contractSize|minLotSize|contMultiplier|parValue|productTerm|spotMonthLimit|singleMonthLimit|statusFlag|pendingDelete|exchSymbol|priceRatio|v3Source|timestamp|displayFactor|productType|lastTradeDttm|dividendPeriodStart|dividendPeriodEnd' \
--data-urlencode 'where=exchSymbol: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 = 'FutExpiryDefinitionV3'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'ccode|lastTradeDate|firstNoticeDate|firstDeliveryDate|lastDeliveryDate|finalSettleDate|contractMonth|underliersPerCn|tickValue|minTickSize|settleMethod|decayQty|decayStartDate|contractSize|minLotSize|contMultiplier|parValue|productTerm|spotMonthLimit|singleMonthLimit|statusFlag|pendingDelete|exchSymbol|priceRatio|v3Source|timestamp|displayFactor|productType|lastTradeDttm|dividendPeriodStart|dividendPeriodEnd'
# 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 = 'exchSymbol: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 = 'ccode: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=FutExpiryDefinitionV3' \
--data-urlencode 'view=ccode|lastTradeDate|firstNoticeDate|firstDeliveryDate|lastDeliveryDate|finalSettleDate|contractMonth|underliersPerCn|tickValue|minTickSize|settleMethod|decayQty|decayStartDate|contractSize|minLotSize|contMultiplier|parValue|productTerm|spotMonthLimit|singleMonthLimit|statusFlag|pendingDelete|exchSymbol|priceRatio|v3Source|timestamp|displayFactor|productType|lastTradeDttm|dividendPeriodStart|dividendPeriodEnd' \
--data-urlencode 'where=exchSymbol:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=ccode: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 = 'FutExpiryDefinitionV3'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'ccode|lastTradeDate|firstNoticeDate|firstDeliveryDate|lastDeliveryDate|finalSettleDate|contractMonth|underliersPerCn|tickValue|minTickSize|settleMethod|decayQty|decayStartDate|contractSize|minLotSize|contMultiplier|parValue|productTerm|spotMonthLimit|singleMonthLimit|statusFlag|pendingDelete|exchSymbol|priceRatio|v3Source|timestamp|displayFactor|productType|lastTradeDttm|dividendPeriodStart|dividendPeriodEnd'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'settleMethod|productTerm|statusFlag|pendingDelete|v3Source|productType'
# 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 = 'exchSymbol: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=FutExpiryDefinitionV3' \
--data-urlencode 'measure=ccode|lastTradeDate|firstNoticeDate|firstDeliveryDate|lastDeliveryDate|finalSettleDate|contractMonth|underliersPerCn|tickValue|minTickSize|settleMethod|decayQty|decayStartDate|contractSize|minLotSize|contMultiplier|parValue|productTerm|spotMonthLimit|singleMonthLimit|statusFlag|pendingDelete|exchSymbol|priceRatio|v3Source|timestamp|displayFactor|productType|lastTradeDttm|dividendPeriodStart|dividendPeriodEnd' \
--data-urlencode 'group=settleMethod|productTerm|statusFlag|pendingDelete|v3Source|productType' \
--data-urlencode 'where=exchSymbol: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 = 'FutExpiryDefinitionV3'
# 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 = 'exchSymbol: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=FutExpiryDefinitionV3' \
--data-urlencode 'where=exchSymbol:eq:ExampleString'