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
23 4 4 5

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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

Upvotes
Accepted
23 4 4 5

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 512.0 KiB each and 1.0 MiB total.

Upvotes
23 4 4 5

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