Connecting to Multiple Services simultaneously

mktdata
mktdata Contributor

We are currently using the RFA 8.2 C++ API to consume market data and would like to clarify some functionality. Is it possible for a consumer application to simultaneously connect to multiple services on TREP/ADS, such as IDN_SELECT etc. and send requests to these different services for different symbols?

Can you also provide the multiple services available and purpose of each one?

Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @mktdata

    Thank you for reaching out to us.

    ADS can advertise multiple services via source directory messages. Please refer to the RFA developer guide in section14.2.3 regarding Requesting a Directory.

    Then, the application can specify a service name in an item request message.

    Handle* StarterConsumer::sendItemRequest(const RFA_String& itemName, const RFA_String& serviceName, UInt8 indicationMask, UInt8 msgModelType, Int32 interType)
    {
        Handle* pHandle = 0;
        ReqMsg reqMsg;
        AttribInfo attribInfo;


        reqMsg.setMsgModelType(msgModelType);
        reqMsg.setInteractionType(interType);


        attribInfo.setNameType(INSTRUMENT_NAME_RIC);
        attribInfo.setName(itemName);
        attribInfo.setServiceName(serviceName);


        reqMsg.setAttribInfo(attribInfo);

    You can only specify only one service in an item request message.

Answers