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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
18k 21 12 20

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea