How boreddyravikanthreddy35-lang/trading-ai-bot works
SignalForge is an AI crypto-trading platform spanning market analysis, automated and paper trading, portfolio management, and wallet operations. The principal workflow enters through the FastAPI server, reaches a domain API, and delegates to trading or analysis services; wallet balances and financial events are handled by wallet and ledger services. The server configures database backends, and authentication supports protected user workflows. The README contains no product documentation, and many listed modules were not sampled, so only relationships shown in excerpts or the source index are drawn; frontend-to-backend links are omitted where not evidenced.
Main entry points: server.py FastAPI server · ai.py AI signals API · market.py Market API · backtest.py Backtest API
Components 24
API and identity
- FastAPI server
backend/server.py - Authentication routes
backend/api/auth_routes.py - JWT authentication
backend/services/auth.py
Trading and analysis
- Market API
backend/api/market.py - Market data
backend/services/market_data.py - Technical indicators
backend/services/indicators.py - AI signals API
backend/api/ai.py - AI signal service
backend/services/ai_signals.py - Backtest API
backend/api/backtest.py - Backtest engine
backend/services/backtest.py - Paper trading API
backend/api/paper.py - Auto-trader API
backend/api/auto_trader.py - AI auto-trader
backend/services/auto_ai_trader.py - Continuous trader
backend/services/continuous_trader.py
Portfolio and finance
- Portfolio manager API
backend/api/portfolio_manager.py - Autonomous portfolio
backend/services/autonomous_portfolio.py - Wallet API
backend/api/wallet.py - Wallet service
backend/services/wallet_service.py - Double-entry ledger
backend/services/ledger_service.py - Pre-trade risk
backend/services/risk_engine.py - Position tracking
backend/services/position_service.py
Persistence
- Configured database
backend/services/supabase_db.py - Firebase adapter
backend/services/firebase_db.py
Other components
- User
Connections 25
- User → FastAPI server: requests API
- FastAPI server → Authentication routes: mounts routes
backend/server.py - FastAPI server → Market API: mounts routes
backend/server.py - FastAPI server → AI signals API: mounts routes
backend/server.py - FastAPI server → Backtest API: mounts routes
backend/server.py - FastAPI server → Paper trading API: mounts routes
backend/server.py - FastAPI server → Auto-trader API: mounts routes
backend/server.py - FastAPI server → Portfolio manager API: mounts routes
backend/server.py - FastAPI server → Wallet API: mounts routes
backend/server.py - Authentication routes → JWT authentication: uses
backend/api/auth_routes.py - Market API → Market data: fetches market data
backend/api/market.py - Market API → Technical indicators: uses indicators
backend/api/market.py - AI signals API → Market data: fetches market data
backend/api/ai.py - AI signals API → AI signal service: requests signals
backend/api/ai.py - AI signals API → Technical indicators: uses indicators
backend/api/ai.py - Backtest API → Market data: fetches market data
backend/api/backtest.py - Backtest API → Backtest engine: runs backtest
backend/api/backtest.py - Auto-trader API → AI auto-trader: invokes trader
backend/api/auto_trader.py - Portfolio manager API → Autonomous portfolio: runs cycle
backend/api/portfolio_manager.py - Wallet API → Wallet service: reads balances
backend/api/wallet.py - Wallet API → Double-entry ledger: reads history
backend/api/wallet.py - Wallet service → Double-entry ledger: posts deposits
backend/services/wallet_service.py - Pre-trade risk → Wallet service: checks balance
backend/services/risk_engine.py - FastAPI server → Configured database: configures backend
backend/server.py - FastAPI server → Firebase adapter: selects optionally
backend/server.py