Back to rankings

avhz/RustQuant

Rustavhz.github.io

Rust library for quantitative finance.

financemathmathematicsquantitative-financerustrust-langquantlibmachine-learningoption-pricingregressionstatisticsstochastic-processes
Star Growth
Stars
1.8k
Forks
207
Weekly Growth
Issues
26
5001k1.5k
Dec 2022Feb 2024May 2025Jul 2026
Artifactscrates.iocargo add rustquant
README

License Crates.io Crates.io User Total Downloads GitHub Repo stars

GitHub Workflow Status Codecov Dependencies

Discord

A Rust library for quantitative finance.

:dart: 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

Related repositories
TauricResearch/TradingAgents

TradingAgents: Multi-Agents LLM Financial Trading Framework

PythonPyPIApache License 2.0agentfinance
arxiv.org/pdf/2412.20138
94k18.2k
OpenBB-finance/OpenBB

Open Data Platform for analysts, quants and AI agents.

PythonPyPIOtherpythonmachine-learning
openbb.co
70.9k7.2k
maybe-finance/maybe

The personal finance app for everyone

RubyRubyGemsGNU Affero General Public License v3.0financepersonal-finance
54.4k5.6k
microsoft/qlib

Qlib is an AI-oriented Quant investment platform that aims to use AI tech to empower Quant Research, from exploring ideas to implementing productions. Qlib supports diverse ML modeling paradigms, including supervised learning, market dynamics modeling, and RL, and is now equipped with https://github.com/microsoft/RD-Agent to automate R&D process.

PythonPyPIMIT Licensequantitative-financemachine-learning
qlib.readthedocs.io/en/latest/
46.5k7.4k
vnpy/vnpy

基于Python的开源量化交易平台开发框架

PythonPyPIMIT Licensetradinginvestment
vnpy.com
43.4k12.2k
juspay/hyperswitch

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

Rustcrates.ioApache License 2.0paymentsrust
hyperswitch.io
43.4k5k
Fincept-Corporation/FinceptTerminal

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

C++Otherbloomberg-terminalfinance
fincept.in
28.8k4k
wilsonfreitas/awesome-quant

A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)

HTMLfinancefinancial-data
wilsonfreitas.github.io/awesome-quant/
28.1k3.7k
actualbudget/actual

A local-first personal finance app

TypeScriptnpmMIT Licensebudgetingfinance
actualbudget.org
27.7k2.7k
plotly/dash

Data Apps & Dashboards for Python. No JavaScript Required.

PythonPyPIMIT Licensedashplotly
plotly.com/dash
24.3k2.3k
firefly-iii/firefly-iii

Firefly III: a personal finances manager

PHPPackagistGNU Affero General Public License v3.0phpmoney
firefly-iii.org
24.1k2.2k
akfamily/akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库

PythonPyPIMIT Licensefuturesfinancial-data
akshare.akfamily.xyz
21.5k3.4k