will websockets be able to consume dataType 2 ?

graham.street
graham.street Explorer
edited February 5 in WebSocket API

My inhouse RTDS has two types of service. One with dataType 6 (IDN, Bloomberg etc) and dataType2 (inhouse services)

I am using the examples that came with the websockets API. Work fine with dataType 6 but I get a Json conversion error for the dataType 2. Is there a way to make the websockets examples consume dataType 2 ?

Best Answer

  • graham.street
    graham.street Explorer
    Answer ✓

    According to the servicegroup.cpd file

    <serviceGroupName>.serviceGroup*dataType: { 1 - N }

    Indicates the format of the data provided by this service group.
    1 - standard ANSI Page format
    2 - standard Marketfeed Record format
    6 - standard Refinitiv Wire format

    Default value: 6

    When I looked in the ads_websocke.cpd ffile I did see this, which answers my question :)

    @B@MN@S@LFalse,True@True@ALLOW WS CONNECTIONS@ adsallowWSConnections : True
    #help
    allowWSConnections: { True, False }

    Enables the WebSocket server for clients to access the JSON encoded data.

    WARNING: Marketfeed services (dataType : 2) are NOT supported with WebSockets
    as there is no direct conversion from Marketfeed to JSON. Marketfeed services
    must be converted to RWF by setting the dataType to 6 in either the ADH or ADS/POP
    which will force automatic conversion from Marketfeed to RWF for the entire service
    prior to conversion to JSON.

    Default value: True

    #end

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @graham.street

    Thank you for reaching out to us.

    Do you mean the domain type? The domain type 6 is MarketPrice domain while the domain type 2 is a source directory domain.