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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 2 4 7

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.

Upvotes
Accepted
15.8k 28 8 12

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
16k 41 12 19

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.