Is it possible to request a list of available services from ADS in an RDTS (TREP) using web socke...

...ts API?

I'm developing an application to post to RCRT over RDTS (TREP) using web sockets API. Although I know that I can ask the TREP administrator for details of what services are available, I'd like to do it via program. if not this, is there other info I can request that is NOT a market data instrument request? In other words, I'd like to request something from ADS or RCRT (Contex) (status? version? other attributes?) to verify the connection, not actual instrument data.

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @pj.chan,

    You can issue the following request:

    {
      "Key": {
        "Filter": 1
      },
      "ID": 2,
      "Streaming": true,
      "Domain": "Source"
    }

    The "Filter" value is a mask that provides different levels of details:

    • 1 (SERVICE_INFO_FILTER) - info that identifies a service
    • 2 (SERVICE_STATE_FILTER) - info about the current state of a service
    • 4 (SERVICE_GROUP_FILTER) - item group status and item group merge info
    • 8 (SERVICE_LOAD_FILTER) - info about the service workload
    • 24 (SERVICE_DATA_FILTER) - info that should be applied to all items associated
    • 32 (SERVICE_LINK_FILTER) - info about the upstream sources

    , which will provide more details in the response,

Answers

  • pj.chan
    pj.chan Explorer

    Great @nick.zincone, thanks for that! I'll give it a go. Is that documented somewhere?

  • Hi @pj.chan,

    There is no specific documentation around this request and the parameters, however, I did refer to the EMA documentation around sending a directory request and determined that the domain is 'Source' and that I needed to apply a 'Filter'. Section 27.2 of the WebSocket Protocol Spec outlines the parameters of a request.

  • pj.chan
    pj.chan Explorer
    https://community.developers.refinitiv.com/discussion/comment/78406#Comment_78406

    great idea. Thanks

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.