Back to Community
Bond Yields / Issue using data.history()

I am trying to use treasury yield curve rates as indicators when to buy certain baskets of equities.

Since there seems to not currently be any yield data (such as 10yr rate) available through Quantopian, I am using fetch_csv to get data from Quandl (

I am having issues accessing past data from my fetched data set in order to do something like -> buy SPX when yields pull back x %.

I am trying to run some test cases to see how data.history() works, but I keep getting an error "ValueError: Invalid field: 10_Year_Yield"

This is what I'm running. Would someone mind helping ?

Loading notebook preview...
Notebook previews are currently unavailable.
1 response

Hi Gabriel,

I'm also looking for the way to get yield data. Have you found any solution?