Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
atoti.finance.irr(*, cash_flows, market_value, date, precision=0.001, period=‘total’, guess=None)
Return the Internal Rate of Return based on the underlying cash flows and market values. The IRR is the rate that nullifies the Net Present Value: With:- the total number of days since the beginning
- the number of days since the beginning for date
- the unit period in days in which the rate is expressed
- the enhanced cashflow for date
- CF of the first day is the opposite of the market value for this day: .
- CF of the last day is increased by the market value for this day: .
- Otherwise CF is the input cash flow: .
- Parameters:
- cash_flows (VariableMeasureConvertible) – The measure representing the cash flows.
-
market_value (VariableMeasureConvertible) – The measure representing the market value, used to enhanced the cashflows first and last value.
If the cash flows don’t need to be enhanced then
0can be used. - date (Hierarchy) – The date hierarchy. It must have a single date level.
- precision (float) – The precision of the IRR value.
-
period (Literal [ ‘annualized’ , ‘total’ ]) –
Unit period in which to express the rate.
annualized: The measure evaluates to a rate as a percentage per 365-day period, i.e. .total: The measure evaluates to a rate over the entire date range, i.e. .
- guess (float | None) – Estimated value of the IRR, used when the default guesses do not converge to a solution.
- Return type: MeasureDefinition
Example
See also:
The IRR Wikipedia page.