Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by RHERESI · Sep 01, 2021 at 06:23 PM · eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonbondsbulk-download

Error downloading bonds because the list is too large for some countries

I am downloading bonds by country, the list of bonds from the US, CN and KR are too long for downloading, so I received different errors (Gateway Time-out, ) every time I try these countries. I was wondering which code kind I use to download these bonds by part if it is not possible to do it in bulk.

This is the code I am using:

#code for the fields

screen1 = 'SCREEN(U(IN(DEALS)/*UNV:DEALSBOND*/),TR.NIisECM=False, IN(TR.NINationHQ(NiDealPartRole=ISUP),'

screen2 = '), CURN=USD)'


#code for the fields

fields_firms = ['TR.NISdcPackageNumber',

'TR.NISdcPackageNumber.DealPackageID',

'TR.NISdcPackageNumber.DealId',

'TR.NISdcPackageNumber.IsTranchePrimary',

'TR.NISdcPackageNumber.SdcDealNumber',

'TR.NISDCTrancheId',

'TR.NIIssueDate',

'TR.NIRedemptionMaturityDate'

]


#code for parameters

parameters_screener = {'curn':'USD', 'NULL':'BLANK'}

ctry_code_list = ['US', 'CN' , 'KR']


# Retrieve firm list and info

firms_ric_list = {}

for ctry in ctry_code_list:

screen = screen1+ctry+screen2

df, err = ek.get_data(screen, fields_firms, parameters_screener)


with pd.ExcelWriter(os.path.join(d_bonds_dir,'screener_bonds_by_phyton.xlsx'), engine='openpyxl',mode='a') as writer:

df.to_excel(writer,sheet_name=ctry)

print(ctry)


People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Sep 01, 2021 at 10:50 PM

@RHERESI

The number of bond issue deals that satisfy your criteria for the US (where the issuer ultimate parent is headquartered in the US) is over 500K. It's no surprise that you experience time outs or other errors. If this is the amount of data you intend to consume, Eikon is not the best product for you, and I would recommend you consider one of Refinitiv Enterprise products that is designed for data consumption on an industrial scale. I should also mention that any data retrieved from Eikon is licensed for individual user's use only.

This said, you could add issue date ranges to reduce the size of the result set. E.g. if you add BETWEEN(TR.NIIssueDate,20210101,20210630), which restricts the issue date to the first half of 2021, the results set is reduced to ~8K deals.

If you don't need the data for each individual deal, and you're only interested in certain aggregated information, then another possibility may be to use Navigators in RDP Search service, which provide the capaability to summarize the distribution of the search results. For more info see the article titled Building Search into your Application Workflow

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
12 People are following this question.

Related Questions

Bond Amount Outstanding and Rating

Credit Ratings

Cash Flow For a Bond Portfolio

Retrieve historical data for expired corporate bond

Downloading data in a bulk, some Calendar Years (CY) are not recognized in some years for some variables, hence eikon does not download the data

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges