Question about terminal dat api

Hi team, we used to use python library eikon before (import eikon as ek), and I noticed recently the codecreator in terminal changed to use refinitiv.data (import refinitiv.data as rd) package. Besides, I also found some code samples using refinitiv.dataplatform.eikon (import refinitiv.dataplatform.eikon as rd). May I know 1) will eikon package end of life? 2) which one is the official, refinitiv.data or refinitiv.dataplatform.eikon? 3) should someone using eikon before migrated to new package?

Thanks in advance for your help!

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @Julian.Bai

    The RD library supports 3 sessions (or access points) as follows:

    • Desktop Session: Connect to the Workspace/Eikon desktop application that runs in the same machine using App Key (the same way as Eikon Data API)
    • Platform Session: Connect to the RDP using RDP credential.
    • Streaming services with a deployed ADS: Connect to local RTDS server.

    rd-diagram.png

    The clients can configure which access point they want to connect via the RD - Lib configuration file.

    {
        "logs": {
            "level": "debug",
            "transports": {
                "console": {
                    "enabled": false
                },
                "file": {
                    "enabled": false,
                    "name": "refinitiv-data-lib.log"
                }
            }
        },
        "sessions": {
            "default": "platform.rdp",
            "platform": {
                "rdp": {
                    "app-key": "YOUR APP KEY GOES HERE!",
                    "username": "YOUR RDP LOGIN OR MACHINE GOES HERE!",
                    "password": "YOUR RDP PASSWORD GOES HERE!"
                },
                "deployed": {
                    "app-key": "YOUR APP KEY GOES HERE!",
                    "realtime-distribution-system": {
                        "url" : "YOUR DEPLOYED HOST:PORT GOES HERE!",
                        "dacs" : {
                            "username" : "YOUR DACS ID GOES HERE!",
                            "application-id" : 256,
                            "position" : ""
                        }
                    }
                }
            },
            "desktop": {
                "workspace": {
                    "app-key": "YOUR APP KEY GOES HERE!"
                }
    }

        }
    }

    And the code uses

    refinitiv.data as rd 
    rdp.opensession()
    rd.get_data(['LSEG.L', 'VOD.L'])
    ...

    as usual.

    Please find more detail on the following resources:

Answers