NetTrader is an advanced AI-powered crypto algorithmic trading SaaS platform built on .NET 9. It features a scalable multi-tenant architecture designed to provide professional trading tools to retail and institutional users.
- Multi-Tenant SaaS Architecture: Secure user isolation with individual API key management, subscription tracking, and independent trading loops.
- AI-Driven Strategy (Gemini v9.2): High-level decision making using Google Gemini 1.5 Pro, featuring Nash Equilibrium-inspired position sizing and Volume Profile-based entry/exit optimization.
- ML.NET Inference Engine: Real-time HFT signals using Bayesian MCMC-style inference to adapt to market uncertainty.
- Dynamic Grid & Market Execution: Supports sophisticated Grid trading, Market Long/Short positions, and intelligent trailing stops.
- Dual-Loop Runtime:
- Fast Monitor (10s): ROI tracking, Trailing Stop activation, and Emergency Stop protection.
- Slow AI Cycle (30m): Deep market analysis and portfolio rebalancing.
- ML Sniper (60s): High-frequency execution based on strong technical confluence.
- Exchange Support: Native integration with Binance and Bybit Futures (including Testnet and Demo modes).
- Security: AES-256 encryption for user API keys, JWT with refresh token rotation, and secure multi-tenant data separation.
- Framework: .NET 9 (ASP.NET Core + Worker Services)
- Database: PostgreSQL with EF Core
- Real-time: SignalR WebSockets
- AI/ML: Google Gemini API + ML.NET
- Infrastructure: Docker, Docker Compose, Caddy (Reverse Proxy)
Comprehensive documentation is available in the docs/ directory:
- System Architecture: Detailed look at the Clean Architecture, multi-tenant loops, and technical constraints.
- SaaS Implementation: User identity, data isolation, and API key security.
- ML Engine & Bayesian Inference: Technical deep dive into the ML pipeline and signal generation logic.
- Technical Deep Dive: Execution flow, Nash Equilibrium placement, and Volume Profile liquidity walls.
- API Contracts: REST API endpoints and SignalR WebSocket schemas.
- Roadmap: Project evolution and upcoming features.
- .NET 9 SDK
- Docker & Docker Compose
- PostgreSQL (if running locally)
Copy .env.example to .env and fill in:
DBCONNECTIONSTRINGJWT_SECRETENCRYPTION_KEY(32-byte Base64)GEMINI_API_KEYTELEGRAM_BOT_TOKEN
docker-compose up -d --buildThe system applies migrations automatically on startup. For manual updates:
dotnet ef database update --project NetTrader.Infrastructure --startup-project NetTrader.ApiAPI keys are encrypted using AES-256 before storage. Decryption occurs only in-memory within the user-scoped OrderExecutorFactory. We recommend using Binance/Bybit API keys with Trading Permissions Only and IP Whitelisting.
This project is licensed under the MIT License. See the LICENSE file for details.
- Author: Tigran Gevorgyan
- LinkedIn: Tigran Gevorgyan
- Telegram: @Tigran_Gevorgyan
© 2026 NetTrader. Licensed under MIT.