Schema: SecDefRequestGateway (ID: 5190)
METADATA
Attribute | Value |
---|---|
Topic | 5120-srse-gateway |
MLink Token | Internal |
SRSE Product | SRTrade |
Note: The symbol
=
next to a field number indicates that it is a primary key.
BODY
# | Field | Type | Comment |
---|---|---|---|
10= | secRequestID | long | |
100 | secDefType | enum : SecDefType | |
103 | accnt | string(16) | routing code of exchange session handling product def request |
476 | clientFirm | string(16) | |
106 | altRequestId | string(24) | Alternate request ID. Can by used by client for tracking |
109 | secKey1 | OptionKey | Symbol for leg #1. Must be a valid symbol. |
112 | secType1 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
115 | ratio1 | ushort | Ratio for leg #1. Must be greater than zero. |
118 | side1 | enum : BuySell | Order side for leg #1. |
121 | refPrc1 | double | Reference price for leg #1. |
124 | refDelta1 | float | Reference delta for leg #1. |
127 | secKey2 | OptionKey | Symbol for leg #2. Must be a valid symbol. |
130 | secType2 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
133 | ratio2 | ushort | Ratio for leg #2. Must be greater than zero. |
136 | side2 | enum : BuySell | Order side for leg #2. |
139 | refPrc2 | double | Reference price for leg #2. |
142 | refDelta2 | float | Reference delta for leg #2. |
145 | secKey3 | OptionKey | Symbol for leg #3. Must be a valid symbol. |
148 | secType3 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
151 | ratio3 | ushort | Ratio for leg #3. Must be greater than zero. |
154 | side3 | enum : BuySell | Order side for leg #3. |
157 | refPrc3 | double | Reference price for leg #3. |
160 | refDelta3 | float | Reference delta for leg #3. |
163 | secKey4 | OptionKey | Symbol for leg #4. Must be a valid symbol. |
166 | secType4 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
169 | ratio4 | ushort | Ratio for leg #4. Must be greater than zero. |
172 | side4 | enum : BuySell | Order side for leg #4. |
175 | refPrc4 | double | Reference price for leg #4. |
178 | refDelta4 | float | Reference delta for leg #4. |
181 | secKey5 | OptionKey | Symbol for leg #5. Must be a valid symbol. |
184 | secType5 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
187 | ratio5 | ushort | Ratio for leg #5. Must be greater than zero. |
190 | side5 | enum : BuySell | Order side for leg #5. |
193 | refPrc5 | double | Reference price for leg #5. |
196 | refDelta5 | float | Reference delta for leg #5. |
199 | secKey6 | OptionKey | Symbol for leg #6. Must be a valid symbol. |
202 | secType6 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
205 | ratio6 | ushort | Ratio for leg #6. Must be greater than zero. |
208 | side6 | enum : BuySell | Order side for leg #6. |
211 | refPrc6 | double | Reference price for leg #6. |
214 | refDelta6 | float | Reference delta for leg #6. |
217 | secKey7 | OptionKey | Symbol for leg #7. Must be a valid symbol. |
220 | secType7 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
223 | ratio7 | ushort | Ratio for leg #7. Must be greater than zero. |
226 | side7 | enum : BuySell | Order side for leg #7. |
229 | refPrc7 | double | Reference price for leg #7. |
232 | refDelta7 | float | Reference delta for leg #7. |
235 | secKey8 | OptionKey | Symbol for leg #8. Must be a valid symbol. |
238 | secType8 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
241 | ratio8 | ushort | Ratio for leg #8. Must be greater than zero. |
244 | side8 | enum : BuySell | Order side for leg #8. |
247 | refPrc8 | double | Reference price for leg #8. |
250 | refDelta8 | float | Reference delta for leg #8. |
253 | secKey9 | OptionKey | Symbol for leg #9. Must be a valid symbol. |
256 | secType9 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
259 | ratio9 | ushort | Ratio for leg #9. Must be greater than zero. |
262 | side9 | enum : BuySell | Order side for leg #9. |
265 | refPrc9 | double | Reference price for leg #9. |
268 | refDelta9 | float | Reference delta for leg #9. |
271 | secKey10 | OptionKey | Symbol for leg #10. Must be a valid symbol. |
274 | secType10 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
277 | ratio10 | ushort | Ratio for leg #10. Must be greater than zero. |
280 | side10 | enum : BuySell | Order side for leg #10. |
283 | refPrc10 | double | Reference price for leg #10. |
286 | refDelta10 | float | Reference delta for leg #10. |
289 | secKey11 | OptionKey | Symbol for leg #11. Must be a valid symbol. |
292 | secType11 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
295 | ratio11 | ushort | Ratio for leg #11. Must be greater than zero. |
298 | side11 | enum : BuySell | Order side for leg 1#1. |
301 | refPrc11 | double | Reference price for leg #11. |
304 | refDelta11 | float | Reference delta for leg #11. |
307 | secKey12 | OptionKey | Symbol for leg #12. Must be a valid symbol. |
310 | secType12 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
313 | ratio12 | ushort | Ratio for leg #12. Must be greater than zero. |
316 | side12 | enum : BuySell | Order side for leg #12. |
319 | refPrc12 | double | Reference price for leg #12. |
322 | refDelta12 | float | Reference delta for leg #12. |
325 | secKey13 | OptionKey | Symbol for leg #13. Must be a valid symbol. |
328 | secType13 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
331 | ratio13 | ushort | Ratio for leg #13. Must be greater than zero. |
334 | side13 | enum : BuySell | Order side for leg #13. |
337 | refPrc13 | double | Reference price for leg #13. |
340 | refDelta13 | float | Reference delta for leg #13. |
343 | secKey14 | OptionKey | Symbol for leg #14. Must be a valid symbol. |
346 | secType14 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
349 | ratio14 | ushort | Ratio for leg 1#4. Must be greater than zero. |
352 | side14 | enum : BuySell | Order side for leg #14. |
355 | refPrc14 | double | Reference price for leg #14. |
358 | refDelta14 | float | Reference delta for leg #14. |
361 | secKey15 | OptionKey | Symbol for leg #15. Must be a valid symbol. |
364 | secType15 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
367 | ratio15 | ushort | Ratio for leg #15. Must be greater than zero. |
370 | side15 | enum : BuySell | Order side for leg #15. |
373 | refPrc15 | double | Reference price for leg #15. |
376 | refDelta15 | float | Reference delta for leg #15. |
379 | secKey16 | OptionKey | Symbol for leg #16. Must be a valid symbol. |
382 | secType16 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
385 | ratio16 | ushort | Ratio for leg #16. Must be greater than zero. |
388 | side16 | enum : BuySell | Order side for leg #16. |
391 | refPrc16 | double | Reference price for leg #16. |
394 | refDelta16 | float | Reference delta for leg #16. |
397 | secKey17 | OptionKey | Symbol for leg #17. Must be a valid symbol. |
400 | secType17 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
403 | ratio17 | ushort | Ratio for leg #17. Must be greater than zero. |
406 | side17 | enum : BuySell | Order side for leg #17. |
409 | refPrc17 | double | Reference price for leg #17. |
412 | refDelta17 | float | Reference delta for leg #17. |
415 | secKey18 | OptionKey | Symbol for leg #18. Must be a valid symbol. |
418 | secType18 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
421 | ratio18 | ushort | Ratio for leg #18. Must be greater than zero. |
424 | side18 | enum : BuySell | Order side for leg #18. |
427 | refPrc18 | double | Reference price for leg #18. |
430 | refDelta18 | float | Reference delta for leg #18. |
433 | secKey19 | OptionKey | Symbol for leg #19. Must be a valid symbol. |
436 | secType19 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
439 | ratio19 | ushort | Ratio for leg #19. Must be greater than zero. |
442 | side19 | enum : BuySell | Order side for leg #19. |
445 | refPrc19 | double | Reference price for leg #19. |
448 | refDelta19 | float | Reference delta for leg #19. |
451 | secKey20 | OptionKey | Symbol for leg #20. Must be a valid symbol. |
454 | secType20 | enum : SpdrKeyType | Security Type [Stock, Future, Option] |
457 | ratio20 | ushort | Ratio for leg #20. Must be greater than zero. |
460 | side20 | enum : BuySell | Order side for leg #20. |
463 | refPrc20 | double | Reference price for leg #20. |
466 | refDelta20 | float | Reference delta for leg #20. |
469 | modifiedBy | string(24) | user who last modified this record |
472 | modifiedIn | enum : SysEnvironment | |
475 | timestamp | DateTime | timestamp of last modification |
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 = 'SecDefRequestGateway'
# 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=SecDefRequestGateway'
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 = 'SecDefRequestGateway'
# 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 = 'secDefType|accnt|clientFirm|altRequestId|secKey1|secType1|ratio1|side1|refPrc1|refDelta1|secKey2|secType2|ratio2|side2|refPrc2|refDelta2|secKey3|secType3|ratio3|side3|refPrc3|refDelta3|secKey4|secType4|ratio4|side4|refPrc4|refDelta4|secKey5|secType5|ratio5|side5|refPrc5|refDelta5|secKey6|secType6|ratio6|side6|refPrc6|refDelta6|secKey7|secType7|ratio7|side7|refPrc7|refDelta7|secKey8|secType8|ratio8|side8|refPrc8|refDelta8|secKey9|secType9|ratio9|side9|refPrc9|refDelta9|secKey10|secType10|ratio10|side10|refPrc10|refDelta10|secKey11|secType11|ratio11|side11|refPrc11|refDelta11|secKey12|secType12|ratio12|side12|refPrc12|refDelta12|secKey13|secType13|ratio13|side13|refPrc13|refDelta13|secKey14|secType14|ratio14|side14|refPrc14|refDelta14|secKey15|secType15|ratio15|side15|refPrc15|refDelta15|secKey16|secType16|ratio16|side16|refPrc16|refDelta16|secKey17|secType17|ratio17|side17|refPrc17|refDelta17|secKey18|secType18|ratio18|side18|refPrc18|refDelta18|secKey19|secType19|ratio19|side19|refPrc19|refDelta19|secKey20|secType20|ratio20|side20|refPrc20|refDelta20|modifiedBy|modifiedIn|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=SecDefRequestGateway' \
--data-urlencode 'view=secDefType|accnt|clientFirm|altRequestId|secKey1|secType1|ratio1|side1|refPrc1|refDelta1|secKey2|secType2|ratio2|side2|refPrc2|refDelta2|secKey3|secType3|ratio3|side3|refPrc3|refDelta3|secKey4|secType4|ratio4|side4|refPrc4|refDelta4|secKey5|secType5|ratio5|side5|refPrc5|refDelta5|secKey6|secType6|ratio6|side6|refPrc6|refDelta6|secKey7|secType7|ratio7|side7|refPrc7|refDelta7|secKey8|secType8|ratio8|side8|refPrc8|refDelta8|secKey9|secType9|ratio9|side9|refPrc9|refDelta9|secKey10|secType10|ratio10|side10|refPrc10|refDelta10|secKey11|secType11|ratio11|side11|refPrc11|refDelta11|secKey12|secType12|ratio12|side12|refPrc12|refDelta12|secKey13|secType13|ratio13|side13|refPrc13|refDelta13|secKey14|secType14|ratio14|side14|refPrc14|refDelta14|secKey15|secType15|ratio15|side15|refPrc15|refDelta15|secKey16|secType16|ratio16|side16|refPrc16|refDelta16|secKey17|secType17|ratio17|side17|refPrc17|refDelta17|secKey18|secType18|ratio18|side18|refPrc18|refDelta18|secKey19|secType19|ratio19|side19|refPrc19|refDelta19|secKey20|secType20|ratio20|side20|refPrc20|refDelta20|modifiedBy|modifiedIn|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 = 'SecDefRequestGateway'
# Replace with your desired view. A "|" separated list of views can be provided
# If no view is provided, all views will be returned
VIEW = 'secDefType|accnt|clientFirm|altRequestId|secKey1|secType1|ratio1|side1|refPrc1|refDelta1|secKey2|secType2|ratio2|side2|refPrc2|refDelta2|secKey3|secType3|ratio3|side3|refPrc3|refDelta3|secKey4|secType4|ratio4|side4|refPrc4|refDelta4|secKey5|secType5|ratio5|side5|refPrc5|refDelta5|secKey6|secType6|ratio6|side6|refPrc6|refDelta6|secKey7|secType7|ratio7|side7|refPrc7|refDelta7|secKey8|secType8|ratio8|side8|refPrc8|refDelta8|secKey9|secType9|ratio9|side9|refPrc9|refDelta9|secKey10|secType10|ratio10|side10|refPrc10|refDelta10|secKey11|secType11|ratio11|side11|refPrc11|refDelta11|secKey12|secType12|ratio12|side12|refPrc12|refDelta12|secKey13|secType13|ratio13|side13|refPrc13|refDelta13|secKey14|secType14|ratio14|side14|refPrc14|refDelta14|secKey15|secType15|ratio15|side15|refPrc15|refDelta15|secKey16|secType16|ratio16|side16|refPrc16|refDelta16|secKey17|secType17|ratio17|side17|refPrc17|refDelta17|secKey18|secType18|ratio18|side18|refPrc18|refDelta18|secKey19|secType19|ratio19|side19|refPrc19|refDelta19|secKey20|secType20|ratio20|side20|refPrc20|refDelta20|modifiedBy|modifiedIn|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 = 'secDefType: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=SecDefRequestGateway' \
--data-urlencode 'view=secDefType|accnt|clientFirm|altRequestId|secKey1|secType1|ratio1|side1|refPrc1|refDelta1|secKey2|secType2|ratio2|side2|refPrc2|refDelta2|secKey3|secType3|ratio3|side3|refPrc3|refDelta3|secKey4|secType4|ratio4|side4|refPrc4|refDelta4|secKey5|secType5|ratio5|side5|refPrc5|refDelta5|secKey6|secType6|ratio6|side6|refPrc6|refDelta6|secKey7|secType7|ratio7|side7|refPrc7|refDelta7|secKey8|secType8|ratio8|side8|refPrc8|refDelta8|secKey9|secType9|ratio9|side9|refPrc9|refDelta9|secKey10|secType10|ratio10|side10|refPrc10|refDelta10|secKey11|secType11|ratio11|side11|refPrc11|refDelta11|secKey12|secType12|ratio12|side12|refPrc12|refDelta12|secKey13|secType13|ratio13|side13|refPrc13|refDelta13|secKey14|secType14|ratio14|side14|refPrc14|refDelta14|secKey15|secType15|ratio15|side15|refPrc15|refDelta15|secKey16|secType16|ratio16|side16|refPrc16|refDelta16|secKey17|secType17|ratio17|side17|refPrc17|refDelta17|secKey18|secType18|ratio18|side18|refPrc18|refDelta18|secKey19|secType19|ratio19|side19|refPrc19|refDelta19|secKey20|secType20|ratio20|side20|refPrc20|refDelta20|modifiedBy|modifiedIn|timestamp' \
--data-urlencode 'where=accnt:eq:ExampleString' \
--data-urlencode 'limit=500' \
--data-urlencode 'order=secDefType: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 = 'SecDefRequestGateway'
# Replace with fields you want to see aggregate values for. A "|" separated list of measures should be provided
MEASURE = 'secDefType|accnt|clientFirm|altRequestId|secKey1|secType1|ratio1|side1|refPrc1|refDelta1|secKey2|secType2|ratio2|side2|refPrc2|refDelta2|secKey3|secType3|ratio3|side3|refPrc3|refDelta3|secKey4|secType4|ratio4|side4|refPrc4|refDelta4|secKey5|secType5|ratio5|side5|refPrc5|refDelta5|secKey6|secType6|ratio6|side6|refPrc6|refDelta6|secKey7|secType7|ratio7|side7|refPrc7|refDelta7|secKey8|secType8|ratio8|side8|refPrc8|refDelta8|secKey9|secType9|ratio9|side9|refPrc9|refDelta9|secKey10|secType10|ratio10|side10|refPrc10|refDelta10|secKey11|secType11|ratio11|side11|refPrc11|refDelta11|secKey12|secType12|ratio12|side12|refPrc12|refDelta12|secKey13|secType13|ratio13|side13|refPrc13|refDelta13|secKey14|secType14|ratio14|side14|refPrc14|refDelta14|secKey15|secType15|ratio15|side15|refPrc15|refDelta15|secKey16|secType16|ratio16|side16|refPrc16|refDelta16|secKey17|secType17|ratio17|side17|refPrc17|refDelta17|secKey18|secType18|ratio18|side18|refPrc18|refDelta18|secKey19|secType19|ratio19|side19|refPrc19|refDelta19|secKey20|secType20|ratio20|side20|refPrc20|refDelta20|modifiedBy|modifiedIn|timestamp'
# Replace with fields you want to see aggregated. A "|" separated list of fields should be provided
GROUP = 'secDefType|secType1|side1|secType2|side2|secType3|side3|secType4|side4|secType5|side5|secType6|side6|secType7|side7|secType8|side8|secType9|side9|secType10|side10|secType11|side11|secType12|side12|secType13|side13|secType14|side14|secType15|side15|secType16|side16|secType17|side17|secType18|side18|secType19|side19|secType20|side20|modifiedIn'
# 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=SecDefRequestGateway' \
--data-urlencode 'measure=secDefType|accnt|clientFirm|altRequestId|secKey1|secType1|ratio1|side1|refPrc1|refDelta1|secKey2|secType2|ratio2|side2|refPrc2|refDelta2|secKey3|secType3|ratio3|side3|refPrc3|refDelta3|secKey4|secType4|ratio4|side4|refPrc4|refDelta4|secKey5|secType5|ratio5|side5|refPrc5|refDelta5|secKey6|secType6|ratio6|side6|refPrc6|refDelta6|secKey7|secType7|ratio7|side7|refPrc7|refDelta7|secKey8|secType8|ratio8|side8|refPrc8|refDelta8|secKey9|secType9|ratio9|side9|refPrc9|refDelta9|secKey10|secType10|ratio10|side10|refPrc10|refDelta10|secKey11|secType11|ratio11|side11|refPrc11|refDelta11|secKey12|secType12|ratio12|side12|refPrc12|refDelta12|secKey13|secType13|ratio13|side13|refPrc13|refDelta13|secKey14|secType14|ratio14|side14|refPrc14|refDelta14|secKey15|secType15|ratio15|side15|refPrc15|refDelta15|secKey16|secType16|ratio16|side16|refPrc16|refDelta16|secKey17|secType17|ratio17|side17|refPrc17|refDelta17|secKey18|secType18|ratio18|side18|refPrc18|refDelta18|secKey19|secType19|ratio19|side19|refPrc19|refDelta19|secKey20|secType20|ratio20|side20|refPrc20|refDelta20|modifiedBy|modifiedIn|timestamp' \
--data-urlencode 'group=secDefType|secType1|side1|secType2|side2|secType3|side3|secType4|side4|secType5|side5|secType6|side6|secType7|side7|secType8|side8|secType9|side9|secType10|side10|secType11|side11|secType12|side12|secType13|side13|secType14|side14|secType15|side15|secType16|side16|secType17|side17|secType18|side18|secType19|side19|secType20|side20|modifiedIn' \
--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 = 'SecDefRequestGateway'
# 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=SecDefRequestGateway' \
--data-urlencode 'where=accnt:eq:ExampleString'