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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 0 2 5

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 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
11.5k 16 7 10

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 5.0 MiB each and 10.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 5.0 MiB each and 10.0 MiB total.

Upvotes
13k 32 12 18

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea