This script analyzes AceMarketU-TV's YouTube videos to track the performance of their Bitcoin price predictions from audience polls.
- Fetches recent video streams from the channel.
- Extracts poll results (% for price increase vs. decrease) using Gemini 1.5 Flash.
- Retrieves historical BTC-USD price data from Yahoo Finance for the 24-hour period following the poll.
- Calculates the prediction success rate based on different movement thresholds (1%, 2%, 3%, 4%, 5%).
- Generates a
analiza_ace_market_btc.csvreport with the detailed analysis.
-
Clone the repository:
git clone <repository-url> cd acemarket
-
Install dependencies:
pip install -r requirements.txt
-
Configure your API Key:
- Create a
.envfile in the root directory. - Add your Gemini API key to the file:
GEMINI_API_KEY="YOUR_API_KEY_HERE"
- Create a
Run the script from the project's root directory:
python main.pyThe script will print a summary of the analysis to the console and save the full report in analiza_ace_market_btc.csv.