Initial commit: Crypto trader application

This commit is contained in:
2025-12-25 20:20:40 -05:00
commit 07a04c1bb8
47895 changed files with 2042266 additions and 0 deletions

47
backend/README.md Normal file
View File

@@ -0,0 +1,47 @@
# 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`.