Skip to content
dgbit GitHub

// who it's for

A framework, not a trading bot.

dgbit is for quantitative traders developing new strategies and developers building trading automation on Bybit. If you want a "buy this dip" button, look elsewhere — this is infrastructure.

Quant developers

A backtester that doesn't hide its assumptions

You already write strategies in Python and want a simulator you can trust. Because dgbit targets Bybit directly, the fee model, kline boundaries, and order assumptions map one-to-one to live behavior — so a promising backtest is a promising signal, not a modeling artifact.

Run your first backtest →
  • One-to-one backtest ↔ live fee model
  • Plotly reports: return, win rate, drawdown
  • Subclass BaseStrategy, register, run

Trading automation engineers

Ship bots with a service-bus architecture out of the box

You deploy to production and need more than a single-process script. dgbit ships a FastAPI REST API, an NNG service bus across data/backtest/strategy workers, a WebSocket event stream, and docker-compose orchestration — so the operational shape is there from day one.

See the architecture →
  • FastAPI + WebSocket event stream
  • NNG worker bus, not HTTP glue
  • docker-compose up -d, all services

Researchers building on Bybit

Data, positions, and risk already wired to one exchange

You want the data fetcher, position tracking, and risk handling ready for Bybit rather than abstracted across ten venues. dgbit's deliberate single-exchange scope means fewer abstractions to fight and more precision where it matters for your research.

See all features →
  • BybitDataFetcher talks to the source
  • Position tracking + risk built in
  • Four built-in strategies to build on

Teams weighing frameworks

Precision over breadth — when that's the right trade

If you trade only on Bybit and value a backtester whose behavior you can map exactly to live, dgbit's scope is a feature, not a limitation. If you need many exchanges or market-making templates, the honest comparisons will point you elsewhere.

Compare vs Freqtrade & Hummingbot →
  • Bybit-only by design
  • MIT-licensed, self-hostable
  • Clear pick-when-us / pick-when-them

Decide whether the abstractions fit.

Clone the repo, run the first backtest, and see whether dgbit matches how you think about markets.