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 steffen.fuchs · Jul 08, 2019 at 08:19 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonzero-curve

How can I pull the 3m EUR swap zero curve (0#EURABQEZ=R) to Python?

Hi,

I'm trying to pull above zero curve to python via the eikon api. I also need the curve at past dates.

Can you please assist?

Thanks,

Steffen

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.

5 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Jul 10, 2019 at 03:15 PM

@steffen.fuchs
The Helpdesk checked the data entitlements on your Eikon account. Given the variant of Eikon you subscribe to you're not entitled to view the real-time curve. You are however entitled to view delayed data for individual tenors. So, instead of requesting the chain RIC for the curve, you need to construct the list of individual tenor delayed RICs and request the data for the list:

curve = ['/EURABQEONZ=R','/EURABQETNZ=R','/EURABQE1WZ=R',...]
ek.get_data(curve,['DSPLY_NAME','MATUR_DATE', 'PRIMACT_1','SEC_ACT_1'])
Alternatively you could upgrade your Eikon subscription to a higher tier Eikon variant that includes access to real-time zero curves.
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.

avatar image
REFINITIV
Answer by Alex Putkov.1 · Jul 08, 2019 at 06:15 PM

For current curve use

zc_df, err = ek.get_data('0#EURABQEZ=R',['DSPLY_NAME','MATUR_DATE',
                            'PRIMACT_1','SEC_ACT_1'])
To reconstruct historical curve you'd need to retrieve zero rate on a given date for each instrument in the chain.
ek.get_timeseries(zc_df.loc[3:,'Instrument'].tolist(),
                  'CLOSE',start_date='2019-06-20',end_date='2019-06-20')
You can only retrieve zero rate using this method, not a discount factor. And you'd need to calculate maturity dates based on the tenor.
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.

avatar image
Answer by steffen.fuchs · Jul 09, 2019 at 03:04 AM

Thanks, Alex. I getbelow error message. Is this a rights issue?

Also, is there any kind of more extensive documentation where I could find how to build such requests?

[{'code': 251658243,
  'col': 1,
  'message': "'Access Denied' for the instrument '0#EURABQEZ=R'",
  'row': 0},
 {'code': 251658243,
  'col': 2,
  'message': "'Access Denied' for the instrument '0#EURABQEZ=R'",
  'row': 0},
 {'code': 251658243,
  'col': 3,
  'message': "'Access Denied' for the instrument '0#EURABQEZ=R'",
  'row': 0},
 {'code': 251658243,
  'col': 4,
  'message': "'Access Denied' for the instrument '0#EURABQEZ=R'",
  'row': 0}]

Comment

People who like this

0 Show 1 · 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.

avatar image
REFINITIV
Alex Putkov.1 ♦♦ · Jul 09, 2019 at 10:29 AM 0
Share

The error message indicates you're not entitled to view this chain. Are you able to display it in a Quote app in Eikon? Can you retrieve any of the constituents of this chain, e.g. do you get the same error message if you call

ek.get_data('EURABQE1YZ=R',['DSPLY_NAME','MATUR_DATE',
                            'PRIMACT_1','SEC_ACT_1'])
avatar image
Answer by steffen.fuchs · Jul 09, 2019 at 10:41 AM

I can see the curve constituents, yields and discount factors in the quote app but the curve does not plot. Instead of a chart a boch opens which says:

"0#EURABQEZ=R: The user does not have permission for the requested data"

For the constituents I do not get any error message. I can pull the data.

Comment

People who like this

0 Show 1 · 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.

avatar image
REFINITIV
Alex Putkov.1 ♦♦ · Jul 09, 2019 at 03:15 PM 0
Share

This is not the expected behavior. I opened case 07778952 on your behalf with Refinitiv Helpdesk. The Helpdesk will get in touch with you to troubleshoot the issue.

avatar image
Answer by steffen.fuchs · Jul 10, 2019 at 04:07 AM

Thanks, Alex.

Is there any more extensive documentation for creating requests?

BR,

Steffen

Comment

People who like this

0 Show 1 · 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.

avatar image
REFINITIV
Alex Putkov.1 ♦♦ · Jul 10, 2019 at 09:36 AM 0
Share

All documentation available is here on the Developer Portal. There's API Reference Guide under the Documentation tab. And there's a bunch of tutorials illustrating some specific use cases.

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 >
7 People are following this question.

Related Questions

Trying to fetch Close Bid Price for CMO tranche from Python

Retrieve Commodity Flows data using Python API

What other parameters can be used with the statement pertaining to Corporate Actions data such as Stock Splits?

Company trees don't match in Eikon online tool and the Eikon Proxy API

Download Swap Zero Curve with Rstudio

  • 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