I am using the eikon python api to extract some data. 
I am doing the below:- 
ek.get_timeseries(["912828N30="], 
["TR.YieldToMaturityAnalytics"], 
start_date="2018-10-09", 
end_date="2018-10-10") 
I get NaN for all the dates. 
However, I can extract the same data via excel api as below:- 
TR("912828N30","TR.YieldToMaturityAnalytics(ValuationDate=#1)",,E2,D2) 
where D2 is set to the dates : 2018-10-09 and 2018-10-10