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 AAMZ · Oct 30, 2020 at 05:46 PM · eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonapidatastream-api

Harmonising the 'dates' fields in DSWS and Eikon Python APIs

Hi, I'm downloading some data using both the DSWS and Eikon APIs for Python.

I'm having trouble understanding the differences in dates between the two APIs.

For example, when I look up Return on Equity for a particular ISIN, as per the below

ds.get_data(tickers='AT00000AMAG3',fields=['WC08301'], start='2014-12-31',freq='Y')

and

ek.get_data(['AT00000AMAG3'], ['TR.ROEActValue.date', 'TR.ROEActValue.calcdate','TR.ROEActValue'], {SDate':'0','EDate':'2014-12-31','Frq':'Y'})[0].sort_values(by='Calc Date')

each return the same data, but the dates are shifted. Taking the first line of the output results as an example, using DSWS, the dates refer to the end of the year (e.g. 2014-12-31), while when using Eikon, 'Date' seems to refer to some kind of a Reporting Date (e.g. 2015-02-27) and 'Calc Date' seems to refer to exactly the same month & day from the date of my request, for the year in question (e.g. 2015-10-30).

I can make some manual adjustments, but this seems arbitrary and also might create other errors--I'm also working with hundreds of companies and so it would be better to avoid ex post manipulation like this too much.

Would you know of a way in which I could modify the above search request(s) in order to harmonize these results? I'm ultimately interested in matching the data to the date in which it actually took place, i.e. like the DSWS output--but if it's not possible to modify the Eikon search request to produce dates that match the DSWS ouptut, then the opposite (i.e. modifying the DSWS request to match the Eikon output) is also fine.

Thank you very much in advance for any help you can provide!

Best regards,

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 · Oct 30, 2020 at 06:02 PM

To retrieve the end date of the fiscal period, that the value of TR.ROEActValue corresponds to, use TR.ROEActValue.periodenddate field in Eikon Data APIs.

Comment

People who like this

0 Show 3 · 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
AAMZ · Nov 03, 2020 at 12:12 PM 0
Share

Thank you, that's very helpful. May I ask where one can find out this information? I looked at all of the user guides I could find, but nothing listed something like '.periodenddate' available. My hope is that by finding some commands like 'show all possible date types available' it could answer some other questions that I have.

Thanks again

avatar image
REFINITIV
Alex Putkov.1 ♦♦ AAMZ · Nov 03, 2020 at 02:09 PM 0
Share

The best metadata discovery tool for use with Eikon Data APIs is the Code Creator app in Eikon. It allows you to browse or search for data items and check applicable parameters. When you select data items and parameters it produces a code snippet for retrieving this data, which you can copy & paste. The Parameters & Quick Functions tab contains a drop-down named Output, which lists various outputs the selected data item can produce. This is where you find .date, .calcdate, .periodenddate, .fpa etc.

avatar image
AAMZ Alex Putkov.1 ♦♦ · Nov 11, 2020 at 10:23 AM 0
Share

Great, many thanks again.

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

Related Questions

Does there exist a manual showing how to perform Datastream requests using Thomson Dataworks Enterprise SOAP API?

Client Requests.

how to download real time data in API

Equivalent FieldIDs for existing Eikon screens.

How do I fix this error?

  • 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
  • FX Venues
    • FX Trading – RFQ Maker
  • 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
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges