Interest rates (pynance.interest
)¶

pynance.interest.
conttogrowth
(contrate)[source]¶ Convert continuous compounding rate to annual growth

pynance.interest.
growthfromrange
(rangegrowth, startdate, enddate)[source]¶ Annual growth given growth from start date to end date.

pynance.interest.
growthtocont
(annualgr)[source]¶ Convert annual growth to continuous compounding rate

pynance.interest.
loanpayment
(amount, rate, npmts)[source]¶ Amount of a constant loan payment.
Parameters: amount : float
amount of loan
rate : float
interest rate for the given payment, i.e., monthly interest if the loan is to be paid off monthly.
npmts : int
number of payments to be made.
Returns: out : float
amount to be paid each period.

pynance.interest.
pvannuity
(rate, npmts, amt=1.0)[source]¶ Present value of n payments of a given size given an interest rate per payment interval of rate.
Changed in version 0.3.0: amt can be specified in function call.
Parameters: rate : float
Interest rate per payment period. Note that if payments are monthly and known interest rate is annual, rate must be calculated as effective monthly interest.
npmts : int
Number of payments.
amt : float, optional
Amount of each payment. Defaults to 1.

pynance.interest.
retfromrange
(rangeret, startdate, enddate)[source]¶ Annual return given return from start date to end date.