Installation¶
This guide covers all the ways to install dgbit.
Requirements¶
- Python 3.11 or later
- pip 21.0 or later
- (Optional) Docker 20.10+ for containerized deployment
Installation Methods¶
PyPI (Recommended)¶
The simplest way to install dgbit is from PyPI:
To install with development dependencies:
To install with documentation dependencies:
Docker¶
Pull the official Docker image:
Or use a specific version:
From Source¶
For development or to get the latest changes:
# Clone the repository
git clone https://github.com/cryptuon/dgbit.git
cd dgbit
# Install in editable mode
pip install -e ".[dev]"
Poetry (Backend Development)¶
If you're working on the FastAPI backend:
npm (Frontend Development)¶
For the Vue 3 dashboard:
Verifying Installation¶
Python Package¶
CLI¶
API Server¶
Dependencies¶
dgbit depends on several key packages:
| Package | Purpose |
|---|---|
fastapi |
REST API framework |
uvicorn |
ASGI server |
pandas |
Data manipulation |
numpy |
Numerical computing |
pybit |
Bybit API client |
pywavelets |
Wavelet transforms |
plotly |
Interactive charts |
pynng |
Service bus messaging |
tortoise-orm |
Database ORM |
Platform Notes¶
Linux¶
All features are fully supported on Linux.
macOS¶
All features are fully supported on macOS. Apple Silicon (M1/M2) is supported.
Windows¶
dgbit works on Windows with some caveats:
- NNG IPC sockets use a different path format
- Docker Desktop required for containerized deployment
Troubleshooting¶
ImportError: No module named 'dgbit_core'¶
Ensure you've installed the package correctly:
NNG Socket Errors¶
If you see NNG-related errors, ensure the IPC directories exist:
Bybit API Errors¶
Verify your API keys and network connectivity:
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="your_key",
api_secret="your_secret",
)
print(session.get_wallet_balance(accountType="SPOT"))
Next Steps¶
- Quick Start Guide - Run your first backtest
- Configuration - Set up your environment