Skip to main content
Version: 8.4.12.1

Schema: LiveSurfacePerf (ID: 1055)

LiveSurfacePerf records contain current and prior period implied ATM volatilities and greeks and as well as fixed-strike PnL values. The strike used for the fix-strike calculation is equal to the forward underlier price that prevailed on the open. Note that this strike price 'resets' each day.

LiveSurfacePerf records are published to the SpiderRock elastic cluster at the end of the day for each option expiration. These records are designed to allow fixed strike EOD to EOD attributed PnL to be easily calculated. These records can also be used to measure atm volatility dynamics.

METADATA

AttributeValue
Topic1000-analytics
MLink TokenSRMLinkAnalytics
SRSE ProductSRAnalytics

Note: The symbol = next to a field number indicates that it is a primary key.

BODY

#FieldTypeComment
10=ekeyExpiryKey
11=perfSurfTypeenum : PerfSurfaceTypePreferred surface type: None; Live; PriorDay
100datestring(10)
103timestring(8)
106tickerTickerKeySpiderRock underlier stock key
109exTypeenum : ExerciseType
112modelTypeenum : CalcModelType
115uMarkfloatcurrent underlier mark (usually mid market)
118yearsfloattime to expiration (in years)
121ratefloatinterest rate
124sdivfloatstock dividend (borrow rate)
127ddivfloatpresent value of discrete dividend stream
130eventCntfloatnumber of qualifying earnings (or earnings like) events (between now and expiration) [can be fractional]
133iEMovefloatimplied event move (if any)
136hEMovefloataverage of the trailing 12 historical (quarterly) earnings moves (if any)
139strikefloatatm strike = uMark * Math.Exp(years * rate) - ddiv;
142cIVolfloatcall surface atm vol @ strike = uMark
145pIVolfloatput surface atm vol @ strike = uMark
148cSOpxfloatcall option price @ (cAtm, uMark, years, sdiv, rate, ddiv);strike = uMark
151pSOpxfloatput option price @ (pAtm, uMark, years, sdiv, rate, ddiv);strike = uMark
154cDefloatsurface call delta @ (cAtm, uMark, years, sdiv, rate, ddiv)
157cGafloatsurface call gamma @ (cAtm, uMark, years, sdiv, rate, ddiv)
160cThfloatsurface call theta @ (cAtm, uMark, years, sdiv, rate, ddiv)
163cVefloatsurface call vega @ (cAtm, uMark, years, sdiv, rate, ddiv)
166cRofloatsurface call rho @ (cAtm, uMark, years, sdiv, rate, ddiv)
169pDefloatsurface put delta @ (pAtm, uMark, years, sdiv, rate, ddiv)
172pGafloatsurface put gamma @ (pAtm, uMark, years, sdiv, rate, ddiv)
175pThfloatsurface put theta @ (pAtm, uMark, years, sdiv, rate, ddiv)
178pVefloatsurface put vega @ (pAtm, uMark, years, sdiv, rate, ddiv)
181pRofloatsurface put rho @ (pAtm, uMark, years, sdiv, rate, ddiv)
184xxCntbytenumber of valid surface strikes
187pwidthfloatminimum mkt premium width
190vwidthfloatminimum mkt volatility width
193fixCIVolfloatfixed strike call surface atm vol @ strike = prvUMark
196fixPIVolfloatfixed strike put surface atm vol @ strike = prvUMark
199fixCSOpxfloatfixed strike call option price @ (fixCAtm, uMark, years, sdiv, rate, ddiv);strike = prvUMark
202fixPSOpxfloatfixed strike put option price @ (fixPAtm, uMark, years, sdiv, rate, ddiv);strike = prvUMark
205prvUMarkfloatprior period underlier mark
208prvYearsfloatprior period years to expiration
211prvSDivfloatprior period sdiv
214prvRatefloatprior period rate
217prvDDivfloatprior period ddiv
220prvStrikefloatprior period atm strike = prvUMark * Math.Exp(years * rate) - ddiv;
223prvEventCntfloatnumber of qualifying earnings (or earnings like) events (between now and expiration) [can be fractional]
226prvIEMovefloatprior period implied event move (if any)
229prvCIVolfloatprior period surface cAtm @ strike = prvMark
232prvPIVolfloatprior period surface pAtm @ strike = prvMark
235prvCSOpxfloatprior period call surface price @ strike = prvUMark
238prvPSOpxfloatprior period put surface price @ strike = prvUMark
241prvCDefloatprior period surface call delta @ (cAtm, uMark, years, sdiv, rate, ddiv)
244prvCGafloatprior period surface call gamma @ (cAtm, uMark, years, sdiv, rate, ddiv)
247prvCThfloatprior period surface call theta @ (cAtm, uMark, years, sdiv, rate, ddiv)
250prvCVefloatprior period surface call vega @ (cAtm, uMark, years, sdiv, rate, ddiv)
253prvCRofloatprior period surface call rho @ (cAtm, uMark, years, sdiv, rate, ddiv)
256prvPDefloatprior period surface put delta @ (pAtm, uMark, years, sdiv, rate, ddiv)
259prvPGafloatprior period surface put gamma @ (pAtm, uMark, years, sdiv, rate, ddiv)
262prvPThfloatprior period surface put theta @ (pAtm, uMark, years, sdiv, rate, ddiv)
265prvPVefloatprior period surface put vega @ (pAtm, uMark, years, sdiv, rate, ddiv)
268prvPRofloatprior period surface put rho @ (pAtm, uMark, years, sdiv, rate, ddiv)
271prvXXCntbyteprior period number of valid surface strikes
274prvPWidthfloatprior period minimum mkt premium width
277prvVWidthfloatprior period minimum mkt volatility width
280cOptPnLfloatcall option pnl (fixCOpx - prvCOpx)
283pOptPnLfloatput option pnl (fixPOpx - prvPOpx)
286dUPrcfloatuMark - prvUMark
289cDePnLfloatprvCDe * dUPrc
292cGaPnLfloat0.5 * prvCGa * dUPrc * dUPrc
295cThPnLfloatprvCTh * (years - prvYears)
298cVePnLfloatprvCVe * (sVol - prvSVol)
301cRoPnLfloatprvCRo * (sdiv - prvSDiv)
304pDePnLfloatprvPDe * dUPrc
307pGaPnLfloat0.5 * prvPGa * dUPrc * dUPrc
310pThPnLfloatprvPTh * (years - prvYears)
313pVePnLfloatprvPVe * (sVol - prvSVol)
316pRoPnLfloatprvPRo * (sdiv - prvSDiv)
319timestampDateTime

