🔄 FORCE REBUILD: Hugging Face was building old commit 90543d6 instead of latest 86aebf5
This commit ensures HF picks up:
✅ Enhanced comprehensive logging for debugging deployment issues
✅ Fixed Reddit search (finding 30+ posts instead of 0)
✅ Improved sentiment analysis integration
✅ Better error handling and performance timing
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive logging for debugging Hugging Face deployment
🔍 Enhanced Logging Features:
- Added detailed startup logging with timestamps and component initialization
- Comprehensive sentiment analysis logging with timing information
- Step-by-step progress tracking for each stock analysis
- Error handling with detailed tracebacks and error types
- Performance timing for Reddit/Google News searches
- Sample content logging for debugging data quality
📊 Startup Logging:
- Python version and working directory info
- Alpaca client initialization status
- Sentiment analyzer (VADER/TextBlob) initialization
- Dashboard creation and event handler setup
🧠 Sentiment Analysis Logging:
- Individual stock analysis progress with timing
- News source breakdown (Reddit posts vs Google News articles)
- Sample titles from each source for verification
- Prediction results with confidence levels
- Detailed error handling for failed analyses
⚡ Performance Tracking:
- Time spent on Reddit searches vs Google News
- Total analysis time per stock
- Overall table …
Integrate sentiment analysis directly into Investment Performance table
🔬 Major Enhancement:
- Removed separate backtesting tab - sentiment analysis now runs automatically for each stock
- Enhanced Reddit search with multiple subreddits (wallstreetbets, stocks, investing)
- Added multiple search terms per symbol (RDDT, RDDT stock, RDDT IPO, $RDDT)
- Improved duplicate filtering and relevance checking
- Added enhanced logging for better debugging
💰 Investment Performance Updates:
- Added "Sentiment" column showing bullish/bearish/neutral predictions
- Added "Predicted" column showing predicted percentage change
- Auto-runs sentiment analysis for every stock in portfolio
- Uses news from 12 hours before actual investment time
- Visual indicators: 🚀 Bullish, 📉 Bearish, 😐 Neutral
🧠 Reddit Search Improvements:
- Fixed Reddit API returning 0 posts issue
- Now searches 3 subreddits x 4 search terms = 12 searches per symbol
- Better filtering to only include posts that actually mention the symbol
- Duplicate removal based on post titles
- Enhanced error ha…
Add IPO Sentiment Analysis Backtesting to Dashboard
🔬 New Features:
- Added comprehensive backtesting tab to analyze sentiment predictions on actual IPO investments
- Multi-source sentiment analysis using Reddit (WSB) + Google News
- Historical validation with 12-hour pre-investment analysis window
- VADER + TextBlob sentiment engines with engagement weighting
- Direction accuracy tracking and prediction error metrics
📊 Technical Implementation:
- Integrated trading history analysis with Alpaca API
- Added yfinance for actual stock performance data
- Reddit API integration including WallStreetBets sentiment
- Google News RSS feed analysis for broader market sentiment
- No data leakage - uses only historical news from before investment time
🎯 Dashboard Updates:
- New "🔬 Backtesting" tab with interactive results table
- Real-time backtesting execution with progress tracking
- Comprehensive methodology explanation for transparency
- Updated README with detailed feature documentation
- Added required dependencies: textblob, vaderSenti…
- Added logging to see actual date values being generated
- Refactored to reuse first_buy_order for consistency
- Investigating why dates might appear truncated
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add Date column and sort Investment Performance table by date
- Added Date column on the right showing first buy date (YYYY-MM-DD format)
- Sort table by date with most recent trades first
- Captures first buy date for each symbol from order history
- Maintains all existing styling and functionality
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Removed demo.load line that referenced deleted positions_table
- Fixed investment performance demo.load to use HTML function
- Application should now start without errors
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Removed 🏦 Current Positions tab since user is never awake during market hours
- Cleaned up associated event handlers and UI components
- Simplified dashboard to focus on IPO discoveries, investment performance, VM terminal, and logs
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive trading statistics and analysis buttons
- Green up arrows (▲) for profits - correctly colored green now\!
- Red down arrows (▼) for losses
- Made arrows 1.4x bigger (font-size: 1.4em)
- Fixed arrow color logic to match profit/loss correctly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add stunning row styling and arrow indicators to Investment Performance table
- Added transparent green/red row backgrounds based on profit/loss
- Replaced +/- symbols with up/down arrow indicators (🔺/🔻)
- Added rounded corners and modern styling to table
- Converted from Dataframe to HTML component for full styling control
- Each row now has visual color coding: green for profits, red for losses
- Enhanced visual impact with gradient headers and hover effects
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added Sell Price column showing average sell price when positions were sold
- Removed Current Price, Quantity, and Current Value columns for cleaner view
- Streamlined table to focus on key trading metrics: Symbol, Status, IPO/Buy/Sell prices, Investment amount, and P&L
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix Investment Performance table to show all trading symbols
- Modified refresh_investment_performance_table() to process ALL symbols from order history
- No longer limited to just IPOs marked as "INVESTED" in VM data
- Now shows comprehensive trading performance for EGG, SLDE, MENS, and all other traded symbols
- Maintains IPO price lookup when available for reference
- Sorts symbols alphabetically for better organization
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix terminal color rendering: remove HTML escaping
- Removed html.escape() call that was converting <span> tags to <span> text
- Terminal colors should now render properly instead of showing raw HTML tags
- colorize_output() function already creates safe HTML spans
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix Investment Performance: use working order history method
- Changed get_order_history() to use Method 2 (1 year, closed status) which returns 91 orders
- Updated debug to show current method being used by Investment Performance table
- Should now display actual trading data instead of empty table
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added Investment Performance tab with P&L analysis for invested IPOs
- Added VM Terminal tab with command execution and color-coded output
- Added comprehensive debug functions for troubleshooting order history
- Fixed OrderStatus enum validation error by using string "closed" instead of enum
- Added terminal with newest-commands-at-top approach and proper formatting
- Enhanced dashboard with 6 tabs: Portfolio, IPO Discoveries, Positions, Investment Performance, VM Terminal, System Logs
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>