Spaces:
Sleeping
Sleeping
Commit History
-
Upgrade AI advisor with agentic tool-use and portfolio context injection
- Add Groq function-calling tools: get_stock_analysis, get_macro_dashboard, get_news_sentiment, run_screener with multi-turn tool loop (MAX_TOOL_ROUNDS=3) - Inject user portfolio holdings and watchlist into system prompt for personalised advice - Inject live market intelligence, macro regime, and news sentiment as context - Add PortfolioHoldingContext and WatchlistItemContext Pydantic schemas - Frontend fetches portfolio + watchlist on mount and passes to every chat request - 30-message conversation history window with typed ChatHistoryMessage schema3018093
-
Refactor backend architecture, add MLOps dashboard, and optimise performance
Backend restructuring: - Split 1560-line analytics.py into focused modules: universe, market_data, technical, risk, ml/classifier, ml/clustering, portfolio_optimizer, portfolio_backtester - Centralised CacheManager singleton (core/cache.py) replacing 6+ scattered local cache dicts across services - Added data repository layer (data/stock_repository.py, macro_repository.py) to consolidate all Supabase I/O - Added custom exception hierarchy (core/errors.py) Performance optimisations: - RF classifier PKL persistence: 500 models train once per day, load from disk on subsequent calls (ml/model_store.py) - ML regression bundle PKL: RF+Ridge+GBM trained once per day per symbol/horizon, inference-only on cache hits - Single-flight lock on analytics report build prevents N concurrent rebuilds - GZip middleware added (85% compression on large responses) - portfolio.py async functions now use asyncio.to_thread() — no longer blocks FastAPI event loop on Supabase calls - portfolio.py…500bec8
-
Add ML regression predictor with full model evaluations (RF, Ridge, GBM)
- New service: ml_regression.py — trains RF Regressor, Ridge, and Gradient Boosting on technical indicators, computes MAE/RMSE/R²/directional accuracy/5-fold CV MAE per model, ensemble prediction with 80% CI - New schema: schemas/ml_regression.py - New route: GET /advanced/ml-prediction/{symbol}?horizon=30 - New page: MLPrediction.tsx — per-model eval cards, feature importance bar chart, radar comparison chart - Wired into App.tsx, Layout.tsx, client.ts, types/index.tsc34cf1f -
Add all features: new pages, services, backend routes, and deployment config
813fbb2
-
Initial commit
Auto Trader Dev17da819