question

Upvotes
Accepted
3 0 2 3

How do I make restful snapshot request to rtc for more than 1 instrument when service is specified

I'm making HTTP snapshot requests to RTC 3.5.3. The rtc is providing multiple services so I need to specify it in the url. This works:

wget "http://X.Y.Z:8080/snapshot/"A.NB"?Service=<NON_DEFAUT_SERVICE_NAME>"

Any attempt to provide a comma separated list of RICs fails. I see that there is an "items" parameter but that only seems to work with default service i.e. no Service=<NON_DEFAULT_SERVICE_NAME> parameter is used in URL.

Any suggestions?

Did I choose the correct tags and forum for this question?


ADShttp
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
22.4k 59 14 21

Hi @michael.watrous,

Please see this article on how to use the syntax - https://developers.refinitiv.com/en/article-catalog/article/get-stock-prices-using-rest-with-ads


Batch instruments can be subscribed using both HTTP GET and POST. For GET use this syntax:

http://server:port/snapshot?items=MSFT.O,GE.N&view=BID,ASK,TRDPRC_1&service=ELEKTRON_DD 
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.