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 pablo · May 31, 2018 at 02:58 PM · apipythonpython apidataroomapidata

ERROR in Data

Hi guys, I am downloading a historical data of several instruments and I find the surprise that the number exported to my csv file comes with many decimal places. I would like to know if my code is wrong or simply the API has a problem.

My code is this:

import eikon as ek

ek.set_app_id('XXXXXXXXXXXXXX')

df=ek.get_timeseries(['CARC.BA'], start_date='2016-01-01' , end_date='2018-01-01')

df.to_csv('CARC.BA_2016-01_2018-01-01.csv')

Then when i see my data i found numbers like this:

HIGH:

this same problem with all my historical data.

1,45E+16 1,44E+16 1,4E+16 1,4E+16 1,42E+16 1,52E+16

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 jirapongse.phuriphanvichai · Jun 01, 2018 at 02:09 AM

I am unable to replicate the problem. This is data in csv file.

You can verify the data by setting raw_output to True.

df=ek.get_timeseries(['CARC.BA'], start_date='2016-01-01' , end_date='2018-01-01', raw_output=True)
df

The output is raw JSON data.

{'timeseriesData': [{'dataPoints': [['2016-01-04T00:00:00Z',
     2.0916375,
     2.0916375,
     2.0916375,
     2.0916375,
     4876.56202377324],
    ['2016-01-05T00:00:00Z',
     2.0916375,
     2.0916375,
     2.0916375,
     2.0916375,
     768.0585187442853],

carc-ba.png (27.7 KiB)
Comment
pablo

People who like this

1 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
pablo · Jun 01, 2018 at 08:55 AM 0
Share

If you see your data well and compare it with the data from: www.bolsar.com.ar you realize that it does not match, that on the one hand. On the other hand, the value 2.0916375 is impossible to be that.

avatar image
REFINITIV
Alex Putkov. ♦♦ pablo · Jun 01, 2018 at 11:09 AM 1
Share

@pablo
If I understand correctly what seems wrong to you is the number of decimal places in stock prices, right? Argentine stocks are quoted to 3 decimal places. When you see more decimals in the stock price history, this is very likely the effect of price history adjustment for capital change (and some dividend payment) events. If you look at the current price history for CARC.BA on Eikon you'll see that historical prices have a max of 3 decimals up to 2 Jan 2018 back. All earlier prices have more decimals. This is the result of the rights issue with ex date of 2 Jan 2018.

avatar image
REFINITIV
Alex Putkov. ♦♦ Alex Putkov. ♦♦ · Jun 01, 2018 at 11:12 AM 1
Share

Due to this rights issue on 2 Jan 2018 all previous price history was adjusted by a factor of 0.82025.
If you'd like to further discuss any price history inconsistencies you see, I suggest you raise a case with Thomson Reuters Helpdesk by either calling the Helpdesk number in your country or by using Contact Us capability in your Eikon application.

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

Related Questions

Is there a way to get AI for bonds with no RIC assigned by using Python API?

get_timeseries doesn't start from the date I put - Eikon API python

EIKON API PYTHON AUTOMATION

Missing fundamentals data via Python API

Companies missing from historical ASX 100 data retrieved with Python API

  • 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