docs/architecture/README.md
Technical documentation for developers who want to understand NOFX internals.
NOFX is a full-stack AI trading platform for cryptocurrency and US stock markets:
┌─────────────────────────────────────────────────────────────────────────────┐
│ NOFX Platform │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────────────────────────────┐│
│ │ Strategy │ │ Live Trading ││
│ │ Studio │ │ (Auto Trader) ││
│ └──────┬──────┘ └──────────────────┬──────────────────┘│
│ │ │ │
│ └────────────────────────────┘ │
│ │ │
│ ┌─────────▼─────────┐ │
│ │ Core Services │ │
│ │ - Market Data │ │
│ │ - AI Providers │ │
│ │ - Risk Control │ │
│ └─────────┬─────────┘ │
│ │ │
│ ┌──────────────────────────┼──────────────────────────┐ │
│ │ │ │ │
│ ┌──────▼──────┐ ┌─────────▼─────────┐ ┌────────▼────────┐ │
│ │ Exchanges │ │ Database │ │ Frontend UI │ │
│ │ (CEX/DEX) │ │ (SQLite) │ │ (React SPA) │ │
│ └─────────────┘ └───────────────────┘ └─────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
| Module | Description | Documentation |
|---|---|---|
| Strategy Studio | Strategy configuration, coin selection, data assembly, AI prompts | STRATEGY_MODULE.md |
Complete strategy configuration system including:
nofx/
├── main.go # Entry point
├── api/ # HTTP API (Gin framework)
├── trader/ # Trading execution layer
├── strategy/ # Strategy engine
├── market/ # Market data service
├── mcp/ # AI model clients
├── store/ # Database operations
├── auth/ # JWT authentication
├── manager/ # Multi-trader management
└── web/ # React frontend
├── src/pages/ # Page components
├── src/components/ # Shared components
└── src/lib/api.ts # API client
| Package | Purpose |
|---|---|
gin-gonic/gin | HTTP API framework |
adshao/go-binance | Binance API client |
markcheno/go-talib | Technical indicators |
golang-jwt/jwt | JWT authentication |
| Package | Purpose |
|---|---|
react | UI framework |
recharts | Charts and visualizations |
swr | Data fetching |
zustand | State management |
tailwindcss | CSS framework |
Want to contribute?
Repository: https://github.com/NoFxAiOS/nofx