Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Analytics] Trading, IRR for a bond or bonds #253

Open
yellowbean opened this issue Dec 15, 2024 · 2 comments
Open

[Analytics] Trading, IRR for a bond or bonds #253

yellowbean opened this issue Dec 15, 2024 · 2 comments

Comments

@yellowbean
Copy link
Owner

yellowbean commented Dec 15, 2024

Background

User has positions in a deal, expecting IRR from the position:

Input information

  • bond name of position
  • size of position
  • history cashflow of position ( invest amount/date, collected cash )

IRR result

  • Holding to maturity
    IRR on all cashflows
  • Trading at Dates X ( a list of dates to set possible trading scenario )
    IRR on
    • collected cash
    • projected cash
    • sell price
      • pv via constant rate
      • pv via discount margin + index curve
      • pv at a specific price

Location

It should be a pricing assumption

Ref

the potential performance hit may be reliefed by Rust

@yellowbean yellowbean mentioned this issue Dec 15, 2024
5 tasks
@yellowbean yellowbean changed the title [Analytics] IRR for a bond or bonds [Analytics] Trading, IRR for a bond or bonds Dec 15, 2024
@yellowbean
Copy link
Owner Author

yellowbean commented Dec 19, 2024

Route 2:

rewrite the irr from hledger
https://github.com/nomeata/hledger-irr/blob/master/Main.hs

@yellowbean yellowbean mentioned this issue Jan 11, 2025
10 tasks
@yellowbean
Copy link
Owner Author

Route 2:

rewrite the irr from hledger https://github.com/nomeata/hledger-irr/blob/master/Main.hs

Using root.finder instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant