How banbox/banbot works
banbot is an event-driven, multi-symbol and multi-account trading platform with strategy research, historical simulation, live execution, and a web UI. The user-facing path starts with configuring or authoring a strategy, then running backtests or deploying trading; data, runtime coordination, and execution support both modes. The README also describes factor research, hyperparameter optimization, and exchange support. Relationships are limited to README statements and the supplied source-index references; several subsystem implementations were not sampled, so the graph does not infer their internal call paths.
Main entry points: main.go CLI commands · runtime.go Runtime coordinator · storage_input.go Historical inputs · backtest.go Backtesting
Components 21
Product entry
- CLI commands
entry/main.go - Run configuration
config/run_spec.go
Market data
- Source catalog
data/source_catalog.go - Market data
data/provider.go
Strategy and research
- Time-series engine
strat/main.go - Factor engine
factor/runner/runner.go - Historical inputs
factor/runner/storage_input.go - Factor research
factor/research/experiment.go - Hyper optimization
opt/hyper_opt.go - Backtesting
opt/backtest.go
Runtime and execution
- Runtime coordinator
runtime/runtime.go - Order execution
execution/coordinator.go - Exchange adapter
execution/banexg_adapter.go - Execution state
execution/ledger.go
Interfaces and storage
- Web UI
web/ui/src/routes/(dev)/+page.svelte - Web server
web/dev/main.go - Series storage
orm/series_store.go - Backtest reports
opt/reports.go - Notifications
rpc/webhook.go
Other components
- Trader
- Exchange venue
Connections 19
- Trader → CLI commands: configures or runs
- Trader → Web UI: authors and deploys
- CLI commands → Runtime coordinator: starts commands
runtime/runtime.go - CLI commands → Web server: starts web
entry/main.go - Web server → Web UI: serves UI
web/dev/main.go - CLI commands → Run configuration: loads configuration
- Runtime coordinator → Market data: uses market data
runtime/runtime.go - Runtime coordinator → Time-series engine: uses strategies
runtime/runtime.go - Runtime coordinator → Order execution: uses execution
runtime/runtime.go - Runtime coordinator → Series storage: uses persistence
runtime/runtime.go - Historical inputs → Series storage: reads pages
- Factor engine → Historical inputs: consumes inputs
- CLI commands → Backtesting: runs backtests
- CLI commands → Factor research: runs research
- CLI commands → Hyper optimization: runs optimization
- Backtesting → Backtest reports: produces reports
- Order execution → Exchange adapter: dispatches orders
- Exchange adapter → Exchange venue: sends orders
- Runtime coordinator → Notifications: uses notifications
runtime/runtime.go