Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Rust library for quantitative finance.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md
NotificationsYou must be signed in to change notification settings

avhz/RustQuant

Repository files navigation

LicenseCrates.ioCrates.io User Total DownloadsGitHub Repo stars

GitHub Workflow StatusCodecovDependencies

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

ModuleDescription
autodiffAlgorithmic adjoint differentiation (AAD) for efficiently computing gradients of scalar output functions$f: \mathbb{R}^n \rightarrow \mathbb{R}$.
cashflowsImplementations forCashflows andQuotes, and similar types.
dataData 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.
errorRustQuant error handling module.
instrumentsImplementations for financial instruments likeBonds,Options, andMoney, including their pricing. Future additions will include swaps, futures, CDSs, etc.
isoA few ISO code implementations:ISO-4217 (currency codes),ISO-3166 (country codes),ISO-10383 (market identifier codes).
mathStatistical 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 aslinspace andcumsum.
mlCurrently only linear and logistic regression, along with k-nearest neighbours classification are implemented. More to come in the future.
macrosCurrently onlyplot_vector!() andassert_approx_equal!().
modelsVarious models commonly used in quantitative finance, such as the various forms of Brownian Motion, short rate models, curve models, etc.
portfolioImplementation of a portfolio type, which is a collection (HashMap) ofPositions.
stochasticsStochastic process generators for Brownian Motion (standard, arithmetic, fractional, and geometric) and various short-rate models (CIR, OU, Vasicek, Hull-White, etc).
timeTime and date functionality, such asDayCounter, calendars, constants, conventions, schedules, etc.
tradingCurrently 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


[8]ページ先頭

©2009-2025 Movatter.jp