TREP API - Custom fields Request

Options
josa
josa Contributor

Hello,

Could somebody please help me with example of how to request some particular fields (E.g., ASK_PRICE, BID_PRICE, TRADE_DATE) for RicCodes IBM.N, MSFT.ITC and TRI.N via the API.

Also, I don't want to load enumtype.def and RDMFieldDictionary from local file.

Thanks

Best Answer

  • Hello @josa

    You can use Dynamic View feature to request some particular
    fields by specifying set of interested fields in a request. After subscribing
    the request, you will receive a response message that contains only those entries
    defined by the request. Please refer to RFA Java Developers Guide(RFAJ_DeveloperGuide.pdf)
    section “13.3.2.1 Creating Request Message With View” to create a request
    message specifying particular fields. The example application using dynamic view is in <RFAJ Package>\Examples\com\reuters\rfa\example\omm\batchviewcons

    However, ADS must have installed the required license (the SNAP_AND_DYNAMIC_VIEW
    license key) to enable the feature as well. Otherwise, the application will get
    an error. You should contact Account team, Andrew Forman(andrew.forman@thomsonreuters.com) who should be able assist you to obtain the license.

    If you do not want to load enumtype.def and RDMFieldDictionary
    from local file, you can request them from the server. Please refer to section “12.2.3.3
    Requesting Dictionary” in RFA Java Developers Guide. RFAJ package also provide
    an example application named DictionaryDemo which demonstrates how to download dictionaries from the server. It is in <RFAJ
    Package>\Examples\com\reuters\rfa\example\omm\dictionary

Answers