π pip Installation Guide¶
Difficulty: ββ Medium
Time: 10 minutes
β Prerequisites¶
- Python 3.11 or higher (Get Python)
- pip (Python package manager)
- API Keys (Twelve Data, Alpha Vantage)
π Quick Start¶
1. Verify Python Version¶
2. Install from PyPI¶
3. Verify Installation¶
βοΈ Configuration¶
1. Create Configuration Directory¶
2. Download Configuration Files¶
# Download .env template
curl -O https://raw.githubusercontent.com/XuXuClassMate/trading-assistant/main/.env.example
cp .env.example .env
# Download watchlist template
curl -O https://raw.githubusercontent.com/XuXuClassMate/trading-assistant/main/watchlist.txt.example
cp watchlist.txt.example watchlist.txt
3. Edit Configuration¶
Required API Keys:
TWELVE_DATA_API_KEY=your_key_here
ALPHA_VANTAGE_API_KEY=your_key_here
LANGUAGE=en # or 'zh' for Chinese
π― Usage¶
Interactive Mode¶
Direct Commands¶
# Trading signals
ta sig
# Support/Resistance
ta sr
# Position calculator
ta pos --symbol NVDA --price 175 --capital 10000
# All analysis
ta all
Set Environment Variables¶
# Option 1: Export before running
export TWELVE_DATA_API_KEY=your_key
export ALPHA_VANTAGE_API_KEY=your_key
ta
# Option 2: Use .env file (automatic)
cd ta-config
ta
π Command Reference¶
| Command | Shortcut | Description |
|---|---|---|
ta |
- | Start interactive mode |
ta sig |
ta signals |
Generate trading signals |
ta sr |
ta support-resistance |
Analyze support/resistance |
ta pos |
ta position |
Calculate position size |
ta alerts |
ta alert |
Manage price alerts |
ta all |
ta analyze |
Run all analysis |
ta v |
ta version |
Show version |
ta h |
ta help |
Show help |
π§ Advanced Configuration¶
Custom Configuration Path¶
Debug Mode¶
Custom Language¶
π Update¶
# Check for updates
pip list | grep openclaw-trading-assistant
# Update to latest version
pip install --upgrade openclaw-trading-assistant
# Verify update
ta --version
ποΈ Uninstall¶
β Troubleshooting¶
Python Version Error¶
# Check Python version
python3 --version
# If < 3.11, upgrade Python
# macOS: brew install python@3.11
# Ubuntu: sudo apt install python3.11
# Windows: Download from python.org
Permission Denied¶
# Install for current user only
pip install --user openclaw-trading-assistant
# Or use sudo (not recommended)
sudo pip install openclaw-trading-assistant
Command Not Found¶
# Add pip bin directory to PATH
# Find pip path
pip show -f openclaw-trading-assistant | grep Location
# Add to PATH (example for ~/.bashrc or ~/.zshrc)
export PATH=$PATH:~/.local/bin
source ~/.bashrc # or source ~/.zshrc
API Rate Limits¶
If you hit API rate limits: - Twelve Data: 800 calls/day (free tier) - Alpha Vantage: 25 calls/day (free tier)
Solutions: 1. Upgrade to paid tier 2. Reduce analysis frequency 3. Cache results locally
π Next Steps¶
- CLI Documentation - Learn all commands
- Configuration Guide - Advanced settings
- API Setup - Get your API keys