This project aims to analyze and predict cryptocurrency market trends using market data, sentiment analysis, and news events. It retrieves data from external APIs, processes the data, and creates datasets that can be used for visualization and training machine learning models.
These instructions will help you set up the project on your local machine for development and testing purposes.
To run this project, you need to have the following:
- Python 3.x
- API token from Polygon.io
- API token from CryptoNews API
- Clone the repository:
git clone https://github.com/your-username/cryptocurrency-market-analysis.git
- Install the required Python packages:
pip install -r requirements.txt
- Set the environment variables for API tokens:
export POLYGON_API_KEY=your_polygon_api_key
export CRYPTO_NEWS_API_TOKEN=your_cryptonews_api_token
- Retrieve market data from Polygon.io by running:
python GetOrUpdateMarketData.py
- Retrieve sentiment data from CryptoNews API by running:
python RetrieveSentiment.py
- Retrieve news events from CryptoNews API by running:
python RetrieveNewsEvents.py
- Create datasets for visualization and training machine learning models by running:
python DatasetCreator.py
The project consists of the following modules:
GetOrUpdateMarketData.py
: Retrieves market data from Polygon.io.RetrieveSentiment.py
: Retrieves sentiment data from CryptoNews API.RetrieveNewsEvents.py
: Retrieves news events from CryptoNews API.DatasetCreator.py
: Creates datasets based on market information for visualization and training machine learning models.TaCalcs.py
: A library of technical analysis functions used by the dataset creation program.tickers.csv
: A list of cryptocurrency tickers. Used as the default input for the MarketData and DatasetCreator modules.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.