Giter Site home page Giter Site logo

rustquant's Introduction

License Crates.io Crates.io GitHub Repo stars

GitHub Workflow Status Codecov Dependencies

Discord

A Rust library for quantitative finance.

๐ŸŽฏ If you are an experienced quant developer in any language and would like to help out, feel free to contact me!

Modules

Module Description
autodiff Algorithmic adjoint differentiation (AAD) for efficiently computing gradients of scalar output functions $f: \mathbb{R}^n \rightarrow \mathbb{R}$.
curves Curves and surfaces, such as the yield curve and volatility surface.
data Methods for reading and writing data from/to various sources (CSV, JSON, Parquet). Can also download data from Yahoo! Finance.
error RustQuant error handling module.
instruments Various implementations for instruments like Bonds and Options, and the pricing of them. Others coming in the future (swaps, futures, CDSs, etc).
iso A few ISO code implementations. Currently: ISO-4217 (currency codes), ISO-3166 (country codes), ISO-10383 (market identifier codes).
math Fast Fourier Transform (FFT), numerical integration (double-exponential quadrature), optimisation/root-finding (gradient descent, Newton-Raphson), and risk-reward metrics. Also some sequence methods such as linspace and cumsum.
ml Currently only linear and logistic regression, along with k-nearest neighbours classification are implemented. More to come in the future.
macros Currently only plot_vector!() and assert_approx_equal!().
money Implementations for Cashflows, Currencies, and Quotes, and similar types.
portfolio Implementation of a portfolio type, which is a collection (HashMap) of Positions.
statistics Density, distribution, moment-generating, and characteristic functions, and other distribution related functions for common distributions.
stochastics Stochastic process generators for Brownian Motion (standard, arithmetic, fractional, and geometric) and various short-rate models (CIR, OU, Vasicek, Hull-White, etc). Multi-factor processes coming shortly.
time Time and date functionality, such as DayCounter, calendars, constants, conventions, schedules, etc.
trading Currently only a basic limit order book (LOB). Hopefully adding additional trading tools in the future.

Examples

See /examples for various uses of RustQuant. You can run them with:

cargo run --example <example>

Note

Disclaimer: This is currently a free-time project and not a professional financial software library. Nothing in this library should be taken as financial advice, and I do not recommend you to use it for trading or making financial decisions.

rustquant's People

Contributors

0xjepsen avatar aatmunbaxi avatar adriley avatar autoparallel avatar avhz avatar chammika-become avatar dancixx avatar dependabot[bot] avatar eopb avatar github-actions[bot] avatar joshleveck avatar kinrezc avatar lucaschinnerlbain avatar lukaskiss222 avatar maacl avatar meetthepatel avatar nicolasfrantzen avatar otangee avatar potatoboiler avatar robertchristensen avatar s3bru avatar simong85 avatar uzaaft 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.