Requesting 5000 records of 10 year Yield only returning 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("CLEAN_PRC")

.WithAllFields()

.WithInterval(CommonInterval.Daily)

.WithNumberOfPoints(5000)

.OnDataReceived(DataReceivedCallback)

.OnStatusUpdated(OnStatusUpdated)

.CreateAndSend();

Best Answer

  • 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"