A simple Flask application that provides an API for fetching information about meme coins, including their details and historical data.
- Fetch a list of meme coins.
- Get detailed information about a specific coin.
- Retrieve historical data for a specific coin.
- Python
- Flask
- Flask-Caching
- Requests
-
Clone the repository:
git clone https://github.com/yourusername/meme-coin-api.git cd meme-coin-api/backend
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On macOS/Linux:
source venv/bin/activate
-
On Windows:
venv\Scripts\activate
-
-
Install the required packages:
pip install -r requirements.txt
-
Start the Flask application:
python run.py
-
The application will run on
http://127.0.0.1:5001
.
- Endpoint:
/api/meme-coins
- Method:
GET
- Description: Fetch a list of meme coins.
- Endpoint:
/api/coin/<coin_id>
- Method:
GET
- Description: Fetch details for a specific coin.
- Parameters:
coin_id
: The ID of the coin.
- Endpoint:
/api/history/<coin_id>
- Method:
GET
- Description: Fetch historical data for a specific coin.
- Parameters:
coin_id
: The ID of the coin.days
: (Optional) Number of days of historical data to fetch (default is 7).
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.