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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 2 4

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-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.

Upvotes
Accepted
38.1k 69 35 53

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

Upvotes
18k 21 12 20

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 5.0 MiB each and 10.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)
Click below to post an Idea Post Idea