question

Upvotes
Accepted
11 2 3 7

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.

1 Answer

· Write an Answer
Upvotes
Accepted
15.5k 33 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.