Dr4k3z / option-calibration

0 stars 0 forks source link

Units of time #3

Open Dr4k3z opened 3 months ago

Dr4k3z commented 3 months ago

Throught pricing routines, units of time must be consistent: time2maturity, rate and volatility must all be measure with respect to the same reference (Years, Months, Weeks, Days). How can I enforce that in the code? Maybe volatility and rate shouldn't just be standard floats but some user-defined type?