A library for quantitative finance, with tools for data handling, network interfacing, and mathematical modeling.
Project description
dxlib - A Quantitative Finance Library
Built using Python, dxlib provides a comprehensive set of tools for the modern quantitative analyst.
It is a modular, extensible library tailored for both individual strategy developers and professional trading funds. Seamlessly integrating with powerful libraries like pandas and numpy, it fits naturally into your existing workflow.
Motivation
Seeing as other libraries related to quantitative development already exist, the goal of dxlib is to provide a more fledged alternative focusing on maintainability, extendability and performance. Below, we compare some alternatives:
- QuandL has been archived, and dxlib is a great alternative.
- QuantLib is a great library, and should be used in conjunction with dxlib, but its focus differs.
Eventually, dxcore is meant to replace
QuantLibwithin the context of dxlib. - pandas, numpy, scikit and others are great, and should be used in conjunction with dxlib.
At the moment, dxlib can be used together with dxforge for strategy management, such as scheduling, automatic containerization and pre-built networking utils.
Quick Start
Take a look at our Examples.
Where We Are Now
All modules and objects serializable, deserializable, and extendable - focusing on thread-safety and lock-free implementations for parallel and/or distributed environments. For now, the cache system uses both HDF5 and JSON, and the networking system allows for interfacing with other systems through JSON serialization.
All modules and classes are built using Domain Driven Design, and are designed to be easily understood and used. I myself come from a computer science background, and whenever starting a new quant project, always found my code to end up extremely convoluted and messy. Therefore, I believe creating a library with a strong focus on modularization and performance rather than a collection of scripts is the way to go for professional trading setups.
Future Plans
In the future, dxlib will provide low-level routine encapsulation from dxcore. Additionally, dxstudio will provide GUI access to most of dxlib endpoints, for easy-to-use strategy prototyping, data analysis and other features!
- Current inbuilt handlers include REST and Websockets.
- Future encodings are planned to include FIX, SBE, and Protobuf.
- Future handlers are planned to include ZeroMQ, gRPC and rough UDP.
Development Setup
This project uses uv for dependency management, virtual environments, and build automation.
To get started, clone the repository and install the dependencies
git clone git@github.com:divergex/dxlib.git && cd dxlib
uv venv # create virtual environment
uv sync --group dev # install dev dependencies
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 dxlib-2.1.0.tar.gz.
File metadata
- Download URL: dxlib-2.1.0.tar.gz
- Upload date:
- Size: 105.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17e56cd2ab95675c37a59ef6688d1d12760ab91879ddbbf6228a4d1d44a4a432
|
|
| MD5 |
0033b61355889e60753e848454706f09
|
|
| BLAKE2b-256 |
1a6b95e4c88214c66e1d2b3affbefef12e7d984505615a5846ad10fec33c87d1
|
Provenance
The following attestation bundles were made for dxlib-2.1.0.tar.gz:
Publisher:
python-publish.yml on divergex/dxlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dxlib-2.1.0.tar.gz -
Subject digest:
17e56cd2ab95675c37a59ef6688d1d12760ab91879ddbbf6228a4d1d44a4a432 - Sigstore transparency entry: 354141328
- Sigstore integration time:
-
Permalink:
divergex/dxlib@a9a559680b14ede7ce4afa309726c1f482dad332 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/divergex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a9a559680b14ede7ce4afa309726c1f482dad332 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dxlib-2.1.0-py3-none-any.whl.
File metadata
- Download URL: dxlib-2.1.0-py3-none-any.whl
- Upload date:
- Size: 96.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b52f3c6be4216261770dc81a51967d352fd4666b068772cd3d3ac02a09ee100
|
|
| MD5 |
4a5b0e0332aabb5fa210054494562e87
|
|
| BLAKE2b-256 |
cf9ed6e8dd8b8cd3ca5f8a767bbc2a009a64e84332058e700efdc43dfed32738
|
Provenance
The following attestation bundles were made for dxlib-2.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on divergex/dxlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dxlib-2.1.0-py3-none-any.whl -
Subject digest:
5b52f3c6be4216261770dc81a51967d352fd4666b068772cd3d3ac02a09ee100 - Sigstore transparency entry: 354141376
- Sigstore integration time:
-
Permalink:
divergex/dxlib@a9a559680b14ede7ce4afa309726c1f482dad332 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/divergex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a9a559680b14ede7ce4afa309726c1f482dad332 -
Trigger Event:
release
-
Statement type: