Spaces:
Sleeping
Sleeping
Commit History
-
Fix AI advisor markdown rendering: heading hierarchy + system prompt
- Redesign CSS heading sizes so h2/h3 are visually distinct from body text (h3 was rendering at 13.3px, smaller than 14px body — unreadable hierarchy) - Make ### sub-headings render as uppercase micro-labels (violet, tracked) - Strengthen system prompt: add explicit ### guidance and mandatory blank-line rule around tables/headings (missing blank lines broke GFM table parsing) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b812d80
-
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
-
Rebuild ML regression with robust OHLC-aware financial models
Feature engineering: - 10 new OHLC microstructure features: intraday range (hl_pct), candle body, upper/lower wicks, overnight gap, 52-week hi/lo distance, Williams %R, Donchian channel position — captures structure that close-only indicators miss - log_vol_20d replaces vol_20d (log-vol is more normally distributed) - Tree models use 20 OHLC+base features with max_features='sqrt' for decorrelated ensemble; ElasticNet uses all 32 features with regularisation Target construction: - Vol-adjusted log return target: log(fwd/close) / realised_vol removes heteroscedasticity across different volatility regimes - Rolling trend deducted in vol-normalised space — more stationary than simple excess return approach Walk-forward CV: - Rolling 2-year training window replaces expanding window (recent regime is more predictive than 5-year-old data) - Proper embargo period (horizon//2 days) between train end and test start eliminates label leakage from forward-looking targets Model impr…5264cef -
Fix TypeScript tooltip formatter types in ModelHealth.tsx
e5cc00d -
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
-
Make PaisaPro logo clickable to navigate to homepage
7aa7113 -
Add empty state to macro dashboard when data is unavailable
Shows a friendly message with retry button instead of a blank page when the market data provider doesn't respond.e3f687e -
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 -
Fix sector filter: align dropdown values with actual DB sector names
4b63077 -
Add all features: new pages, services, backend routes, and deployment config
813fbb2
-
Initial commit
Auto Trader Dev17da819