Skip to main content

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 quantlib
  • python -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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantlib_st-1.0.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantlib_st-1.0.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

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

Hashes for quantlib_st-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6f8bc8dc002a24c5e9731e46a84d93f28814b3d7e46b3edf08d549530b8b1c5f
MD5 c12dc2f931514206f6b6751a77d5115b
BLAKE2b-256 df4964b597c0fc09aa3cc6fe09ed0b2e253a5d87ea64e2e0d9d273f26b174e01

See more details on using hashes here.

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

Hashes for quantlib_st-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41b1f632a43314085c7bc2d9a5ae6f0f6f769662a8081ee4aece8ae307222503
MD5 ec29c549c7d0073d46d073583b6e2c82
BLAKE2b-256 54e8bbbcea8d0f29bead7fb37501e48deaed736c086fefdfba08d4ebf261f551

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page