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 4 8 7

How to obtain the closing price of the bond for multiple trading days?I can only get one day's closing price by the following method.

df = ek.get_data("QA182443131=", ['CF_CLOSE'], {'SDate': "2019-10-18", 'EDate': '2019-10-22'})[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.

@yuyang

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate 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


Upvotes
Accepted
78.9k 250 52 74

@yuyang

You can also use the get_timeseries method to retrieve the historical data, as shown below.


1573196110938.png (19.3 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.

Upvotes
18.2k 21 13 21

Hi Yuyang

CF_CLOSE field is from realtime database so it does not support historical data.

You can use TR.PriceClose or TR.ClosePrice fields instead.

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.

These two fields have been tried, but the data cannot be fetched

Hi @yuyang

Can you use TR.ASKPRICE, TR.BIDPRICE, TR.MIDPRICE fields ?

ahs.png (15.6 KiB)

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.