Schema: TheoExpiryPtSkew (ID: 1975)
TheoExpiryPtSkew records carry the skew curve of a TheoExpirySurface record with the same key (ekey + theoModel + clientFirm) as x/y points, used when the surface's skewSource = PtSkew.
The client defines both axes: xType says what x measures (strike or a form of moneyness), yType says what y is (an absolute vol, a ratio to the surface theoVol, or a difference from it).
A moneyness x axis moves with the forward and is therefore sticky delta by construction; a Strike x axis is sticky strike. The forward uses the surface's theoRate and theoSDiv.
The resolver sorts the points by x; duplicate x values, fewer than two points (four for Spline) or more than 201 points make the surface hold rather than truncate.
METADATA
| Attribute | Value |
|---|---|
| Topic | 1945-client-theos |
| MLink Token | ClientTheo |
| MLink Endpoint | MLink-Live |
| SRSE Product | SRTheo |
Note: The symbol
=next to a field number indicates that it is a primary key.
BODY
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 10= | ekey | ExpiryKey | expiry this curve belongs to (ticker + expiration); must match the TheoExpirySurface key | |
| 11= | theoModel | string(16) | client theo model name; must match the TheoExpirySurface key | |
| 12= | clientFirm | string(16) | client firm this theo model is associated with (controls visibility) | |
| 100 | ticker | TickerKey | underlier ticker (same as ekey.ticker; kept for filtering and joins) | |
| 103 | xType | enum : TheoXType | Strike = x is a strike; SimpleMoney = strike / fwd - 1; RTMoney = SimpleMoney / sqrt(years); VolRTMoney = SimpleMoney / (axisVol * sqrt(years)); LogStdMoney = ln(strike / fwd) / (axisVol * sqrt(years)) | |
| 106 | yType | enum : TheoYType | Vol = y is a volatility; AtmRatio = y * the surface level (theoVol after its vol path and SR blend); AtmDiff = level + y | |
| 109 | axisVol | float | -99 | scaling vol for VolRTMoney and LogStdMoney; -99 = the surface level |
| 112 | interp | enum : TheoInterp | Spline | interpolation between points: Spline (needs four or more points) or Linear (two or more) |
| 115 | extrap | enum : TheoExtrap | Flat | beyond the first and last point: Flat holds the end value, Extend continues the end slope |
| 118 | timestamp | DateTime | timestamp of last modification; the surface's maxAgeDays applies to the older of the two timestamps |
REPEATING FIELDS
Point
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 124 | x | float | x coordinate in xType units | |
| 127 | y | float | y value in yType units |
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 = 'TheoExpiryPtSkew'
# 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=TheoExpiryPtSkew'
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 = 'TheoExpiryPtSkew'
# 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|xType|yType|axisVol|interp|extrap|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 = 'theoModel: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=TheoExpiryPtSkew' \
--data-urlencode 'view=ticker|xType|yType|axisVol|interp|extrap|timestamp' \
--data-urlencode 'where=theoModel: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 = 'TheoExpiryPtSkew'
# 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|xType|yType|axisVol|interp|extrap|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 = 'theoModel: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=TheoExpiryPtSkew' \
--data-urlencode 'view=ticker|xType|yType|axisVol|interp|extrap|timestamp' \
--data-urlencode 'where=theoModel: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 = 'TheoExpiryPtSkew'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'ticker|xType|yType|axisVol|interp|extrap|timestamp'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'xType|yType|interp|extrap'
# 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 = 'theoModel: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=TheoExpiryPtSkew' \
--data-urlencode 'measure=ticker|xType|yType|axisVol|interp|extrap|timestamp' \
--data-urlencode 'group=xType|yType|interp|extrap' \
--data-urlencode 'where=theoModel: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 = 'TheoExpiryPtSkew'
# 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 = 'theoModel: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=TheoExpiryPtSkew' \
--data-urlencode 'where=theoModel:eq:ExampleString'
Post 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'
# Request Parameters
params = {
# Required Parameters
"apiKey": API_KEY,
"cmd": 'postmsgs',
"postaction": "I", # (I)nsert, (U)pdate, (D)elete, or (R)eplace
"postmerge": "Y", # (Y)es or (N)o
}
payload = {
"header": {
"mTyp": "TheoExpiryPtSkew"
},
"message": {
"pkey": {
"ekey": {
"at": "EQT",
"ts": "NMS",
"tk": "AAPL",
"dt": "2025-01-01"
},
"theoModel": "exampleString", // string
"clientFirm": "exampleString" // string
},
"ticker": {
"at": "EQT",
"ts": "NMS",
"tk": "AAPL"
},
"xType": "enumValue", // enum(TheoXType) - None, Strike, SimpleMoney, RTMoney, VolRTMoney, LogStdMoney
"yType": "enumValue", // enum(TheoYType) - None, Vol, AtmRatio, AtmDiff
"axisVol": -99, // float. Default=-99
"interp": "Spline", // enum(TheoInterp) - None, Spline, Linear. Default=Spline
"extrap": "Flat", // enum(TheoExtrap) - None, Flat, Extend. Default=Flat
"timestamp": "2025-01-01 12:00:00.000000", // yyyy-MM-dd HH:mm:ss.SSSSSS
"Point": [ // Repeating Field
{
"x": 1.0, // float
"y": 1.0 // float
}
]
}
}
response = requests.post(MLINK_PROD_URL, params=params, json=payload)
curl -X POST 'https://mlink-live.nms.saturn.spiderrockconnect.com/rest/json' \
--data-urlencode 'apiKey=XXXX-XXXX-XXXX-XXXX' \
--data-urlencode 'cmd=postmsgs' \
--data-urlencode 'postaction=I' \ # (I)nsert, (U)pdate, (D)elete, or (R)eplace
--data-urlencode 'postmerge=Y' \ # (Y)es or (N)o
--header 'Content-Type: application/json' \
--data '{
"header": {
"mTyp": "TheoExpiryPtSkew"
},
"message": {
"pkey": {
"ekey": {
"at": "EQT",
"ts": "NMS",
"tk": "AAPL",
"dt": "2025-01-01"
},
"theoModel": "exampleString", // string
"clientFirm": "exampleString" // string
},
"ticker": {
"at": "EQT",
"ts": "NMS",
"tk": "AAPL"
},
"xType": "enumValue", // enum(TheoXType) - None, Strike, SimpleMoney, RTMoney, VolRTMoney, LogStdMoney
"yType": "enumValue", // enum(TheoYType) - None, Vol, AtmRatio, AtmDiff
"axisVol": -99, // float. Default=-99
"interp": "Spline", // enum(TheoInterp) - None, Spline, Linear. Default=Spline
"extrap": "Flat", // enum(TheoExtrap) - None, Flat, Extend. Default=Flat
"timestamp": "2025-01-01 12:00:00.000000", // yyyy-MM-dd HH:mm:ss.SSSSSS
"Point": [ // Repeating Field
{
"x": 1.0, // float
"y": 1.0 // float
}
]
}
}'