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.

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