[][src]Module finql::fixed_income

Structs

CashAmount

Container for an amount of money in some currency

CashFlow

Container for a single cash flow

Traits

FixedIncome

Functions

calculate_cash_flows_ytm

Calculate the internal rate of return of a stream of cash flows The calculation assumes, that the notional payments and beginning and end are included and calculates that annual rate, that gives total aggregate zero value of all cash flows provided as cash_flows, if discounted to the payment date of the first cash flow. It is assumed that all cash flow are in the same currency, otherwise a DiscountError will be returned.

get_cash_flows_after

Get all future cash flows with respect to a given date

round2digits