Пример #1
0
def test_xirr():
    tas = [ (date(2010, 12, 29), -10000),
        (date(2012, 1, 25), 20),
        (date(2012, 3, 8), 10100)]
    assert rep.xirr(tas) == 0.010061264038086382
Пример #2
0
def test_xirr2():
    tas = [ (date(2010, 12, 29), -10000),
            (date(2012, 12, 29), 10100)]
    assert rep.xirr(tas) == 0.0049807190895081455