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 thomas.goodman · Apr 23, 2020 at 10:15 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonapieikon-com-api

Cannot Match Excel Historical Data Using Python

Hi,

I am trying to translate an Excel sheet into Python, but cannot get the same data out.

In Excel if I use the following formula I get the data below:

=RHistory("GBP2Y=","ASK.Close","START:22-Apr-2020:16:10 END:22-Apr-2020:16:20 INTERVAL:1M")

04/22/2020 16:2023.204/22/2020 16:1923.504/22/2020 16:1823.3604/22/2020 16:1723.704/22/2020 16:1623.104/22/2020 16:1523.1604/22/2020 16:1423.1604/22/2020 16:1323.104/22/2020 16:1231.804/22/2020 16:1126.2504/22/2020 16:1022.24


This matches what I see using the GUI:

If I try the comparable formula in Python:

ek.get_timeseries('GBP2Y=', 'ASK.Close', start_date='2020-04-22 16:10:00', end_date='2020-04-22 16:20:00', interval='minute')

I get all NaNs. Same if I try 'BID.Close' as the field.

If I change the Field to '*', i.e. all available fields, I get the following:

This doesn't match at all and doesn't contain bid/ask information.

Do you know how I can get the same data using Python?

Thanks

1587636559706.png (112.4 KiB)
1587636709034.png (22.4 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
REFINITIV
Best Answer
Answer by Alex Putkov.1 · May 29, 2020 at 08:58 PM

@thomas.goodman

I believe you should be able to retrieve the timeseries you're interested in using Refinitiv Data Platform Library for Python. Follow the link above for the overview, then see Quick Start Guide and Historical Pricing examples under RDP Library Examples on Github.

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 Gurpreet · Apr 23, 2020 at 08:13 PM

Hi @thomas.goodman,

Please see a comparable answer here. Essentially, RHistory is a COM API and not same as Eikon timeseries API call. I assume bar generation is not aligned to the exact same time, which is why you are seeing different high/low values etc.

I would ask you to open a content query at MyRefinitiv and talk to a content expert about it.

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 thomas.goodman · May 06, 2020 at 12:02 PM

Hi,

Thanks for the answer. Do you know if/when this functionality is going to be included in the Eikon Python package?

Thanks


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

Related Questions

Can I retrieve the P/E and Auditor datapoint of a Fund (Unit Trust) in Excel using the API?

Can you use the .COM API or Data API to pull intraday mid-prices? Just need the field in Python is the end goal.

Excel continuous retrieval of data

MIssing References VBA

data verification

  • 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