Giter VIP home page Giter VIP logo

Comments (11)

gpelleri avatar gpelleri commented on July 20, 2024 1

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.

gpelleri avatar gpelleri commented on July 20, 2024

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.

domokane avatar domokane commented on July 20, 2024

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.

domokane avatar domokane commented on July 20, 2024

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.

gpelleri avatar gpelleri commented on July 20, 2024

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.

domokane avatar domokane commented on July 20, 2024

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.

domokane avatar domokane commented on July 20, 2024

I see the product classes as wrappers around the lower level models.

from financepy.

parthvnp avatar parthvnp commented on July 20, 2024

@gpelleri Any updates on the issue? If you need help, more than happy to collaborate!

from financepy.

domokane avatar domokane commented on July 20, 2024

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.

gpelleri avatar gpelleri commented on July 20, 2024

Sure, my bad for the misunderstanding then. I'll do it today

from financepy.

domokane avatar domokane commented on July 20, 2024

OK thanks.

from financepy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.