Skip to content

Anmols243/crypto-price-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿช™ Real-time Crypto Price Tracker CLI A Python CLI tool to track real-time prices of cryptocurrencies using the CoinGecko API. Supports multiple coins, live price updates every 15 seconds, and CSV logging for historical data.

๐Ÿš€ Features โœ… Track multiple coins in real time (e.g., bitcoin, ethereum, dogecoin)

๐Ÿ“ˆ Get live prices every 15 seconds (safe from API rate limits)

๐Ÿ’พ Logs prices with timestamps to a local CSV file (price_log.csv)

โš ๏ธ Smart handling of invalid coin names and user typos

๐ŸŽจ Colored output using colorama for better readability

๐Ÿ› ๏ธ Easy to run via command-line with simple arguments

๐Ÿงฐ Tech Stack Python 3.10+

requests

argparse

colorama

csv

CoinGecko API (free, no auth required)

๐Ÿ“ฆ Installation

git clone https://github.com/yourusername/crypto-price-tracker.git cd crypto-price-tracker pip install -r requirements.txt

๐Ÿ› ๏ธ Usage python tracker.py -c bitcoin ethereum dogecoin

Flag Description
-c or --coin List of coins to track (required)
-cur or --currency Fiat currency (default: usd)

๐Ÿ“ Sample CSV Output timestamp,coin,price 2025-07-21 14:32:10,bitcoin,66230.34 2025-07-21 14:32:10,ethereum,3412.21

๐Ÿง  Learning Objectives This project was built to strengthen:

API consumption with error handling

Real-world CLI tool development using argparse

Writing logs and data persistence using csv

Clean, maintainable scripting practices

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages