Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
17 3 7 10

get_data produces multiple identical lines

I am pulling a time series using get_data, and for some ids I get multiple identical lines. What causes such behavior?

data_frame<- data.table(get_data(list("NO0003019002"), list('TR.PriceClose(SDate=19890101,EDate=20170805,Curn=NOK).date','TR.PriceClose(SDate=19890101,EDate=20170805,Curn=NOK)'),debug=F))

data_frame has 4060 lines, while unique(data_frame) has 117. Note, that it is not due to prices staying the same, as one of the columns is the time stamp.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apitime-seriesr
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
4.3k 2 4 5

The result is similar in Eikon EXCEL :

=TR("NO0003019002";"TR.PriceClose.date;TR.PriceClose";"CH=Fd RH=IN SDate=19890101 EDate=20170805 Curn=NOK")

7227 rows but a lot of duplicate rows.

I'll escalate the issue

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Interesting: the number of rows produced by API and Excel is not the same as you got 7227 lines, while I got 4060 in the API. Even though both share the duplicate row problem.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.