-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomerssecurities
Description
Bill.dcf attribute throws large dcf years when using convention ActActICMA.
I think the problem is the effective date of 29th Feb 2024.
Could you please see if _dcf_actacticma working well for the leap year?
Replicate code as below,
from rateslib import Bill
from datetime import datetime as dt
bill_actacticma = Bill(
effective= dt(2024, 2, 29),
termination= dt(2024, 5, 29), # 90 calendar days
modifier='NONE',
calendar= 'bus',
payment_lag= 0,
notional=-1000000,
currency='usd',
convention='ACTACTICMA',
settle=0,
calc_mode='ustb',
)
bill_act360 = Bill(
effective= dt(2024, 2, 29),
termination= dt(2024, 5, 29), # 90 calendar days
modifier='NONE',
calendar= 'bus',
payment_lag= 0,
notional=-1000000,
currency='usd',
convention='ACT360',
settle=0,
calc_mode='ustb',
)
print(bill_actacticma.dcf) # 8333333.333333333
print(bill_act360.dcf) # 0.25thank you.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomerssecurities