avhz/RustQuant


Rust library for quantitative finance.

https://avhz.github.io

License: Apache-2.0

Language: Rust

Keywords: finance, machine-learning, math, mathematics, option-pricing, quantitative-finance, quantlib, regression, rust, rust-lang, statistics, stochastic-processes, trading


License Crates.io Crates.io User Total Downloads 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}$.
cashflows Implementations for Cashflows and Quotes, and similar types.
data Data types that can be used for pricing and similar tasks (curves, term-structures, surfaces, etc). 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 Implementations for financial instruments like Bonds, Options, and Money, including their pricing. Future additions will include swaps, futures, CDSs, etc.
iso A few ISO code implementations: ISO-4217 (currency codes), ISO-3166 (country codes), ISO-10383 (market identifier codes).
math Statistical distributions and their related functions (PDF, CDF, CF, etc), 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!().
models Various models commonly used in quantitative finance, such as the various forms of Brownian Motion, short rate models, curve models, etc.
portfolio Implementation of a portfolio type, which is a collection (HashMap) of Positions.
stochastics Stochastic process generators for Brownian Motion (standard, arithmetic, fractional, and geometric) and various short-rate models (CIR, OU, Vasicek, Hull-White, etc).
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.

FOSSA Status

Project Statistics

Sourcerank 13
Repository Size 50.5 MB
Stars 1,133
Forks 131
Watchers 28
Open issues 29
Dependencies 85
Contributors 50
Tags 101
Created
Last updated
Last pushed

Top Contributors See all

Amando Yasser Naji Daniel Boros lukaskiss222 Colin Roberts abaxi chammika-become Meet Patel Joaquin Bejar Garcia Matt Czernik dependabot[bot] joshleveck William Uzair Aftab s3bru Ramon van Sprundel Simon Garruto Nicolas Bru Frantzen AdRiley oberrich

Packages Referencing this Repo

RustQuant_math
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_cashflows
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_time
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_ml
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_iso
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_stochastics
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_error
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_data
A Rust library for quantitative finance.
Latest release 0.3.0 - Updated - 1.13K stars
RustQuant_autodiff
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_instruments
A Rust library for quantitative finance.
Latest release 0.3.0 - Updated - 1.13K stars
RustQuant
A Rust library for quantitative finance.
Latest release 0.3.0 - Updated - 1.13K stars
rustquant
A Rust library for quantitative finance tools.
Latest release 0.0.17 - Published - 1.13K stars
RustQuant_utils
A Rust library for quantitative finance.
Latest release 0.3.1 - Updated - 1.13K stars
RustQuant_portfolios
A Rust library for quantitative finance.
Latest release 0.3.0 - Updated - 1.13K stars
RustQuant_trading
A Rust library for quantitative finance.
Latest release 0.3.0 - Updated - 1.13K stars

Recent Tags See all

RustQuant_stochastics-v0.3.1 November 10, 2024
RustQuant_time-v0.3.1 November 10, 2024
RustQuant_time-v0.3.1 November 10, 2024
RustQuant_ml-v0.3.1 November 10, 2024
RustQuant_math-v0.3.1 November 10, 2024
RustQuant_iso-v0.3.1 November 10, 2024
RustQuant_error-v0.3.1 November 10, 2024
RustQuant_cashflows-v0.3.1 November 10, 2024
RustQuant_autodiff-v0.3.1 November 10, 2024
RustQuant_utils-v0.3.1 November 10, 2024
RustQuant-v0.3.0 November 10, 2024
RustQuant_trading-v0.3.0 November 10, 2024
RustQuant_portfolios-v0.3.0 November 10, 2024
RustQuant_data-v0.3.0 November 10, 2024
RustQuant_instruments-v0.3.0 November 10, 2024

Something wrong with this page? Make a suggestion

Last synced: 2024-11-10 15:41:10 UTC

Login to resync this repository