CryptPredict is a Python project that aims to predict cryptocurrency prices using linear regression. The project utilizes the Binance exchange API to fetch historical price data, prepares the data for model training, and employs a linear regression model to make predictions for future prices.
-
Clone the repository:
git clone https://github.com/Real0x0a1/CryptPredict.git cd CryptPredict
-
Install dependencies:
pip3 install -r requirements.txt
-
Ensure you have a Binance API key and secret. Update the
ccxt.binance()
initialization in the code with your credentials. -
Run the script:
python3 CryptPredict.py
-
View the predicted prices for the specified cryptocurrency in the console.
- Adjust the
symbol
variable to the cryptocurrency pair you want to predict (e.g., 'BTC/USDT'). - Modify the
start_date
variable to set the beginning of the historical data. - Customize the number of
future_days
for the prediction horizon.
- ccxt: A cryptocurrency trading library providing unified APIs across various exchanges.
- numpy: A library for numerical computations in Python.
- scikit-learn: A machine learning library for simple and efficient tools for data analysis.
Contributions are welcome! Feel free to open issues or submit pull requests to enhance the project.
- Ali (Real0x0a1)
This project is licensed under the MIT License - see the LICENSE file for details.