Code Monkey home page Code Monkey logo

financialderivatives.jl's People

Contributors

alexandrebrilhante avatar dependabot[bot] avatar femtotrader avatar iblislin avatar millerjoey avatar mvanzulli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

financialderivatives.jl's Issues

Fix CI and build

Currently tests are not being run in every MR, fix CI pipeline and automate tests

Update manifest

The manifest does not seem to be updated with the Julia 1.10 version, but everything is working fine.

Derivatives require too-strict type signatures

It seems like your dispatching for derivatives is too strict. Terms like

struct AmericanOption{T<:Number} <: Option
    s::T
    k::T
    r::T
    σ::T
    t::T
    call::Int64
end

mean that you can't create an option with mixed Ints and Floats like AmericanOption(10, 12, 0.05, 0.4, 1, 1). Also, I don't think you use the parameterization {T} when you dispatch on it later in evaluate(...), so I'd suggest modifying the definitions to:

struct AmericanOption <: Option
    s::Real
    k::Real
    r::Real
    σ::Real
    t::Real
    call::Int64
end

I can make a PR and run tests to make sure when I get a chance. Let me know if I'm missing anything obvious though!

Add dividends to Black-Scholes model

Currenty the model lacks of the $q$ parameter. This issue is about adding this parameter to price EuropeanOptions. Would be nice to verify the put-call parity in the tests.

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.