RRTO Streaming API

Hi all,

I am new to RRTO Streaming API and I am currently writing c# code to login and subscribe to tick data for various products (i.e. multiple RICs)

I have been playing with the example application and that application seems to register for one ric only.

My question is, does anyone know if I can subscribe to multiple RICs in one WebSocket connection?

Thank you in advance.


Regards,

Hee-Tae

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    Hello @hee-tae.kim ,

    Please see

    MarketPriceBatchViewExample.cs on GitHub/Refinitiv

    for an example via Webscoket in C#. Batch is the name of the approach for submitting multiple instruments together as a single request, View is the way to select only specific fields of interest, for example:

       /* Request items as a batch.
    * Include a view indicating the desired fields for these items. */
    sendMessage(
    "{"
    + "\"ID\": 2,"
    + "\"Key\": {\"Name\":[\"TRI.N\",\"IBM.N\",\"T.N\"]},"
    + "\"View\":[\"BID\",\"ASK\",\"BIDSIZE\"]"
    + "}"
    );

    hope this information helps

Answers