A platform that tracks all of crypto prices in real time.
This is the next coinmarketcap.
- Fetches latest prices for cryptocurrencies (BTC, ETH, XRP) from CoinMarketCap.
- Provides a basic frontend to display fetched data.
Before running the application, make sure you have:
- Python 3 installed
- API key from CoinMarketCap (stored in a .env file, see below)
-
Clone the repository:
git clone https://github.com/ocryptocode/crypto-price-tracker
cd
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
Create a .env file in the root directory and add your CoinMarketCap API key:
COINMARKETCAP_API_KEY=your_api_key_here
To run the application, use the following command:
python app.py
The application will start on http://localhost:5001/.
/api/prices: Fetches latest cryptocurrency prices from CoinMarketCap. Frontend The frontend is served from the static directory and can be accessed at http://localhost:5001/.
If you encounter issues fetching data, check your API key and ensure the Flask server is running correctly.
Feel free to contribute by submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.