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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
23 1 0 3

How do I get all records for the 10 year yield - I only get 59 records

Hi,

I'm trying to get the 10 year yield going back for decades. When I use the following call using the API, I only get 59 records even though I am requesting 5000 records.

How do I get more data with the following code? Thanks! Robby


request = timeSeries.SetupDataRequest("91282CAE1=")

.WithView(view)

.WithAllFields()

.WithInterval(CommonInterval.Daily)

.WithNumberOfPoints(5000)

.OnDataReceived(DataReceivedCallback)

.OnStatusUpdated(OnStatusUpdated)

.CreateAndSend();



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
23 1 0 3

I switched to the ticker .TRXVUSGOV10U and was able to get all the data I wanted. I was also able to use the view "YIELD"

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
23 1 0 3

oops... view = "CLEAN_PRC" in the call to .WithView()

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