Get Schema API Call

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 = 'LiveSurfacePerf'

# 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)

Get Msg API Call

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 = 'LiveSurfacePerf'

# 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 = 'date|time|ticker|exType|modelType|uMark|years|rate|sdiv|ddiv|eventCnt|iEMove|hEMove|strike|cIVol|pIVol|cSOpx|pSOpx|cDe|cGa|cTh|cVe|cRo|pDe|pGa|pTh|pVe|pRo|xxCnt|pwidth|vwidth|fixCIVol|fixPIVol|fixCSOpx|fixPSOpx|prvUMark|prvYears|prvSDiv|prvRate|prvDDiv|prvStrike|prvEventCnt|prvIEMove|prvCIVol|prvPIVol|prvCSOpx|prvPSOpx|prvCDe|prvCGa|prvCTh|prvCVe|prvCRo|prvPDe|prvPGa|prvPTh|prvPVe|prvPRo|prvXXCnt|prvPWidth|prvVWidth|cOptPnL|pOptPnL|dUPrc|cDePnL|cGaPnL|cThPnL|cVePnL|cRoPnL|pDePnL|pGaPnL|pThPnL|pVePnL|pRoPnL|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 = 'time: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)

Get Msgs API Call

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 = 'LiveSurfacePerf'

# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'date|time|ticker|exType|modelType|uMark|years|rate|sdiv|ddiv|eventCnt|iEMove|hEMove|strike|cIVol|pIVol|cSOpx|pSOpx|cDe|cGa|cTh|cVe|cRo|pDe|pGa|pTh|pVe|pRo|xxCnt|pwidth|vwidth|fixCIVol|fixPIVol|fixCSOpx|fixPSOpx|prvUMark|prvYears|prvSDiv|prvRate|prvDDiv|prvStrike|prvEventCnt|prvIEMove|prvCIVol|prvPIVol|prvCSOpx|prvPSOpx|prvCDe|prvCGa|prvCTh|prvCVe|prvCRo|prvPDe|prvPGa|prvPTh|prvPVe|prvPRo|prvXXCnt|prvPWidth|prvVWidth|cOptPnL|pOptPnL|dUPrc|cDePnL|cGaPnL|cThPnL|cVePnL|cRoPnL|pDePnL|pGaPnL|pThPnL|pVePnL|pRoPnL|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 = 'time: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 = 'date: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)

Get Aggregate API Call

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 = 'LiveSurfacePerf'

# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'date|time|ticker|exType|modelType|uMark|years|rate|sdiv|ddiv|eventCnt|iEMove|hEMove|strike|cIVol|pIVol|cSOpx|pSOpx|cDe|cGa|cTh|cVe|cRo|pDe|pGa|pTh|pVe|pRo|xxCnt|pwidth|vwidth|fixCIVol|fixPIVol|fixCSOpx|fixPSOpx|prvUMark|prvYears|prvSDiv|prvRate|prvDDiv|prvStrike|prvEventCnt|prvIEMove|prvCIVol|prvPIVol|prvCSOpx|prvPSOpx|prvCDe|prvCGa|prvCTh|prvCVe|prvCRo|prvPDe|prvPGa|prvPTh|prvPVe|prvPRo|prvXXCnt|prvPWidth|prvVWidth|cOptPnL|pOptPnL|dUPrc|cDePnL|cGaPnL|cThPnL|cVePnL|cRoPnL|pDePnL|pGaPnL|pThPnL|pVePnL|pRoPnL|timestamp'

# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'exType|modelType'

# 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 = 'time: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)

Get Count API Call

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 = 'LiveSurfacePerf'

# 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 = 'time: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)