# Clone repository
git clone https://github.com/echo17666/CoinbaseTradeTracker.git
cd CoinbaseTradeTracker
# Create environment
conda create -n trade python=3.12 -y
conda activate trade
# Install dependencies
pip install -r requirements.txt
# Add your API credentials to .env file
echo "COINBASE_API_KEY=your_key_here" > .env
echo "COINBASE_API_SECRET_KEY=your_secret_key_here" >> .env# Fetch all trades
python get_filled_history.py
# Calculate profit
python calculate_profit_history.py
# Generate 30 days of historical data
python generate_daily_history.py
# Create charts
python visualize_profit_history.py# macOS
./setup_auto_update.sh
# Linux - add to crontab
crontab -e
# Add: 0 0 * * * cd /path/to/CoinbaseTradeTracker && /path/to/python daily_update.pypython daily_update.pyopen charts/total_daily_profit.png
open charts/daily_profit_all_coins.pngtail -f logs/daily_update_*.logcharts/- All generated visualizationsprofit_history/- Daily profit snapshotstrade_history/- Raw trade data from Coinbaselogs/- Update logs
No trades showing up?
- Check your
.envfile has correct API credentials - Verify your Coinbase account has trade history
Charts not generating?
- Run
python generate_daily_history.pyfirst - Check
profit_history/folder has data files
Auto-update not working?
- macOS:
launchctl list | grep coinbase - Check logs in
logs/directory
# Full update cycle
python get_filled_history.py && \
python calculate_profit_history.py && \
python generate_daily_history.py && \
python visualize_profit_history.py
# Or use the automated script
python daily_update.pyFor detailed documentation, see README.md