A high-performance, private trading ecosystem designed for algorithmic execution, real-time monitoring, and institutional safety. Built on Python 3.11, PostgreSQL 18, Go (Low-latency), and HTMX.
- Isolated Execution: Each bot runs in its own process, ensuring that a single symbol's failure doesn't affect the fleet.
- Dynamic Management: Start, stop, and configure strategies (SMA, MACD, Advanced) for any symbol in seconds.
- Asset Favorites: Keep your preferred tickers pinned to the top of your cockpit.
- PostgreSQL 18 Multi-Layered: Consolidation of persistent storage (Trades) and ultra-low latency caching (UNLOGGED orderbook tables).
- Go-Powered Ingestion: Native performance worker for sub-millisecond market updates.
- QuestDB Time-Series: Professional-grade tick ingestion for quantitative analysis.
- Lightweight Charts: Professional-grade charting with real-time WebSocket updates and signal markers (Buy/Sell).
- Pydantic Settings: Centralized, validated configuration for API keys and host settings.
- Live Balance Sync: Real-time position sizing based on live Binance capital.
- Exchange-Side Safety (TP/SL): Orders are persisted directly on the exchange for crash-resistance.
- Global Circuit Breaker: Automated and manual "Kill Switches" to stop everything during extreme volatility.
- Basic Auth Security: Password-protected dashboard and API.
nice-trading/
├── api/ # HTMX/FastAPI Web Dashboard
├── manager/ # Multi-bot Management & Execution
├── engine/ # Vectorized Indicators & Strategy Logic
├── workers/ # Ingestion Workers (Go + Python)
├── connectors/ # CCXT Wrapper for Exchange Connectivity
├── storage/ # PostgreSQL 18 & QuestDB Persistence
├── nginx/ # Production Reverse Proxy Gateway
└── docs/ # Detailed Technical Documentation
We use a Makefile to unify our hybrid Python/Go/Docker workflow.
- Install dependencies:
make install - Run Dashboard:
make run-api - Run Go Worker:
make run-go-worker - Execute Tests:
make test
- Configure environment:
cp .env.example .env(Add your Binance Keys). - Launch the fleet:
make up - Follow the logs:
make logs - Shutdown:
make down
For a deep dive into the system, check our professional documentation:
- Getting Started: Local Setup | Onboarding | Lightsail Deployment
- User Guide: User Manual | Safety Audit
- Architecture: System Overview | Tech Stack
- Research: Future Roadmap | Gap Analysis
Created with ❤️ for quantitative excellence.