This is a quick reference guide for the Data Library for Python on different asset types
If you’re new to the library, a shallow dive into LSEG APIs landscape, including the introduction to data library can be found in article Summary of Common LSEG APIs
- How to use the Data Library
- Where to go to figure out the available fields that I can access using the Data Libraries (such as the LD - LSEG Data or RD - Refinitiv Data Python Library)?
Please note that the data library in Codebook is the version 1 (Refinitiv Data Library). It will be upgraded to the newer version, version 2 - LSEG Data Library soon.
- After the rebranding and release of LSEG Data Library 2.0, the Refinitiv Data Library will become " Feature Complete", but we will continue to support it and provide maintenance releases. This is essential for customers who cannot migrate to the LSEG Data Library 2.0. However, new features will only be added to the LSEG data library.
In this article, we are focusing on using the access layer, which is the easiest way to get data. It provides simple interfaces allowing you to rapidly prototype solutions within interactive environments such as Jupyter Notebooks. It has been designed for quick experimentation with our data and for Financial Coders specific needs. (To learn more about Data Library for Python’s layers: example codes can be found here)
Table of contents
Here’s what included in this quick reference guide.
- Search
- Symbology
Convert symbols, Get data - get RIC from bond, Get data - get CUSIP and international CUSIP, Get data with Screener, Get data with Peers, Get data of instruments with all available fields, Get data of instruments with specific fields, Get constituent with Chain object - Timeseries
Get data with field level parameter, Get data with request level parameter (global parameter), Get history - Company guidance
- Earnings
- Analyst recommendations
- Industry Analysis / The Reference data Business Classification (TRBC)
- Ownership data
- Corporate actions data
- Volatility
Volatility, Equity implied volatility, Futures implied volatility - Portfolio and Lists
Portfolio, List, Monitor, Index/exchange constituents as of certain date, Index leavers/joiners - Index and Constituents
- Fixed income data
Bond status, Fixed income securities core reference data, Bond pricing, Bond analytics, Historical bond pricing, Historical analytics, Credit default swaps - Pricing streams
Using pricing streams with events, Using pricing streams as a data cache, Get a snapshot for a subset of instruments and fields
Quick Reference Guide
1) Search
- The search() function identifies a matching set of documents which satisfy the caller's criteria, sorts it, and selects a subset of the matches to return as the result. The search can be performed easily with the help of Advanced Search tool provided in Workspace / Eikon application
- To understand more about the search function, a powerful, search engine covering content such as quotes, instruments, organizations, and many other assets that can be programmatically integrated within your business Workflow, it’s introduced in this article
Get data
- Article: Find Your Right Companies with SCREENER
- Remark: TRBC Sector Classification
Get Data - EX-1.01.01-GetData.ipynb
Chains - EX-1.01.07-Chains.ipynb
3.2) Get data with request level parameter (global parameter)
3.3) Get history
12) Index and Constituents
There's an article Building historical index constituents, which explain the process of building historical constituents of a market index, underscoring its importance for investors, researchers, and various participants in the financial markets.
- Register or Log in to applaud this article
- Let the author know how much this article helped you
Get In Touch
Related APIs
Related Articles
Source Code
Request Free Trial
Call your local sales team
Americas
All countries (toll free): +1 800 427 7570
Brazil: +55 11 47009629
Argentina: +54 11 53546700
Chile: +56 2 24838932
Mexico: +52 55 80005740
Colombia: +57 1 4419404
Europe, Middle East, Africa
Europe: +442045302020
Africa: +27 11 775 3188
Middle East & North Africa: 800035704182
Asia Pacific (Sub-Regional)
Australia & Pacific Islands: +612 8066 2494
China mainland: +86 10 6627 1095
Hong Kong & Macau: +852 3077 5499
India, Bangladesh, Nepal, Maldives & Sri Lanka:
+91 22 6180 7525
Indonesia: +622150960350
Japan: +813 6743 6515
Korea: +822 3478 4303
Malaysia & Brunei: +603 7 724 0502
New Zealand: +64 9913 6203
Philippines: 180 089 094 050 (Globe) or
180 014 410 639 (PLDT)
Singapore and all non-listed ASEAN Countries:
+65 6415 5484
Taiwan: +886 2 7734 4677
Thailand & Laos: +662 844 9576