A quantitative finance library and cli for systematic trading
Project description
quantlib
Minimal, self-contained CLI tools and library for quantitative finance.
Subcommands
- corr: Compute correlation matrices over time from returns.
- costs: Calculate Sharpe Ratio (SR) costs for instruments based on spread and fees.
Install (editable - for developers)
From the repo root:
cd quantlibpython -m pip install -e .
This installs the quantlib command.
Build a single binary with PyInstaller
From quantlib/:
make build
Binary will be at dist/quantlib.
Docker
Pull a published image from GitHub Container Registry:
docker pull ghcr.io/rodionlim/quantlib-st:latest
Run a quick correlation query by piping a CSV into the container (one-liner):
cat sample_data/returns_10x4.csv | docker run --rm -i ghcr.io/rodionlim/quantlib-st:latest corr --min-periods 3 --ew-lookback 10
When publishing the image the Makefile also tags and pushes :latest in addition to the versioned tag.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantlib_st-1.0.0.tar.gz.
File metadata
- Download URL: quantlib_st-1.0.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f8bc8dc002a24c5e9731e46a84d93f28814b3d7e46b3edf08d549530b8b1c5f
|
|
| MD5 |
c12dc2f931514206f6b6751a77d5115b
|
|
| BLAKE2b-256 |
df4964b597c0fc09aa3cc6fe09ed0b2e253a5d87ea64e2e0d9d273f26b174e01
|
File details
Details for the file quantlib_st-1.0.0-py3-none-any.whl.
File metadata
- Download URL: quantlib_st-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b1f632a43314085c7bc2d9a5ae6f0f6f769662a8081ee4aece8ae307222503
|
|
| MD5 |
ec29c549c7d0073d46d073583b6e2c82
|
|
| BLAKE2b-256 |
54e8bbbcea8d0f29bead7fb37501e48deaed736c086fefdfba08d4ebf261f551
|