Potential wrong hardcoded number for bond future conversion factor
I am a newbie so sorry if i am mistaken, but https://github.com/domokane/FinancePy/blob/master/financepy/products/bonds/bond_future.py#L55
class BondFuture-> conversion_factor -> issue_dt = Date(new_mat.d, new_mat.m, 2000)
Is this 2000 intentional?
Hi - Yiou could be right. I have been ill but hope to be back on this in a 3-4 weeks. If you need it sooner, consider fixing it yourself and submitting a pull request. Thanks
Hi - I have found time to look at this. Yes the 2000 is intentional but is a slight hack for the purpose of calculating the conversion factor. I am simply supplying an issue date in the past on the same month and day as the bond maturity. This should not change anything.