Projects / Stock Predictor
Stock Predictor (Marketstack + OpenAI)
Enter a stock symbol (e.g., TSLA, AAPL, GOOGL) to fetch last EOD data and get closing price estimate.
Data: Marketstack
AI: OpenAI
Type a symbol above and press Predict to see the result.
Plain-English workflow:
- 🔎 Input: You enter a stock symbol (e.g.,
TSLA). - ⬇️ Data fetch: App pulls recent EOD (end-of-day) data from Marketstack API.
- 📝 Prompt build: It writes a compact prompt + series into
prediction.txt. - 🤖 Model call: Sends that text to an AI model (OpenAI) asking for a single number (next 5 trading days closing estimate).
- 📤 Parse & show: Reads the model’s single numeric answer and displays it as the prediction.
- 📊 Context: A small sample table shows recent EOD rows for reference.
What this doesn’t do:
- ❌ No fundamentals, no news, no macro data.
- ❌ No real trading signals or risk management.
- ❌ Not a backtested strategy; it’s a toy predictor for learning.
Important: Educational demo only — not financial advice. Do not make investment decisions solely based on this prediction. Markets are volatile and the model can be wrong.
Notes: Requires environment variables
MARKETSTACK_API_KEY and OPENAI_API_KEY. API rate limits and latency may affect response times. If symbols return no data, check ticker, exchange, or your API plan.