GithubHelp home page GithubHelp logo

quantsharp's Introduction

QuantSharp is a .NET library for financial quants.

Quality Gate Status Security Rating Reliability Rating Maintainability Rating

Bugs Vulnerabilities Code Smells Technical Debt Coverage Duplicated Lines (%)

Note: QuantSharp is currently in pre-release status and APIs can be expected to break without regard for semantic versioning (a bump in minor version usually signifies an actually major change).

Features

Current

  • Calculations for European vanilla options
    • Option price
    • Common greeks: delta, gamma, theta, vega, rho
    • Uncommon greeks: Vomma
    • Implied volatility

To read full API documentation, see: https://quantsharp-docs.github.io/

Roadmap for 1.0 release

These features are strongly considered "necessary" for a proper 1.0 release:

  • Pricing for American options
  • More uncommon greeks
  • Fluent API for creating options (e.g. creating a partially parametrized option and performing multiple calculations against one of the free params)
  • Figure out approach to mathematical understanding of greeks (as raw derivative values) vs conventional (e.g. "per 1% change ", "decay per 1 day")
  • Plug-in pricing models (to allow other models in the future, e.g. binomial)

Quick start

Installation

Install QuantSharp like you would any ordinary NuGet package:

Install-Package QuantSharp

or

dotnet add package QuantSharp

Using static functions

using QuantSharp;

//...

var callOptionPrice = BlackScholesEuropeanOptionsFunctions.CallPrice(
    234.56, //Price of underlying
    210.00, //Strike price
    0.25, //Time to expiration (in years, i.e. 3 months here)
    0.15, //Annualized volatility (15% here)
    0.03 //Risk-free interest rate (3% here)
);

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.