Skip to main content
Version: 8.4.12.1

Schema: LiveRevConQuote (ID: 1125)

METADATA

AttributeValue
Topic1000-analytics
MLink TokenOptAnalytics
SRSE ProductSRAnalytics

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

BODY

#FieldTypeComment
10=okeyOptionKeycp = Both
11=tradeDateDateKey
100tickerTickerKeySR Ticker (Product Group)
101xAxisfloatxAxis = Moneyness
102cDefloatcall delta
103pDefloatput delta
104uPrcdoublelive underlier price
105atmVolfloat
106yearsfloatnumber of volatility years to exiry date (volatility time metric)
107globalRatefloatglobal rate (average discount rate) to expiry date
108ddivfloatsum of estimated discrete dividend stream to expiry date
109ddivPvfloatpresent value of estimated discrete dividend stream to expiry date
110ddivSourceenum : DDivSourcepresent value of estimated discrete dividend stream to expiry date
111iDaysintnumber of interest (calendar) days to expiry
129ddivDiscfloatdividend discount factor: SUM(div * iDays / 365.0 - divYrs) due to dividends being paid (thereby lowering the uPrc basis) prior to expiry
112strikePvfloatstrike * EXP(-globalRate * iDays / 365)
113fairSVolfloatcall/put surface volatility value
114fairSDivfloatcall/put surface alignment sdiv value
115fairCallPrcfloatfairPrice = PRICE.AMERICAN(uPrc, years, fairVol, fairSDiv, globalRate, {ddivStream})
116fairCallPrcEfloatfairPrice = PRICE.EUROPEAN(uPrc, years, fairVol, fairSDiv, globalRate, {ddivStream})
117fairPutPrcfloatfairPrice = PRICE.AMERICAN(uPrc, years, fairVol, fairSDiv, globalRate, {ddivStream})
118fairPutPrcEfloatfairPrice = PRICE.EUROPEAN(uPrc, years, fairVol, fairSDiv, globalRate, {ddivStream})
119rcFairPrcfloatfairCallPrc - fairPutPrc - uPrc + strike (revCon fairMid price)
120rcEExPremfloat(fairPutPrc - fairPutPrcE) - (fairCallPrc - fairCallPrcE)
121fairLoanPvfloatfairCallPrc - fairPutPrc - uPrc + strike + strikePv + ddivPv (total present value of letting out shares) (term to expiry) (per share)
122fairLoanRatefloatfairLoanPv / (uPrc * iDays / 365.0 - ddivDisc)
130rcBidPrcfloatcallBid - putAsk - uPrc + strike (best way) (join markets)
131rcAskPrcfloatcallAsk - putBid - uPrc + strike (worst way) (cross markets)
125calcErrorstring(16)
126cpOIintc/p open interest (market) [upper bound]
127cpVlmintc/p print volume (this exchange) [upper bound]
128timestampDateTimelast update time (Date)

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

# 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 = 'LiveRevConQuote'

# 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|xAxis|cDe|pDe|uPrc|atmVol|years|globalRate|ddiv|ddivPv|ddivSource|iDays|ddivDisc|strikePv|fairSVol|fairSDiv|fairCallPrc|fairCallPrcE|fairPutPrc|fairPutPrcE|rcFairPrc|rcEExPrem|fairLoanPv|fairLoanRate|rcBidPrc|rcAskPrc|calcError|cpOI|cpVlm|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 = 'calcError: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 = 'LiveRevConQuote'

# 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|xAxis|cDe|pDe|uPrc|atmVol|years|globalRate|ddiv|ddivPv|ddivSource|iDays|ddivDisc|strikePv|fairSVol|fairSDiv|fairCallPrc|fairCallPrcE|fairPutPrc|fairPutPrcE|rcFairPrc|rcEExPrem|fairLoanPv|fairLoanRate|rcBidPrc|rcAskPrc|calcError|cpOI|cpVlm|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 = 'calcError: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)

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

# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'ticker|xAxis|cDe|pDe|uPrc|atmVol|years|globalRate|ddiv|ddivPv|ddivSource|iDays|ddivDisc|strikePv|fairSVol|fairSDiv|fairCallPrc|fairCallPrcE|fairPutPrc|fairPutPrcE|rcFairPrc|rcEExPrem|fairLoanPv|fairLoanRate|rcBidPrc|rcAskPrc|calcError|cpOI|cpVlm|timestamp'

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

# 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 = 'calcError: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 = 'LiveRevConQuote'

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