Skip to main content

A library for quantitative finance, with tools for data handling, network interfacing, and mathematical modeling.

Project description

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

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

dxlib-2.1.0.tar.gz (105.7 kB view details)

Uploaded Source

Built Distribution

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

dxlib-2.1.0-py3-none-any.whl (96.8 kB view details)

Uploaded Python 3

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

Hashes for dxlib-2.1.0.tar.gz
Algorithm Hash digest
SHA256 17e56cd2ab95675c37a59ef6688d1d12760ab91879ddbbf6228a4d1d44a4a432
MD5 0033b61355889e60753e848454706f09
BLAKE2b-256 1a6b95e4c88214c66e1d2b3affbefef12e7d984505615a5846ad10fec33c87d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dxlib-2.1.0.tar.gz:

Publisher: python-publish.yml on divergex/dxlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for dxlib-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b52f3c6be4216261770dc81a51967d352fd4666b068772cd3d3ac02a09ee100
MD5 4a5b0e0332aabb5fa210054494562e87
BLAKE2b-256 cf9ed6e8dd8b8cd3ca5f8a767bbc2a009a64e84332058e700efdc43dfed32738

See more details on using hashes here.

Provenance

The following attestation bundles were made for dxlib-2.1.0-py3-none-any.whl:

Publisher: python-publish.yml on divergex/dxlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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