Prediction Market & Blink for Memecoins
Predict the price trend of meme coins over different timeframes using Rust!
This project demonstrates how to fetch data from the CoinGecko API, predict the price trends of meme coins, and interactively select coins and timeframes for prediction.
- Fetches live data of meme coins from CoinGecko API.
- Predicts price trends over timeframes ranging from 24 hours to 1 year.
- Allows user interaction to select coins based on symbol input.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/solana-meme-prediction.git cd solana-meme-prediction
-
Install Rust (if not already installed):
Follow the instructions on rust-lang.org to install Rust and Cargo.
-
Install dependencies:
Ensure you have
cargo
installed. Navigate to the project directory and run:cargo build
-
Run the project:
cargo run
-
Input your selection:
Follow the prompts to select a meme coin by its symbol and observe the price predictions over different timeframes.
reqwest
: For making HTTP requests to the CoinGecko API.serde
: For serializing and deserializing JSON data.rand
: For generating random selections of meme coins.tokio
: Provides async runtime for handling async operations.
-
Select a meme coin:
Enter the symbol of the meme coin when prompted. For example, enter
DOGE
for Dogecoin. -
View predictions:
The program will predict the price trend of the selected meme coin over various timeframes (24 hours, 1 week, 1 month, 6 months, 1 year).
-
Interpret the results:
Based on the predictions (
true
for price increase,false
for price decrease), analyze the future price trends of the selected meme coin.
Contributions are welcome! Feel free to open issues or pull requests for any improvements or features you'd like to see in this project.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/new-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/new-feature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.