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
1 0 0 1

What is the correct way of translating this historical excel query in to a ek_get_timeseries() or ek_get_data() Eikon Python API call?

=RHistory(C1,"LAST_QUOTE.Timestamp;LAST_QUOTE.Close","START:09-Oct-2000 INTERVAL:1MO",,"TSREPEAT:NO SORT:ASC CH:Fd",C3)

C1="NA-SAS-MFZ"

C3="Timestamp"

Every approach so far pretty much fail along these lines.

( Instrument LAST_QUOTE.Timestamp LAST_QUOTE.Close

#0 NA-SAS-MFZ NaN NaN, [{'code': 251658244, 'col': 1, 'message': "Error: Field 'LAST_QUOTE.Timestamp'

#was not found in response for the instrument 'NA-SAS-MFZ'", 'row': 0}, {'code': 251658244, 'col': 2, 'message': "Error: Field

#'LAST_QUOTE.Close' was not found in response for the instrument 'NA-SAS-MFZ'", 'row': 0}])

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

@htan

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
18.2k 21 13 21

Hi @htan

Please try this code which gives you the same result.


ahs.png (126.2 KiB)
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.

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.