Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

dxlib logo, showing the Chi distribution symbol

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 QuantLib within 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

Metadata

Release files for dxlib 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dxlib 2.1.0
File Size Uploaded
dxlib-2.1.0.tar.gz 105.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dxlib 2.1.0
File Interpreter ABI Platform
dxlib-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 202.5 kB

Release files / dxlib-2.1.0.tar.gz

Download URL dxlib-2.1.0.tar.gz
Size 105.7 kB
Tags Source
SHA-256 checksum
How to use checksums
17e56cd2ab95675c37a59ef6688d1d12760ab91879ddbbf6228a4d1d44a4a432
BLAKE2b-256 checksum
How to use checksums
1a6b95e4c88214c66e1d2b3affbefef12e7d984505615a5846ad10fec33c87d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2025.

Transparency log

Release files / dxlib-2.1.0-py3-none-any.whl

Download URL dxlib-2.1.0-py3-none-any.whl
Size 96.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b52f3c6be4216261770dc81a51967d352fd4666b068772cd3d3ac02a09ee100
BLAKE2b-256 checksum
How to use checksums
cf9ed6e8dd8b8cd3ca5f8a767bbc2a009a64e84332058e700efdc43dfed32738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page