Schema: VolTimeCalculator (ID: 5065)
This table allows custom span risk calculations based on either user or SR supplied input values.
METADATA
Attribute | Value |
---|---|
Topic | 5030-srse-calculators |
MLink Token | SRMLinkAnalytics |
SRSE Product | SRAnalytics |
Note: The symbol
=
next to a field number indicates that it is a primary key.
BODY
# | Field | Type | Comment |
---|---|---|---|
10= | ticker | TickerKey | |
11= | secType | enum : SpdrKeyType | |
12= | endDate | DateKey | period end date (CST) |
13= | userName | string(24) | |
100 | endTime | TimeSpan | period end time (CST) |
103 | nowDttm | DateTime | period start time (CST) |
106 | nowSrc | enum : FieldSrc | default is clock time when selecting |
115 | holidayCalendar | enum : CalendarCode | |
118 | holidayCalendarSrc | enum : FieldSrc | |
152 | yearsVT70 | double | volatility years from nowDttm to endDttm using TradingCalendar (SR NMS Trading/Volatility Calendar) |
153 | yearsY252 | double | |
154 | yearsY365 | double | |
127 | partialDays | int | number of partial trading days (half-days) between endpoints. |
130 | holidayDays | int | number of holidays (days that would otherwise be trading days) between endpoints. |
133 | completeDays | int | number of complete trading days between endpoints. |
148 | error | string(32) | calculation error |
151 | timestamp | DateTime |
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 = 'VolTimeCalculator'
# 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=VolTimeCalculator'