GPT4 LangChain Stock Market Analysis Agent
Python Streamlit web app with an SQLite user login/authentication system. Application allows users to select multiple stocks, metrics, and visualizations. A Langchain pandas agent utilizing GPT-4 and customized stock-market/financial prompts is then initiated allowing the user to intelligently interact with their specified data.
Install / Use
npx skills add petermartens98/GPT4-LangChain-Stock-Market-Analysis-AgentInstalls into whichever agent you are using.
README
GPT4 LangChain Pandas Agent Stock Market Chat Bot
Description
Python Streamlit web app with an SQLite user login/authentication system. Application allows users to select multiple stocks, metrics, and visualizations. A Langchain pandas agent utilizing GPT-4 and customized stock-market/financial prompts is then initiated allowing the user to intelligently interact with their specified data.
Available Stocks
['AAPL', 'AI', 'AMZN', 'BTC-USD', 'DOW', 'ETH-USD', 'F', 'GOOGL', 'LCID', 'LYFY', 'MSFT', 'NIO', 'NVDA', 'TSL']
Available Metrics
- Adjusted Close
- Relative Returns
Available Visualizations
- Line Chart
- Area Chart
V4
V4 Improvements
- Using Sqlite3, implemented user login/authentiation system
V4 Screenshot
V3
V3 Improvements
- GPT4 Support
- ChatBot Memory of Chat implemented
- Improved prompting
- More Stock Options included
V2
V2 Improvements
- Improved organization of modularity of code
- Incorporated .env variables for OpenAI API key
- Incorporated sidebar
- Allow user to specify stock metric (adjusted closing, relative returns)
- Allow user to specify desired data visualization
- Allow user to adjust temperature of chat bot resposes
- Display Chat History
V1
Related Skills
python-debugpy
385.5kDebug Python with pdb, breakpoint(), post-mortem inspection, and debugpy remote attach.
skill-creator
385.5kCreate, edit, audit, tidy, validate, or restructure AgentSkills and SKILL.md files.
claude-opus-4-5-migration
140.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
automl-hyperparameter-optimization
40.5kAutoML and hyperparameter optimization rules for Python ML projects using Ray Tune, Optuna, PyCaret, and time-series AutoML libraries
Languages
Security Score
Audited on Oct 14, 2025
