Schema: OptionPrintSet (ID: 2815)
OptionPrintSet records contain every option print along with quote, surface, and SR probability details at print time. These records also contain T+1M and T+10M forward mark details. These records are created for every print at the time of print and are published to the SpiderRock elastic cluster 10 minutes later when T + 10M forward marks are available.
METADATA
| Attribute | Value |
|---|---|
| Topic | 2750-market-data-options |
| MLink Token | OptAnalytics |
| SRSE Product | SRAnalytics |
Note: The symbol
=next to a field number indicates that it is a primary key.
BODY
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 10= | okey | OptionKey | ||
| 11= | prtNumber | long | Unique print set identifier, will increment but not guaranteed to be sequential | |
| 368 | updateType | enum : PrtUpdateType | ||
| 100 | fkey | ExpiryKey | underlying fkey (if any) | |
| 103 | ticker | TickerKey | underlying ticker | |
| 106 | prtExch | enum : OptExch | exchange on which print took place | |
| 109 | prtSize | int | print size [contracts] | |
| 112 | prtPrice | float | print price | |
| 115 | prtType | enum : PrtType | print type | |
| 369 | prtTypeint | int | option(opra) print type in integer format | |
| 118 | prtOrders | ushort | number of participating orders (future exchanges only) | |
| 121 | prtClusterNum | int | incremental print cluster counter (one counter per okey; used to group prints into clusters) | |
| 124 | prtClusterSize | int | cumulative size of prints in this sequence (prints @ same or more aggressive price with less than 25 ms elapsing since first print; can span exchanges) | |
| 127 | prtVolume | int | day print volume in contracts | |
| 130 | cxlVolume | int | day print/cancel volume (num of contracts printed and then cancelled) | |
| 133 | bidCount | ushort | number of bid prints | |
| 136 | askCount | ushort | number of ask prints | |
| 139 | bidVolume | int | bid print volume in contracts | |
| 142 | askVolume | int | ask print volume in contracts | |
| 145 | ebid | float | exchange bid (@ print time) | |
| 148 | eask | float | exchange ask (@ print time) | |
| 151 | ebsz | int | exchange bid size | |
| 154 | easz | int | exchange ask size | |
| 157 | eage | float | age of prevailing quote at time of print | |
| 160 | prtSide | enum : PrtSide | ||
| 163 | prtTimestamp | long | exchange high precision timestamp (if available) | |
| 166 | netTimestamp | long | inbound packet PTP timestamp from SR gateway switch; usually syncronized with facility grandfather clock | |
| 169 | timestamp | DateTime | ||
| 172 | oBid | float | Option NBBO bid a the time the print was received | |
| 175 | oAsk | float | Option NBBO ask a the time the print was received | |
| 178 | oBidSz | int | Option NBBO cumulative bid size at the time the print was received | |
| 181 | oAskSz | int | Option NBBO cumulative ask size at the time the print was received | |
| 184 | oBidEx | enum : OptExch | First (or largest) option exchange on the bid | |
| 187 | oAskEx | enum : OptExch | First (or largest) option exchange on the ask | |
| 190 | oBidExSz | int | Option bid size of the largest exchange on the bid at the time the print was received | |
| 193 | oAskExSz | int | Option ask size of the largest exchange on the ask at the time the print was received | |
| 196 | oBidCnt | byte | Number of exchanges on the NBBO bid | |
| 199 | oAskCnt | byte | Number of exchanges on the NBBO ask | |
| 202 | oBid2 | float | Second level bid price | |
| 205 | oAsk2 | float | Second level ask price | |
| 208 | oBidSz2 | int | Cumulative size on the second level bid price | |
| 211 | oAskSz2 | int | Cumulative size on the second level ask price | |
| 353 | oBidIv | double | option bid IV | |
| 354 | oAskIv | double | option ask IV | |
| 214 | uBid | double | underlier bid | |
| 217 | uAsk | double | underlier ask | |
| 220 | uPrc | double | underlier price | |
| 223 | yrs | float | years to expiry | |
| 226 | rate | float | interest rate | |
| 229 | sdiv | float | continuous stock dividend | |
| 232 | ddiv | float | discrete stock dividend value (sum of dividends <= expiration) | |
| 235 | xDe | float | xDelta | |
| 238 | xAxis | float | SR surface xAxis value | |
| 241 | multihedge | enum : Multihedge | Distinguishes options that have a single underlying security from those that are more complex: multiple securities,cash components, binary options,etc: 'None','Simple','Complex','AllCash','Binary' | |
| 244 | flexType | enum : FlexType | ||
| 247 | flexRoot | string(12) | ||
| 250 | prtIv | float | print implied vol | |
| 253 | prtDe | float | print delta | |
| 256 | prtGa | float | print gamma | |
| 259 | prtTh | float | print theta | |
| 262 | prtVe | float | print vega | |
| 265 | prtRo | float | print rho | |
| 268 | calcErr | string(24) | calc error flag | |
| 271 | surfVol | float | SR surface volatility | |
| 274 | surfOpx | float | SR surface price | |
| 277 | surfAtm | float | SR surface ATM vol | |
| 280 | prtProbability | float | [M1] probability that buying prtSize contracts @ prtPrice will have positive m10 pnl (prtPriceM10 >= prtPrice) [recorded at time of print] | |
| 283 | prtProbabilityM2 | float | alternate probability model | |
| 286 | prtProbabilityM3 | float | alternate probability model | |
| 289 | oBidM1 | float | NBBO option bid 1 minute after print was received | |
| 292 | oAskM1 | float | NBBO option ask 1 minute after print was received | |
| 295 | uBidM1 | double | NBBO underlying bid 1 minute after print was received | |
| 298 | uAskM1 | double | NBBO underlying ask 1 minute after print was received | |
| 301 | uPrcM1 | double | Underlying price 1 minute after print was received | |
| 304 | sVolM1 | float | Suface volatility 1 minute after print was received | |
| 307 | sOpxM1 | float | Surface option price 1 minute after print was received | |
| 310 | sDivM1 | float | sDiv 1 minute after print was received | |
| 313 | sErrM1 | string(12) | Surface error condition (if any) 1 minute after print was received | |
| 316 | pnlM1 | float | pnl after 1 minute | |
| 319 | pnlM1Err | enum : YesNo | Error condition for PnL calculated over the first 1 minute after the print was received | |
| 322 | oBidM10 | float | NBBO option bid 10 minutes after print was received | |
| 325 | oAskM10 | float | NBBO option ask 10 minutes after print was received | |
| 328 | uBidM10 | double | NBBO underlying bid 10 minutes after print was received | |
| 331 | uAskM10 | double | NBBO underlying ask 10 minutes after print was received | |
| 334 | uPrcM10 | double | Underlying price 10 minutes after print was received | |
| 337 | sVolM10 | float | Suface volatility 10 minutes after print was received | |
| 340 | sOpxM10 | float | Surface option price 10 minutes after print was received | |
| 343 | sDivM10 | float | sDiv 10 minutes after print was received | |
| 346 | sErrM10 | string(12) | Surface error condition (if any) 10 minutes after print was received | |
| 349 | pnlM10 | float | pnl after 10 minutes | |
| 352 | pnlM10Err | enum : YesNo | Error condition for PnL calculated 10 minutes after the print was received | |
| 355 | oBidS1 | float | NBBO option bid 1 second after print was received | |
| 356 | oAskS1 | float | NBBO option ask 1 second after print was received | |
| 357 | uBidS1 | double | NBBO underlying bid 1 second after print was received | |
| 358 | uAskS1 | double | NBBO underlying ask 1 second after print was received | |
| 359 | uPrcS1 | double | Underlying price 1 second after print was received | |
| 360 | sVolS1 | float | Suface volatility 1 second after print was received | |
| 361 | sOpxS1 | float | Surface option price 1 second after print was received | |
| 362 | sDivS1 | float | sDiv 1 second after print was received | |
| 363 | sErrS1 | string(12) | Surface error condition (if any) 1 second after print was received | |
| 364 | pnlS1 | float | pnl after 1 second | |
| 365 | pnlS1Err | enum : YesNo | Error condition for PnL calculated over the first 1 second after the print was received | |
| 366 | oBidNext | float | next NBBO option bid after print was received | |
| 367 | oAskNext | float | next NBBO option ask after print was received |
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 = 'OptionPrintSet'
# 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=OptionPrintSet'
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 = 'OptionPrintSet'
# 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 = 'updateType|fkey|ticker|prtExch|prtSize|prtPrice|prtType|prtTypeint|prtOrders|prtClusterNum|prtClusterSize|prtVolume|cxlVolume|bidCount|askCount|bidVolume|askVolume|ebid|eask|ebsz|easz|eage|prtSide|prtTimestamp|netTimestamp|timestamp|oBid|oAsk|oBidSz|oAskSz|oBidEx|oAskEx|oBidExSz|oAskExSz|oBidCnt|oAskCnt|oBid2|oAsk2|oBidSz2|oAskSz2|oBidIv|oAskIv|uBid|uAsk|uPrc|yrs|rate|sdiv|ddiv|xDe|xAxis|multihedge|flexType|flexRoot|prtIv|prtDe|prtGa|prtTh|prtVe|prtRo|calcErr|surfVol|surfOpx|surfAtm|prtProbability|prtProbabilityM2|prtProbabilityM3|oBidM1|oAskM1|uBidM1|uAskM1|uPrcM1|sVolM1|sOpxM1|sDivM1|sErrM1|pnlM1|pnlM1Err|oBidM10|oAskM10|uBidM10|uAskM10|uPrcM10|sVolM10|sOpxM10|sDivM10|sErrM10|pnlM10|pnlM10Err|oBidS1|oAskS1|uBidS1|uAskS1|uPrcS1|sVolS1|sOpxS1|sDivS1|sErrS1|pnlS1|pnlS1Err|oBidNext|oAskNext'
# 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 = 'flexRoot: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=OptionPrintSet' \
--data-urlencode 'view=updateType|fkey|ticker|prtExch|prtSize|prtPrice|prtType|prtTypeint|prtOrders|prtClusterNum|prtClusterSize|prtVolume|cxlVolume|bidCount|askCount|bidVolume|askVolume|ebid|eask|ebsz|easz|eage|prtSide|prtTimestamp|netTimestamp|timestamp|oBid|oAsk|oBidSz|oAskSz|oBidEx|oAskEx|oBidExSz|oAskExSz|oBidCnt|oAskCnt|oBid2|oAsk2|oBidSz2|oAskSz2|oBidIv|oAskIv|uBid|uAsk|uPrc|yrs|rate|sdiv|ddiv|xDe|xAxis|multihedge|flexType|flexRoot|prtIv|prtDe|prtGa|prtTh|prtVe|prtRo|calcErr|surfVol|surfOpx|surfAtm|prtProbability|prtProbabilityM2|prtProbabilityM3|oBidM1|oAskM1|uBidM1|uAskM1|uPrcM1|sVolM1|sOpxM1|sDivM1|sErrM1|pnlM1|pnlM1Err|oBidM10|oAskM10|uBidM10|uAskM10|uPrcM10|sVolM10|sOpxM10|sDivM10|sErrM10|pnlM10|pnlM10Err|oBidS1|oAskS1|uBidS1|uAskS1|uPrcS1|sVolS1|sOpxS1|sDivS1|sErrS1|pnlS1|pnlS1Err|oBidNext|oAskNext' \
--data-urlencode 'where=flexRoot: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 = 'OptionPrintSet'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'updateType|fkey|ticker|prtExch|prtSize|prtPrice|prtType|prtTypeint|prtOrders|prtClusterNum|prtClusterSize|prtVolume|cxlVolume|bidCount|askCount|bidVolume|askVolume|ebid|eask|ebsz|easz|eage|prtSide|prtTimestamp|netTimestamp|timestamp|oBid|oAsk|oBidSz|oAskSz|oBidEx|oAskEx|oBidExSz|oAskExSz|oBidCnt|oAskCnt|oBid2|oAsk2|oBidSz2|oAskSz2|oBidIv|oAskIv|uBid|uAsk|uPrc|yrs|rate|sdiv|ddiv|xDe|xAxis|multihedge|flexType|flexRoot|prtIv|prtDe|prtGa|prtTh|prtVe|prtRo|calcErr|surfVol|surfOpx|surfAtm|prtProbability|prtProbabilityM2|prtProbabilityM3|oBidM1|oAskM1|uBidM1|uAskM1|uPrcM1|sVolM1|sOpxM1|sDivM1|sErrM1|pnlM1|pnlM1Err|oBidM10|oAskM10|uBidM10|uAskM10|uPrcM10|sVolM10|sOpxM10|sDivM10|sErrM10|pnlM10|pnlM10Err|oBidS1|oAskS1|uBidS1|uAskS1|uPrcS1|sVolS1|sOpxS1|sDivS1|sErrS1|pnlS1|pnlS1Err|oBidNext|oAskNext'
# 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 = 'flexRoot: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 = 'updateType: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=OptionPrintSet' \
--data-urlencode 'view=updateType|fkey|ticker|prtExch|prtSize|prtPrice|prtType|prtTypeint|prtOrders|prtClusterNum|prtClusterSize|prtVolume|cxlVolume|bidCount|askCount|bidVolume|askVolume|ebid|eask|ebsz|easz|eage|prtSide|prtTimestamp|netTimestamp|timestamp|oBid|oAsk|oBidSz|oAskSz|oBidEx|oAskEx|oBidExSz|oAskExSz|oBidCnt|oAskCnt|oBid2|oAsk2|oBidSz2|oAskSz2|oBidIv|oAskIv|uBid|uAsk|uPrc|yrs|rate|sdiv|ddiv|xDe|xAxis|multihedge|flexType|flexRoot|prtIv|prtDe|prtGa|prtTh|prtVe|prtRo|calcErr|surfVol|surfOpx|surfAtm|prtProbability|prtProbabilityM2|prtProbabilityM3|oBidM1|oAskM1|uBidM1|uAskM1|uPrcM1|sVolM1|sOpxM1|sDivM1|sErrM1|pnlM1|pnlM1Err|oBidM10|oAskM10|uBidM10|uAskM10|uPrcM10|sVolM10|sOpxM10|sDivM10|sErrM10|pnlM10|pnlM10Err|oBidS1|oAskS1|uBidS1|uAskS1|uPrcS1|sVolS1|sOpxS1|sDivS1|sErrS1|pnlS1|pnlS1Err|oBidNext|oAskNext' \
--data-urlencode 'where=flexRoot:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=updateType: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 = 'OptionPrintSet'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'updateType|fkey|ticker|prtExch|prtSize|prtPrice|prtType|prtTypeint|prtOrders|prtClusterNum|prtClusterSize|prtVolume|cxlVolume|bidCount|askCount|bidVolume|askVolume|ebid|eask|ebsz|easz|eage|prtSide|prtTimestamp|netTimestamp|timestamp|oBid|oAsk|oBidSz|oAskSz|oBidEx|oAskEx|oBidExSz|oAskExSz|oBidCnt|oAskCnt|oBid2|oAsk2|oBidSz2|oAskSz2|oBidIv|oAskIv|uBid|uAsk|uPrc|yrs|rate|sdiv|ddiv|xDe|xAxis|multihedge|flexType|flexRoot|prtIv|prtDe|prtGa|prtTh|prtVe|prtRo|calcErr|surfVol|surfOpx|surfAtm|prtProbability|prtProbabilityM2|prtProbabilityM3|oBidM1|oAskM1|uBidM1|uAskM1|uPrcM1|sVolM1|sOpxM1|sDivM1|sErrM1|pnlM1|pnlM1Err|oBidM10|oAskM10|uBidM10|uAskM10|uPrcM10|sVolM10|sOpxM10|sDivM10|sErrM10|pnlM10|pnlM10Err|oBidS1|oAskS1|uBidS1|uAskS1|uPrcS1|sVolS1|sOpxS1|sDivS1|sErrS1|pnlS1|pnlS1Err|oBidNext|oAskNext'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'updateType|prtExch|prtType|prtSide|oBidEx|oAskEx|multihedge|flexType|pnlM1Err|pnlM10Err|pnlS1Err'
# 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 = 'flexRoot: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=OptionPrintSet' \
--data-urlencode 'measure=updateType|fkey|ticker|prtExch|prtSize|prtPrice|prtType|prtTypeint|prtOrders|prtClusterNum|prtClusterSize|prtVolume|cxlVolume|bidCount|askCount|bidVolume|askVolume|ebid|eask|ebsz|easz|eage|prtSide|prtTimestamp|netTimestamp|timestamp|oBid|oAsk|oBidSz|oAskSz|oBidEx|oAskEx|oBidExSz|oAskExSz|oBidCnt|oAskCnt|oBid2|oAsk2|oBidSz2|oAskSz2|oBidIv|oAskIv|uBid|uAsk|uPrc|yrs|rate|sdiv|ddiv|xDe|xAxis|multihedge|flexType|flexRoot|prtIv|prtDe|prtGa|prtTh|prtVe|prtRo|calcErr|surfVol|surfOpx|surfAtm|prtProbability|prtProbabilityM2|prtProbabilityM3|oBidM1|oAskM1|uBidM1|uAskM1|uPrcM1|sVolM1|sOpxM1|sDivM1|sErrM1|pnlM1|pnlM1Err|oBidM10|oAskM10|uBidM10|uAskM10|uPrcM10|sVolM10|sOpxM10|sDivM10|sErrM10|pnlM10|pnlM10Err|oBidS1|oAskS1|uBidS1|uAskS1|uPrcS1|sVolS1|sOpxS1|sDivS1|sErrS1|pnlS1|pnlS1Err|oBidNext|oAskNext' \
--data-urlencode 'group=updateType|prtExch|prtType|prtSide|oBidEx|oAskEx|multihedge|flexType|pnlM1Err|pnlM10Err|pnlS1Err' \
--data-urlencode 'where=flexRoot: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 = 'OptionPrintSet'
# 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 = 'flexRoot: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=OptionPrintSet' \
--data-urlencode 'where=flexRoot:eq:ExampleString'