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
9 1 1 6

How to get multiple bond history prices in bulk through the eikon API

How to get multiple bond history prices in bulk through the eikon API?

RIC code: CN175143SH= , CN113672CB=

1692239472000.png

eikon-data-api#technologybondsprice-history
1692239472000.png (260.1 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.

Hello @anchu

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


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar 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
14.2k 30 5 10

Hi @anchu ,

This data can be retrieved using function get_timeseries or get_data in Eikon Data API as below

You may check Eikon Data API - Overview for more detail, including Eikon Data API - Quick start guide

  1. get_timeseries
    ek.get_timeseries(['CN175143SH=','CN113672CB='], 
                      start_date='2023-08-01', 
                      end_date='2023-08-17', 
                      interval='daily')
    1692266022919.png
  2. get_data
df, err = ek.get_data(instruments=['CN175143SH=','CN113672CB='],
                      fields=[ 'TR.BIDPRICE.date','TR.BIDPRICE','TR.ASKPRICE.date','TR.ASKPRICE'],
                     parameters={'SDate':'2023-08-01', 'EDate':'2023-08-17'})
df

1692265990792.png


1692266022919.png (45.2 KiB)
1692265990792.png (89.8 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.