Comments (8)
Hello @domokane ,
I would like to work on this issue. Please let me know if it is alright.
Thanks you.
from financepy.
from financepy.
Thank you. I am looking at the code base. And once I have a plan, I will discuss with you.
from financepy.
Dear @domokane I have done some calculations. I will send you a notebook for your review. If I am on the right track I can incorporate into code together with the test cases.
from financepy.
I am attaching the notebook here. Someone else may have an opinion or suggestion.
.ipynb file inside a zipped file.
from financepy.
Hello @domokane ,
The Periscope example in the above link does not seem to calculate the modified duration correctly. Their modified duration and the sum of key rate durations are consistent with each other. However, the modified duration is not in line with FinancePy and MS Excel.
from financepy.
KRD_draft_by_sagayev_Bloomberg.pdf
Dear @domokane,
I have compared my numbers with Bloomberg. They are very close. I also added more comments to explain the code. Please let me know if it seems OK.
Also if there is a better approach let me know. I have not used function here. If we can agree on the path I will add it to Bond class as a method.
from financepy.
Hi - this looks pretty good. The differences are probably due to small details in the price-yield formula. Maybe try implementing it as a function. Please think about where it should go - should it be part of a separate key rate class ?
from financepy.
Related Issues (20)
- Refactor barrier option code to extract core model code from products into model folder. HOT 11
- Alternative Interpolation Schemes for Longstaff Schwarz HOT 1
- Some swap suggestions
- argument type issue - FXVanillaOption with SABR model HOT 3
- Re-generate manual when master is updated HOT 5
- Date Schedule._generate issue HOT 2
- Example of SOFR curve
- Potential issues for CDS pricing HOT 4
- Major implementation change for ibor_swap? A notebook example doesn't tie out anymore. HOT 12
- Bond Curve Fitting HOT 1
- Inconsistency in Day Count in Index Curve? HOT 3
- CDSOption insensitive to vol for Receiver HOT 4
- Division with wrong day count convention causes incorrect forward rates HOT 1
- Bond OAS and accrued interest HOT 2
- barrierOpt.value issue HOT 2
- choose to apply a Black'76 in Fx Vanilla option HOT 1
- Build SOFR curve - suggestions
- Updated FINGBMPROCESS_generatePaths HOT 4
- Backtesting of Strategy HOT 4
- 'bond.print_payments' error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from financepy.