quantlib.pricingengines.bond.bondfunctions.bond_yield

bond_yield(Bond bond, Real cleanPrice, DayCounter dayCounter, Compounding compounding, Frequency frequency, Date settlementDate=Date(), Real accuracy=1e-10, Size maxIterations=100, Rate guess=0.05)