quantlib.pricingengines.bond.bondfunctions.bond_yield

bond_yield(Bond bond, Price price, DayCounter day_counter, Compounding compounding, Frequency frequency, Date settlement_date=Date(), Real accuracy=1e-10, Size max_iterations=100, Rate guess=0.05)