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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 1

Getting the closing price for a bond

The formula < eikon.get_timeseries("PTOTEMOE027=", "BID", interval='daily', start_date='2017-12-25', end_date='2018-01-02') > gives the closing yields. I want the closing prices. Can you help me?

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonbonds
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.

Sorry in the formula, the BID should have been CLOSE.

1 Answer

Upvotes
Accepted
4.6k 26 7 22

Try using the following:

 df, e = eikon.get_data(["PTOTEMOE027="], ["TR.BIDPRICE.date", "TR.BIDPRICE.value"], parameters={'SDate':'20171215', 'EDate':'20180102'})
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