domokane / FinancePy

A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives.
GNU General Public License v3.0
2.16k stars 322 forks source link

"bond.full_price_from_ytm" is always computed by "face=100" right? #149

Closed lan-slot closed 1 year ago

lan-slot commented 1 year ago

Dear author:

In "FINBOND_ExampleAppleCorp.ipynb", no matter what number is set to the face, for example what u set is "face = ONE_MILLION", the "bond.full_price_from_ytm(settlement_date, ytm, yieldConvention))" is always computed by "face=100" right? Cause,If I change "face = ONE_MILLION" to any value, the result will not change. It is always "Full Price = = 102.091564"

domokane commented 1 year ago

Yes. The face_amount is only used to calculate the accrued interest and the principal (clean_price x face_amount).

All prices are on a face of 100.

lan-slot commented 1 year ago

Yes. The face_amount is only used to calculate the accrued interest and the principal (clean_price x face_amount).

All prices are on a face of 100.

thank u so much!