Skip to content

This workflow shows how to use the Eikon SCREENER application with the Eikon Data API and Refinitiv Data Platform Library for Python together to find the list of companies and their issued bonds.

License

Notifications You must be signed in to change notification settings

LSEG-API-Samples/Workflow.EikonAPI.RDPLibrary.Python.ESGBondSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use SCREENER and RDP Search for finding Bonds ESG Data Workflow

  • Last update: May 2022
  • Environment: Windows
  • Compiler: Conda distribution, Python
  • Prerequisite: Refinitiv Eikon or Refinitiv Workspace application with access to Eikon Data APIs and RDP

Overview

This workflow shows how to use the Eikon SCREENER application with the Eikon Data API and Refinitiv Data Platform Library for Python together.

The example Notebook application use the Eikon SCREENER application with the Eikon Data API find the companies based on SCREENER query, then finds the Bonds that issued by the company with Refinitiv Data Platform Library for Python Search function, and finally gets the Environmental, Social, and Governance (ESG) data of the Bonds via the Eikon Data API.

Prerequisite

This example requires the following dependencies software and libraries.

  1. Refinitiv Eikon or Refinitiv Workspace application with access to Eikon Data APIs and RDP Library for Python
  2. For JupyterLab user only, Python Anaconda or MiniConda distribution/package manager.
  3. Access to Refinitiv Workspace/Eikon CodeBook application (or alternatively, the JupyterLab application)
  4. Internet connection.

Note:

  • This Project has been qualified with Python version 3.9.12 and Conda version 4.10.1

Please contact your Refinitiv's representative to help you to access Refinitiv Workspace/Eikon and Refinitiv Data Platform credentials.

Application Files

This example project contains the following files and folders

  1. CodeBook/ESG_Screener_RDP_Search.ipynb: The CodeBook workflow application file.
  2. CodeBook/ESG_Screener.ipynb: The CodeBook SCREENER example application file.
  3. JupyterLab/jupyterlab_ESG_Screener_RDP_Search.ipynb: The JupyterLab workflow application file.
  4. JupyterLab/ESG_Screener.ipynb: The JupyterLab SCREENER example application file.
  5. requirements.txt: The project dependencies configuration file (for JupyterLab only).
  6. LICENSE.md: Project's license file.
  7. README.md: Project's README file.
  8. images: Project images folder.

Eikon Data API Setup

For JupyterLab user only: please follow a step-by-step guide to set up your Eikon Data API and your AppKey in Eikon Data API Quick Start page.

How to run this example with the CodeBook

If you are Refinitiv Workspace or Eikon user, you can access CodeBook, the cloud-hosted Jupyter Notebook development environment for Python scripting from the application. The CodeBook is natively available in Refinitiv Workspace and Eikon as an app (no installation required!!), providing access to Refinitiv APIs that are already pre-installed on the cloud.

You can upload the CodeBook/ESG_Screener_RDP_Search.ipynb and CodeBook/ESG_Screener.ipynb notebook application files to the your CodeBook with the following steps:

  1. In the Eikon/Workspace application, search for the CodeBook (or CODEBK).

    Figure-1

  2. Once the CodeBook finished initialize, click the upload button and select the ESG_Screener_RDP_Search.ipynb or ESG_Screener.ipynb notebook file.

    Figure-2

Please see more detail regarding the CodeBook app in this Use Eikon Data API or RDP Library in Python in CodeBook on Web Browser article.

How to run this example with the JupyterLab

Please note that the Refinitiv Workspace/Eikon application integrates a Data API proxy that acts as an interface between the Eikon Data API Python library and the Eikon Data Platform. For this reason, the Refinitiv Workspace/Eikon application must be running when you use the Eikon Data API Python library.

The first step is to unzip or download the example project folder into a directory of your choice, then set up a Conda environment for running the application with the steps below.

  1. Open Anaconda Prompt and go to the project's folder
  2. Run the following command in the Anaconda Prompt application to create a Conda environment named ESG_Bonds_Search for the project.
    (base) $>conda create --name ESG_Bonds_Search python=3.9
    
  3. Once the environment is created, activate Conda environment named ESG_Bonds_Search with this command in Anaconda Prompt.
    (base) $>conda activate ESG_Bonds_Search
    
  4. Run the following command to install the Eikon Data API, RDP Library for Python, JupyterLab application, and all dependencies in the ESG_Bonds_Search environment (Reference)
    (ESG_Bonds_Search) $>pip install -r requirements.txt
    
  5. Once the dependencies installation process success, Set up your OS Environment variables with the following variables and values.
    RDP_USERNAME=YOUR_RDP_USERNAME
    RDP_PASSWORD=YOUR_RDP_PASSWORD
    RDP_APP_KEY=YOUR_RDP_APP_KEY_HERE
    EIKON_APP_KEY=YOUR_EIKON_APP_ID_HERE
    
  6. Alternatively, create a file name .env with the following variables and values.
    #RDP
    RDP_USERNAME=YOUR_RDP_USERNAME
    RDP_PASSWORD=YOUR_RDP_PASSWORD
    RDP_APP_KEY=YOUR_RDP_APP_KEY_HERE
    # Eikon Data API
    EIKON_APP_KEY=YOUR_EIKON_APP_ID_HERE
    
    If you are choosing this way, do not add the .env to your version control/Git repository.
  7. Open and log in Refinitiv Workspace/Eikon application with your Workspace/Eikon credential.
  8. In the current Anaconda Prompt, go to the project's JupyterLab folder. Run the following command to start the JupyterLab application in the JupyterLab folder.
    (ESG_Bonds_Search) $>JupyterLab>jupyter lab
    

References

You can find more detail regarding the Eikon Data APIs, RDP Library for Python and related technologies from the following resources:

For any question related to this example or Eikon Data API, please use the Developers Community Q&A Forum - Eikon Data API.

For any question related to this example or Eikon Data API, please use the Developers Community Q&A Forum - Refinitiv Data Platform.

GitHub

About

This workflow shows how to use the Eikon SCREENER application with the Eikon Data API and Refinitiv Data Platform Library for Python together to find the list of companies and their issued bonds.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published