How delta-exchange/trading-bots works
This repository is a Delta bitcoin-futures market-making bot. Its documented run path selects the unhedged strategy, which uses shared market-maker logic to generate and reconcile orders through Delta’s REST and websocket client. The strategy also checks liquidation risk and can add position margin. Configuration supplies account credentials and runtime settings; utility and error-handling modules support the trading path. The graph preserves README capabilities and source-indexed dependencies; some internal calls are not shown in the excerpts, so uncertain links are omitted.
Main entry points: delta.py Delta client · unhedged.py Unhedged strategy · base.py Maker engine · strategy_runner.py Strategy runner
Components 13
Entry and configuration
- Strategy runner
strategy_runner.py - Environment settings
config/dotenvs.py - Account credentials
config/accounts.py
Market-making strategy
- Unhedged strategy
market_maker/unhedged.py - Maker engine
market_maker/base.py
Exchange access
- Delta client
clients/delta.py - Client interface
clients/base.py
Trading support
- Margin calculations
utils/margin_helper.py - Trading utilities
utils/utility.py - Request error handling
utils/decorators.py - Trading exceptions
custom_exceptions.py
Other components
- Bot operator
- Delta Exchange
Connections 12
- Bot operator → Strategy runner: starts
README.md - Strategy runner → Unhedged strategy: selects strategy
strategy_runner.py - Unhedged strategy → Maker engine: inherits
market_maker/unhedged.py - Unhedged strategy → Delta client: subscribes and queries
market_maker/unhedged.py - Maker engine → Delta client: uses exchange client
market_maker/base.py - Maker engine → Account credentials: loads accounts
market_maker/base.py - Unhedged strategy → Margin calculations: calculates top-up
market_maker/unhedged.py - Delta client → Client interface: implements
clients/delta.py - Delta client → Delta Exchange: requests market data and trades
clients/delta.py - Delta client → Request error handling: decorates requests
clients/delta.py - Request error handling → Trading exceptions: raises mapped errors
utils/decorators.py - Delta client → Trading utilities: uses price helpers
clients/delta.py