# Crypto Trader Backend API FastAPI backend for the Crypto Trader application. ## Setup ```bash pip install -r requirements.txt pip install -r backend/requirements.txt ``` ## Development ```bash python -m uvicorn backend.main:app --reload --port 8000 ``` Access API docs at: http://localhost:8000/docs ## API Endpoints - **Trading**: `/api/trading/*` - **Portfolio**: `/api/portfolio/*` - **Strategies**: `/api/strategies/*` - **Backtesting**: `/api/backtesting/*` - **Exchanges**: `/api/exchanges/*` - **WebSocket**: `/ws/` ## Project Structure ``` backend/ ├── api/ # API route handlers ├── core/ # Core utilities (dependencies, schemas) └── main.py # FastAPI application ``` ## Dependencies The backend uses existing Python code from `src/`: - Trading engine - Strategy framework - Portfolio tracker - Backtesting engine - All other services These are imported via `sys.path` modification in `main.py`.