This repository automatically fetches and stores Bitcoin spot price history daily using GitHub Actions.
- Daily automated BTC price data collection from CoinGecko API
- CSV format with date and price columns
- GitHub Pages hosting with stable URL for latest data
- Historical data archive
- Latest data (always updated):
https://dailysatprice.com/data/latest.csv - Specific date:
https://dailysatprice.com/data/btc_spot_YYYYMMDD.csv
- Create a new GitHub repository
- Push this code to the repository
- Enable GitHub Pages:
- Go to Settings → Pages
- Source: Deploy from a branch
- Branch: main
- Folder: / (root)
- Enable GitHub Actions (should be automatic)
- The workflow will run daily at midnight UTC or can be triggered manually
Run locally:
pip install -r requirements.txt
python fetch_btc_data.pyfetch_btc_data.py- Main script to fetch BTC data.github/workflows/update_btc_data.yml- GitHub Action for daily updatesdata/- Directory containing all CSV filesindex.html- GitHub Pages entry point with redirect to latest data