Code Monkey home page Code Monkey logo

rustyqlib's Introduction

Build and Tests License: MIT Crates.io Crates.io codecov

RUSTYQLib :Pricing Options with Confidence using JSON

RustyQLib is a lightweight yet robust quantitative finance library designed for pricing options. Built entirely in Rust, it offers a unique combination of safety, performance, and expressiveness that is crucial for handling financial data and complex calculations. RustyQlib simplifies option pricing without compromising on safety, speed, or usability. It uses JSON to make distributed computing easier and integration with other systems or your websites.

License

RustyQlib is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details.

Running

After cloning the repository and building you can run the following command:

rustyqlib file --input <FILE> --output <FILE>

and for pricing all contracts in a directory

rustyqlib dir --input <DIR> --output <DIR>

and for interactive mode

rustyqlib interactive

and for build mode to build vol surface or interest rate curve

rustyqlib build --input <FILE> --output <DIR>

Sample input file is provided in the repository (src\input\equity_option.json) Files are in JSON format and can be easily edited with any text editor.

Features

JSON Simplicity:

  • Ease of Use: Providing input data in JSON format is straightforward and human-readable.
  • Portability: JSON is a platform-independent format, so you can use it on any operating system.
  • Flexibility: JSON accommodates various data types and structures, enabling you to define not only the option details but also additional market data, historical information, and risk parameters as needed.
  • Integration-Ready: You can seamlessly connect it to data sources, trading platforms, or other financial systems, simplifying your workflow and enhancing automation.

Stypes:

  • European
  • American
  • Bermudan
  • Asian

Instruments:

Equity

  • Equity Option
  • Equity Forward Start Option
  • Equity Basket
  • Equity Barrier
  • Equity Lookback
  • Equity Asian
  • Equity Rainbow
  • Equity Chooser

Interest Rate

  • Deposit
  • FRA
  • Interest Rate Swap

Commodities

  • Commodity Option
  • Commodity Forward Start Option
  • Commodity Barrier
  • Commodity Lookback

Pricing engines:

  • Black Scholes
  • Binomial Tree
  • Monte Carlo
  • Finite Difference
  • Longstaff-Schwartz
  • Heston
  • Local Volatility
  • Stochastic Volatility
  • Jump Diffusion

rustyqlib's People

Contributors

siddharthqs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.