Comments (11)
Hi @parthvnp , i have already done a PR a few weeks ago which was merged. I was wondering if the Date needed to be passed as floats but as sir @domokane merged and refactored without modifying the Date format so i'm unsure whether this is still needed or not.
from financepy.
Hello everyone
I'm interested in working on that issue, please let me know if someone already started
If i'm not mistaken, _value_one and value_mc are the two only functions to move
Do I create a new model (with which name ?) for those two or should they be moved in a already existig model ? I tend to say the first case but I do not really master the various existing models
Let me know,
Gautier
from financepy.
Hi Gautier
This is new - I posted it last week so it's yours if you want it.
Yes that would be correct. I think a number of other models have the same issue but I would like to start with barrier options.
Best
D
from financepy.
Create a new model file under the models folder and put the core code there. The interface should only take floats and integers and bools and types and rates.
from financepy.
Both _value_one and value_mc uses severals class attributes (expiry, strike ...) : do you want to pass the EquityBarrierOption to be passed as a parameter & create getters for each attributes needed or rather pass each needed attributes as a parameter ?
As far as I've seen, others models avoid being class specific, do you confirm i should keep the same logic here ?
from financepy.
Hi - no I want the interface to the models to be as simple as possible so that they can be called directly if needed without using the higher level classes. This is sometime required for speed.
from financepy.
I see the product classes as wrappers around the lower level models.
from financepy.
@gpelleri Any updates on the issue? If you need help, more than happy to collaborate!
from financepy.
Hi - it would be good if one of you could remove the dates from the model interface as it is against the design I would like to enforce - I want the underlying models to be directly callable from outside the product in case that becomes necessary. Then I can close this issue.
from financepy.
Sure, my bad for the misunderstanding then. I'll do it today
from financepy.
OK thanks.
from financepy.
Related Issues (20)
- Support for Zero-Coupon Bond HOT 4
- CDSCurve class does not depend on recovery rate HOT 2
- Issue of Bond payment dates HOT 2
- "bond.full_price_from_ytm" is always computed by "face=100" right? HOT 2
- Accrued interest on coupon payment day HOT 2
- Add Equity Swap Product HOT 3
- 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
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.