For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 2 5 8

Websocket API batch sample for EDP

Hi, I’m looking for a sample script similar with market_price_edpgw_service_discovery.py, (to be used with EDP) but capable to support multiple RICS (batch) also with the possibility to specify only some fields into the code. Anyone has a sample to help to me? Thanks in advance!

elektron-sdktreprdp-apiwebsocketsrrto
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.

@caio.zentil

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,
AHS

@caio.zentil

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
24.6k 54 17 14

Hello @caio.zentil

For the batch subscriptions, you can just change value the Name attribute in the JSON request message from a single string ("EUR=") to an array of string (["EUR=","JPY=","GOOG.O"]).
Please find more detail regarding the Batch Request in this tutorial.

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.

Upvotes
7.6k 15 6 9

@caio.zentil

Please check the following example created by @Umer Nalla. It seems to support your requirement.

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.

Upvotes
22k 58 14 21

Hi @caio.zentil, This article describes both the Batch request and View functionality in the Websocket API. Views are used to limit the number of fields in response messages.

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.