def add_instrument(self, par, T, coup, price,
                       compounding_freq=2):
        self.instruments[T] = (par, coup, price, compounding_freq)
Save instrument info by maturity
dataset/ETHPy150Open jamesmawm/Mastering-Python-for-Finance-source-codes/B03898_05_Codes/BootstrapYieldCurve.py/BootstrapYieldCurve.add_instrument