CapyTrader AI is a laid-back and fun Capybara who likes to watch the stock market from its beach house in Brazil and loves making predictions on future movements. Just give a symbol from Yahoo Finance and see what CapyTrader thinks of it. Of course, our capybara buddy doesn't offer real financial advice, and his analyses are just for fun!
- AI-powered stock analysis using OpenAI's GPT-4
- Real-time stock data fetching using yfinance
- Charming capybara mascot for a fun user experience
- Simple and intuitive web interface
-
Clone the repository:
git clone https://github.com/luuisotorres/capytrader-ai.git cd capytrader-ai
-
Install the required packages:
pip install -r requirements.txt
-
Set up the environment variables: Copy the
.env.example
file to a new file named.env
:cp .env.example .env
Open the
.env
file and replaceyour_openai_api_key_here
with your actual OpenAI API key.
-
Run the Flask application:
python app.py
-
Open your web browser and go to
http://localhost:5000
-
Enter a stock symbol (e.g., AAPL) and click "Analyze"
-
Enjoy CapyTrader's analysis!
app.py
: Main Flask applicationgpt_utils.py
: Utilities for interacting with OpenAI APIfetch_stock_data.py
: Functions for fetching and processing stock datatemplates/index.html
: HTML template for the web interfacestatic/capytrader.jpg
: CapyTrader profile picture
Luis Fernando Torres, 2024
Let's connect! 🔗
LinkedIn • Medium • Kaggle
Like my content? Feel free to Buy Me a Coffee ☕