A simple web app built with Streamlit to download historical cryptocurrency k-line (candlestick) data from KuCoin and export it to a formatted Excel file.
- KuCoin-Specific Data Fetching: Designed to work seamlessly with the KuCoin API.
- Date Range Selection: Easily specify start and end dates to fetch historical data for any period.
- Progress Bar: Visual feedback during data download, especially useful for large date ranges.
- Exports to Excel: Downloads data into a well-formatted
.xlsxfile. - Easy-to-use UI: Intuitive interface to select trading pair, time interval, and date range.
Follow these steps to run the app locally.
# Clone the repository
git clone https://github.com/your-username/crypto-excel-export.git
cd crypto-excel-export
# Install dependencies
pip install -r requirements.txtstreamlit run streamlit_app.pyNavigate to http://localhost:8501 in your browser.
This app can fetch public K-line data without API keys. However, providing your KuCoin API Key, Secret, and Passphrase will allow for higher rate limits and access to private endpoints if you extend the application.
- Copy
.env.exampleto a new file named.env. - Add your
KUCOIN_API_KEY,KUCOIN_API_SECRET, andKUCOIN_API_PASSPHRASEto the.envfile.
This project is licensed under the MIT License.