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
REFINITIV
Question by MF · Mar 10, 2020 at 03:21 PM · eikon data apitimeseriesget_timeseriestime and sales

get_timeseries - Historical fields inconsistencies (interval = TAS)

Hello all,

I have the following code returning either 27 or 52 fields depending on the end date.

(the difference lies in line 2, startdate definition)

Scenario 1: 52 fields returned

endDate = datetime.datetime(year=2020,month=3,day=10)
startDate=datetime.datetime(year=2020,month=3,day=4)

tickreq = ek.get_timeseries('BNPP.PA', fields='*', start_date=startDate, end_date=endDate, interval='tas', calendar=None, corax=None, normalize=False, raw_output=True, debug=False)
#--------------Fields and data extraction from raw data
lfields=[]
for i in tickreq['timeseriesData'][0]['fields']:
    lfields.append(i['name'])
tickdf=pd.DataFrame(tickreq['timeseriesData'][0]['dataPoints'], columns =lfields)

Scenario 2: 27 fields returned

endDate = datetime.datetime(year=2020,month=3,day=10)
startDate=datetime.datetime(year=2020,month=3,day=8)

tickreq = ek.get_timeseries('BNPP.PA', fields='*', start_date=startDate, end_date=endDate, interval='tas', calendar=None, corax=None, normalize=False, raw_output=True, debug=False)
#--------------Fields and data extraction from raw data
lfields=[]
for i in tickreq['timeseriesData'][0]['fields']:
    lfields.append(i['name'])
tickdf=pd.DataFrame(tickreq['timeseriesData'][0]['dataPoints'], columns =lfields)

I understand 08032020 is a sunday, so no trades to be found in theory, but I would still expect to get the same data structure, as I'am asking for all fields.

Is this normal behaviour?

Thank you for your help

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
Answer by zoya.farberov · Mar 10, 2020 at 06:50 PM

Hello @MF

I run the same test, the structure appears to be the same, some fields may not be populated?


20200310-lfields.gif (97.5 KiB)
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 MF · Mar 11, 2020 at 09:05 AM

Hello Zoya,

thank you for your answer,

I rerun the test and still have a difference:


I am even more confused now as we run pretty much the same code but get different results...


1583917478908.png (224.5 KiB)
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 MF · Mar 11, 2020 at 02:05 PM

Hello Zoya,

The problem is consistent as I can replicate it on my side for the same date,

I could no replicate it for the same stock at another date,

I can replicate it for another stock (SOGN.PA) for the same starting date: 08/03/2020

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

Related Questions

Eikon Desktop Data API stopped working after changing to a new user on Eikon terminal

Why does changing Time Zone with get_timeseries() change the number of returned outputs

get_timeseries throws if cannot get info for 1 ticker

get_timeseries "normalize" parameter

Data values are different for 'tick' and 'minute' time-series requests

  • 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
  • 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