# CryptoBot Trading Bot (Node 1)

Autonomous trading bot connected to Binance.

## Requirements
- Python 3.11+
- Binance API Key and Secret

## Installation
1. Clone the repository.
2. Run `pip install -r requirements.txt`.
3. Copy `.env.example` to `.env` and fill in your credentials.
4. Adjust `config.yaml` as needed.

## Running

### On Linux/Mac:
1. Run the auto-start script:
   ```bash
   bash start.sh
   ```
   *Alternatively, activate manually:* `source venv/bin/activate && python3 main.py`

### On Windows:
1. Activate the environment: `venv\Scripts\activate`
2. Run: `python main.py`
The FastAPI server will run on port 5000 and WebSocket on port 8001.

## Modules
- `data_connector`: WebSocket connection to Binance.
- `signal_generator`: Technical analysis (EMA, RSI).
- `risk_manager`: Position sizing and loss limits.
- `order_executor`: Binance REST API client.
- `backtester`: Historical strategy evaluation.
- `notifier`: Telegram and Email alerts.
