Schema: NoticeMarkupVegaDir (ID: 2497)
METADATA
| Attribute | Value |
|---|---|
| Topic | 2450-liquidity-notice |
| MLink Token | ClientTrading |
| SRSE Product | SRTrade |
Note: The symbol
=next to a field number indicates that it is a primary key.
BODY
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 10= | accnt | string(16) | ||
| 11= | clientFirm | string(16) | ||
| 12= | ekey | ExpiryKey | ||
| 13= | respSide | enum : BuySell | auction responder side (your side) | |
| 14= | responderID | long | client supplied responder ID (can be any number including zero) | |
| 15= | noticeNumber | long | ||
| 100 | qtyTraded | int | ||
| 101 | vegaTraded | float | ||
| 102 | cumOpenSize | int | ||
| 103 | cumOpenVega | float | ||
| 104 | respSize | int | ||
| 105 | minSurfEdge | float | ||
| 106 | userSurfLimit | float | ||
| 107 | userProbLimit | float | ||
| 108 | rawRespPrice | float | ||
| 109 | incFees | enum : YesNo | ||
| 110 | feeEstimate | float | ||
| 111 | roundRule | enum : RoundRule | ||
| 112 | respPrice | float | ||
| 113 | result | enum : NoticeMarkupResult | ||
| 114 | resultDetail | text1 | ||
| 115 | ticker | TickerKey | underlier ticker | |
| 116 | tradeDate | DateKey | ||
| 117 | isTestAuction | enum : YesNo | if yes, auction is a test auction (not a prod/live auction) | |
| 118 | auctionType | enum : AuctionType | ||
| 119 | auctionSource | enum : AuctionSource | source of the auction notice (eg. SRC, MIAX, etc.) | |
| 120 | custSide | enum : BuySell | if available | |
| 121 | custQty | int | ||
| 122 | custPrc | double | public cust price | |
| 123 | hasCustPrc | enum : YesNo | ||
| 124 | custFirmType | enum : FirmType | cust firm type (if disclosed) | |
| 125 | noticeCommission | float | ||
| 126 | hasNoticeComm | enum : YesNo | noticeCommision contains responder auction commission; otherwise, notice commission is as agreed previously. | |
| 127 | numOptLegs | byte | MLEG Only | |
| 128 | spreadClass | enum : SpreadClass | ||
| 129 | spreadFlavor | enum : SpreadFlavor | MLEG Only | |
| 130 | containsHedge | enum : YesNo | MLEG Only | |
| 131 | uBid | double | ||
| 132 | uAsk | double | ||
| 133 | refUPrc | double | ||
| 134 | netVe | float | ||
| 135 | pkgSurfPrc | float | SR Surface Price (entire package) | |
| 136 | pkgTheoPrc | float | Client Theo Price (entire package) (if client surfaces uploaded to SR) | |
| 137 | pkgBidPrc | float | leg market best way price (pkg bid) | |
| 138 | pkgAskPrc | float | leg market worst way price (pkg ask) | |
| 151 | srcTimestamp | long | ||
| 152 | netTimestamp | long | ||
| 153 | timestamp | DateTime | from ats / exchange net timestamp if possible |
REPEATING FIELDS
OrderLegs
| # | Field | Type | Default Value | Comment |
|---|---|---|---|---|
| 140 | secKey | OptionKey | ||
| 141 | secType | enum : SpdrKeyType | ||
| 142 | side | enum : BuySell | ||
| 143 | ratio | ushort | ||
| 144 | atmVol | float | ATM (fwd uPrc) SR surface volatility | |
| 145 | sVol | float | SR Surface Volatility | |
| 146 | sPrc | float | SR Surface Price | |
| 147 | ve | float | ||
| 148 | sVolOk | enum : YesNo | Yes if live market and sVol are tracking as expected | |
| 149 | bid | float | leg bid price | |
| 150 | ask | float | leg ask price |
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 = 'NoticeMarkupVegaDir'
# 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=NoticeMarkupVegaDir'
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 = 'NoticeMarkupVegaDir'
# 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 = 'qtyTraded|vegaTraded|cumOpenSize|cumOpenVega|respSize|minSurfEdge|userSurfLimit|userProbLimit|rawRespPrice|incFees|feeEstimate|roundRule|respPrice|result|resultDetail|ticker|tradeDate|isTestAuction|auctionType|auctionSource|custSide|custQty|custPrc|hasCustPrc|custFirmType|noticeCommission|hasNoticeComm|numOptLegs|spreadClass|spreadFlavor|containsHedge|uBid|uAsk|refUPrc|netVe|pkgSurfPrc|pkgTheoPrc|pkgBidPrc|pkgAskPrc|srcTimestamp|netTimestamp|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 = 'accnt: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=NoticeMarkupVegaDir' \
--data-urlencode 'view=qtyTraded|vegaTraded|cumOpenSize|cumOpenVega|respSize|minSurfEdge|userSurfLimit|userProbLimit|rawRespPrice|incFees|feeEstimate|roundRule|respPrice|result|resultDetail|ticker|tradeDate|isTestAuction|auctionType|auctionSource|custSide|custQty|custPrc|hasCustPrc|custFirmType|noticeCommission|hasNoticeComm|numOptLegs|spreadClass|spreadFlavor|containsHedge|uBid|uAsk|refUPrc|netVe|pkgSurfPrc|pkgTheoPrc|pkgBidPrc|pkgAskPrc|srcTimestamp|netTimestamp|timestamp' \
--data-urlencode 'where=accnt: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 = 'NoticeMarkupVegaDir'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'qtyTraded|vegaTraded|cumOpenSize|cumOpenVega|respSize|minSurfEdge|userSurfLimit|userProbLimit|rawRespPrice|incFees|feeEstimate|roundRule|respPrice|result|resultDetail|ticker|tradeDate|isTestAuction|auctionType|auctionSource|custSide|custQty|custPrc|hasCustPrc|custFirmType|noticeCommission|hasNoticeComm|numOptLegs|spreadClass|spreadFlavor|containsHedge|uBid|uAsk|refUPrc|netVe|pkgSurfPrc|pkgTheoPrc|pkgBidPrc|pkgAskPrc|srcTimestamp|netTimestamp|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 = 'accnt: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 = 'qtyTraded: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=NoticeMarkupVegaDir' \
--data-urlencode 'view=qtyTraded|vegaTraded|cumOpenSize|cumOpenVega|respSize|minSurfEdge|userSurfLimit|userProbLimit|rawRespPrice|incFees|feeEstimate|roundRule|respPrice|result|resultDetail|ticker|tradeDate|isTestAuction|auctionType|auctionSource|custSide|custQty|custPrc|hasCustPrc|custFirmType|noticeCommission|hasNoticeComm|numOptLegs|spreadClass|spreadFlavor|containsHedge|uBid|uAsk|refUPrc|netVe|pkgSurfPrc|pkgTheoPrc|pkgBidPrc|pkgAskPrc|srcTimestamp|netTimestamp|timestamp' \
--data-urlencode 'where=accnt:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=qtyTraded: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 = 'NoticeMarkupVegaDir'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'qtyTraded|vegaTraded|cumOpenSize|cumOpenVega|respSize|minSurfEdge|userSurfLimit|userProbLimit|rawRespPrice|incFees|feeEstimate|roundRule|respPrice|result|resultDetail|ticker|tradeDate|isTestAuction|auctionType|auctionSource|custSide|custQty|custPrc|hasCustPrc|custFirmType|noticeCommission|hasNoticeComm|numOptLegs|spreadClass|spreadFlavor|containsHedge|uBid|uAsk|refUPrc|netVe|pkgSurfPrc|pkgTheoPrc|pkgBidPrc|pkgAskPrc|srcTimestamp|netTimestamp|timestamp'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'incFees|roundRule|result|isTestAuction|auctionType|auctionSource|custSide|hasCustPrc|custFirmType|hasNoticeComm|spreadClass|spreadFlavor|containsHedge'
# 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 = 'accnt: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=NoticeMarkupVegaDir' \
--data-urlencode 'measure=qtyTraded|vegaTraded|cumOpenSize|cumOpenVega|respSize|minSurfEdge|userSurfLimit|userProbLimit|rawRespPrice|incFees|feeEstimate|roundRule|respPrice|result|resultDetail|ticker|tradeDate|isTestAuction|auctionType|auctionSource|custSide|custQty|custPrc|hasCustPrc|custFirmType|noticeCommission|hasNoticeComm|numOptLegs|spreadClass|spreadFlavor|containsHedge|uBid|uAsk|refUPrc|netVe|pkgSurfPrc|pkgTheoPrc|pkgBidPrc|pkgAskPrc|srcTimestamp|netTimestamp|timestamp' \
--data-urlencode 'group=incFees|roundRule|result|isTestAuction|auctionType|auctionSource|custSide|hasCustPrc|custFirmType|hasNoticeComm|spreadClass|spreadFlavor|containsHedge' \
--data-urlencode 'where=accnt: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 = 'NoticeMarkupVegaDir'
# 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 = 'accnt: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=NoticeMarkupVegaDir' \
--data-urlencode 'where=accnt:eq:ExampleString'