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 /
avatar image
Question by christoph.b · Dec 01, 2020 at 02:16 PM · python apieikondataapipython eikoneikonapifx rate

Gap in FX data via Eikon API

When I run this query:

df, err = ek.get_data(["EUR=", "USD="],["TR.FxRateComposite.date","TR.FxRateComposite"], {'SDate':'2000-01-01', 'EDate':'2020-12-01'})

I notice that there are roughly two years (approx. 2015-2016) of FX data that seems to be wrong. Picture attached. I've tried this with 10+ currencies with the same result. Does anyone know why this is the case?

screen-shot-2020-12-01-at-151450.png (77.6 KiB)

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.

3 Replies

  • Sort: 
avatar image
Best Answer
Answer by christoph.b · Dec 03, 2020 at 03:02 PM

Thank you @zoya.farberov for the tip. The gap is not present if I don't request "USD" since the query returns less than 10k data points. Thank you for your help!

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. · Dec 01, 2020 at 02:53 PM

I'm afraid I'm not reproducing this on my end. On my end

df, err = ek.get_data(["EUR="],
                      ["TR.FxRateComposite.date","TR.FxRateComposite"], 
                      {'SDate':'2000-01-01', 'EDate':'2020-12-01'})
df.plot.line(y='FX Rate Last')

produces

One thing I notice is that the number of rows in the dataframe you plot is >8K, whereas the dataframe returned by my code above contains <8K rows. Could you check how you get the rows corresponding to the flat line in your plot? Are they returned by get_data method? If yes, would you mind including the exact get_data call that returns the dataframe with suspect data and export the values in the dataframe to a CSV file, zip it and attach it to your post?


eur.png (16.0 KiB)
Comment
christoph.b

People who like this

1 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 zoya.farberov · Dec 01, 2020 at 02:54 PM

Hello @christoph.b,

I do not reproduce this on my side.

I can think of two possible causes, one is you may be hitting around 10K datapoints limit. See Eikon Data API Usage and Limits Guideline for more detailed info on this.

Suggest removing USD=, it does not seem to yield value, as is always 1.0

See if this helps.

The other, something may be off with charting, I do not see dates, try this:

See if it helps?


eurcont.gif (35.7 KiB)
eurchart.gif (112.6 KiB)
Comment
christoph.b

People who like this

1 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

Unpopulated TR.ExchangeCountry vs. populated TR.HeadquartersCountry

Price data missing for several RIC's using ek.get_timeseries in python API

Retrieving minutely bid prices

Server Error: code 500 by downloading the data from eikon

How do I retrieve a price for US92204A7028 Vanguard Information Technology Etf traded at NYSE ARCA?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • 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
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges