# Ultimate Coin Trader 🚀

A modern, dual-environment crypto trading application connecting to Bitvavo. 
Features a "Glassy Dark" UI and supports multiple automated strategies (DCA, Grid).

## 📂 Project Structure
- **client/**: React + Vite frontend (Port 5176).
- **server/**: Node.js + Express backend (Port 3004/3005).

## ⚡ Quick Start

### 1. Prerequisites
Ensure you have created the required databases:
```bash
sudo mariadb -e "CREATE DATABASE IF NOT EXISTS cointrader_live; CREATE DATABASE IF NOT EXISTS cointrader_test;"
```

### 2. Start the Backend (Server)
Open a terminal and run:
```bash
cd server
npm run start:test
# Or for live: npm run start:live
```
*   **Test API**: `http://localhost:3005`
*   **Live API**: `http://localhost:3004`

### 3. Start the Frontend (Client)
Open a **new** terminal and run:
```bash
cd client
npm run dev
```
*   **URL**: `http://localhost:5176`

## 🛠️ Configuration
*   **Database**: Configured in `server/.env`.
*   **Ports**: Configured in `server/.env` and `client/vite.config.js`.

## 🤖 Strategies
*   **DCA**: Dollar Cost Averaging.
*   **Grid**: Grid Trading for sideways markets.
*   Configure these via the "Strategies" tab in the frontend.

---
*Generated by Antigravity - Senior Code Architect*
