New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
1 0 0 0

Eurozone bonds issued from 2016

Hi! I have two questions.



The sales rep showed us a Python environment embedded in workspace that looked very user friendly to download data. Can you help me to find this embedded Python environment within workspace.


I also need to download all bond issues in the eurozone from 2016 to 2023 (I send you a screenshot of how this information looks like on Workspace). Could you please help me with the code?


Thanks in advance.

#technology#product#contentpython apibonds
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
7.5k 18 2 8

Hi @josemaria.martin,


The Python dev environment in Workspace you are referring to should be the Codebook.

As for getting the bonds data, you can leverage Search capabilities of LSEG Data Libraries for Python.

The easiest way to get started with search queries is to use the Advanced Search app in Workspace, build your search filters and extract the query as shown below:

screenshot-2024-10-28-at-104712.png

The example query above will look like the following:

rd.discovery.search(
view = rd.discovery.Views.GOV_CORP_INSTRUMENTS,
top = 10000,
filter = "(DbType eq 'GOVT' and IsActive eq true and (RCSCountryGenealogy eq 'M:DQ\G:AL' and (IssueDate ge 2016-01-01 and IssueDate le 2023-12-31)))",
select = "RIC,EJVAssetID,DTSubjectName,BusinessEntity,PI,SearchAllCategoryv3,SearchAllCategoryv2,SearchAllCategory,DBSTicker,CouponRate,MaturityDate,IssueDate,ISIN,RCSCurrencyLeaf,RCSCountryLeaf,DbTypeDescription,InstrumentTypeDescription,RCSCouponTypeGenealogy,FaceIssuedUSD,RCSBondGradeLeaf,RCSCountryGenealogy"
)

screenshot-2024-10-28-at-104837.png

You can also find this article about search useful - https://developers.lseg.com/en/article-catalog/article/building-search-into-your-application-workflow


Hope this helps.


Best regards,

Haykaz



icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.