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 (https://www.quandl.com/data/USTREASURY/YIELD-Treasury-Yield-Curve-Rates).
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 ?