New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

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-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-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.