Install AlpaTrade
pip (recommended)
Install from PyPI (requires Python 3.11+):
pip install alpatrade
After install, create a .env file with your API keys, then run:
alpatradeOne-line install (alternative)
curl -fsSL https://alpatrade.dev/install.sh | bash From source
```bash
git clone https://github.com/predictivelabsai/alpatrade.git ~/.alpatrade
cd ~/.alpatrade
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env # edit with your API keys
alpatrade
```
Requirements
- Python 3.11+
- PostgreSQL (for trade history)
- Alpaca paper trading account
- Massive (Polygon) API key for market data