Spaces:
Running
Running
Commit History
6 days ago
-
Add 1M (1-month hold) timeframe to watchlist and dashboard Running
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5AI-forecast-only third horizon (~21 sessions, buy-now entry, 2.5x ATR stop) with a sqrt-time ATR band, dedicated 1M direction guardrails, a separate "1 Month picks" dashboard ranking from a no-LLM shortlist, lazy 1M cells on other picks, and a Validation tab 1M card. Fixes silent unknown-timeframe fallbacks (date window, 1W label, 3D prompt, validation deadlines, price window, self-learning token leakage). No ML 1M model; F&O and portfolio insight unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>953b4c2
16 days ago
-
NVIDIA: make poolside/laguna-xs-2.1 the primary model
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5Of 49 chat models on the key, 35 return 404 not found for account, 8 time out, 4 return empty content and only laguna-xs-2.1 answers (6/6 valid, about 2.3s). openai/gpt-oss-20b timed out 6/6, and with a ~6s per-provider window a hanging primary starved the working model. gpt-oss-20b stays as a fallback. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>8c6b062 -
LLM chain: switch off Cerebras and HuggingFace router by default
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5Both only return 402 for this account (Cerebras: card-gated trial credits gone; HuggingFace: no inference credits left), so every call to them was wasted time and a fail_streak. LLM_DISABLED_PROVIDERS (default cerebras,huggingface) removes them from the provider chain; set it to an empty string to bring them back. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>9274ccc -
F&O AI: wait out a provider's short cooldown instead of failing at once
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5When every cloud provider is rate-limited for a few seconds, the contract forecast failed immediately with ai_provider_unavailable. It now waits for the soonest cooling-down provider, capped at 10s total across attempts, and still fails fast if none will recover in time. The client timeout for contract requests goes from 60s to 75s to cover the wait. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>dbf6890 -
F&O: AI-first card, NSE-based entry price and stop/target exits, resilient first load
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5- Card: AI forecast leads; a failed-validation ML model collapses under "ML check"; ranges keep low-high with a direction marker and a Nearest/Farthest line - New contracts: a missing or lagging NSE chart no longer blocks the AI forecast; failed NSE fetches retry after 5s; frontend retries first-load quote/history/AI failures at 8s/20s/45s - Trade modal: "Use NSE Price" pre-fills a manual entry from the NSE snapshot (/api/fo/quote?snapshot=1, never executable); Live Quote option explains why it is off - Manual positions with a stop/target are auto-closed from the NSE last-traded snapshot (open market, <=5 min old, exact contract); recorded as nse_snapshot Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>4640591 -
Count trading days (not calendar days) before giving up on stale PENDING validations
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>38383a6 -
Fix INTRADAY validation for tickers Yahoo cannot serve 60d of 15m bars
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5- Pick the smallest Yahoo 15m window that reaches the target date, widening until covered - get_intraday_bars steps 60d -> 30d when Yahoo rejects the long window (recent listings) - Add POST /api/validation/reopen-expired to re-grade INTRADAY rows that expired only because their bars could not be fetched (nothing is graded without real bars) - Fix test helper namespaces (date, _watchlist_instrument_type) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>a0cbb64 -
Fix F&O AI provider-unavailable: queue for AI slot, retry with rotated provider, bounded UI retry
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5- Wait up to 8s for one of 3 AI slots instead of rejecting; report ai_busy only after the wait - Retry RuntimeError/TimeoutError provider failures once with a rotated lead provider - Frontend retries provider/busy failures at 8s/20s/45s, then falls back to minute polling Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>d7c8fde -
Add F&O history collector, snapshot-only AI outlook, candlestick contract charts
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5- Record watchlisted F&O premiums server-side (and on add) so forecasts and charts have history without a browser open; retry NSE's intermittent empty chart payload - AI forecast accepts a single observation / last-session snapshot as LOW-confidence limited history; ML keeps requiring real history - Contract chart returns 5m OHLC candles (same green/red config as equities) - Relabel 'History incomplete' as 'Collecting price history'; ML shows 'Validation failed' - Persist observed contract quotes, retry history-incomplete forecasts on the frontend Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>ea309d4
19 days ago
-
Retry transient F&O AI failures and accept irregular observed history
Verified signature59900ed -
Preserve observed history across sparse weekly F&O charts
Verified signature3a0aff2
22 days ago
-
Show last-session price and AI outlook for F&O watchlist when market is closed
Khanna, Videh Rakesh Rakesh +1: CopilotCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>55803fa
23 days ago
-
Fix F&O forecast refresh, one-minute inputs and card styling
Khanna, Videh Rakesh Rakesh7291f56
27 days ago
-
Request structured F&O AI output and supply exact option moneyness facts
Verified signature17918cd -
Publish explicit experimental F&O models and correct live quote/forecast handling
Verified signature1a03f67
-
Fix portfolio valuation and wire independent F&O targets
Khanna, Videh Rakesh RakeshUse exact-contract portfolio marks, consistent side-aware P&L and safe periodic refresh. Add newer reachable-target research and independent AI forecasts while preserving model quality and age gates.8b054f7 -
Explain portfolio card fields and fix dashboard Invested for F&O
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5- Portfolio cards: add hover descriptions (ⓘ) for Entry, Manual/Live mark, Intended Target, P&L and Lots/Quantity, tooltips on F&O badges, Fees note and Mark Price button, plus a plain-English "How to read this" line on open F&O cards (works on touch devices). - Dashboard "Invested" now includes long-option premium and futures/short-option margin, matching the Portfolio view (was ₹0.00 with only an option open). - Add separate F&O premium-model pipeline (fo_predictor, training script, fail-closed manifest, tests) and wire it into the F&O watchlist contract pick. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>6745bb7 -
Add exact-contract F&O charts and matching watchlist cells
Khanna, Videh Rakesh Rakesh92d54aa -
Fix exact-contract F&O watchlist snapshots
Khanna, Videh Rakesh Rakeshd809f52
-
Use free equity quote snapshots in the watchlist
Khanna, Videh Rakesh Rakeshae185d5 -
Fix F&O search with automatic Dhan contract discovery
Khanna, Videh Rakesh Rakesha1620df -
Add indices futures and options to watchlist search
Khanna, Videh Rakesh Rakesh25ec864
-
Add provider-independent F&O paper trading for learning
Khanna, Videh Rakesh Rakeshae7951c
-
Add Dhan live data, automatic auth and Nifty 50 top picks
Khanna, Videh Rakesh RakeshAdd read-only streaming and candles, encrypted PIN/TOTP token management, and persisted Yahoo-only fallback after two retries. Restrict dashboard picks and caches to verified Nifty 50 membership, with regression tests and setup documentation.00366c3
-
Optimize AI provider routing and website prediction latency
Khanna, Videh Rakesh Rakesh27765e2 -
Fix news fetching and reliability regressions
Khanna, Videh Rakesh Rakesh21db26a -
Fix ticker search with .NS suffix; make server-wide intraday AI refresh opt-in
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5.5Typing "RELIANCE.NS" in the watchlist add box matched nothing because universe matching is on the bare symbol; strip the .NS/.BO suffix and also match the bare symbol substring. Drop out-of-order suggestion responses. The process-wide INTRADAY AI sweep duplicated the browser's own progressive refresh and burned provider quota with nobody viewing; it now requires WATCHLIST_SERVER_AUTO_REFRESH=1. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>16844ee
-
Add restart-safe SQLite caches for watchlist, universe, and top picks
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5Watchlist prediction/price cards, the NSE universe, and Top Picks were all in-memory-only, so an app restart (or an HF Spaces container restart) forced every card back through a live Yahoo/LLM fetch before rendering anything. Persist each to SQLite so a restart bootstraps from the last completed result immediately, then refreshes stale timeframe cells progressively in the background. Top Picks startup prewarming becomes opt-in via TOP5_AUTO_PREWARM=1 to avoid an unconditional quota-heavy scan on boot; ticker search now serves the persisted universe cache immediately and refreshes it in the background instead of blocking on a remote Yahoo lookup. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>4c2ff6a
-
Improve dashboard trade actions and loading
Khanna, Videh Rakesh Rakesh4d6a2c6
-
Fix ML watchlist range refresh and improve IPO/model hygiene
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 4.6- Force ?refresh=1 on ML forced-fetches so server recomputes live_price instead of returning a 60s-cached response; ₹ targets now visibly update every 5 min during market hours - Add dedicated "🤖 ML as-of HH:MM:SS IST" timestamp on each ML row so the ML fetch time is distinct from the AI cell's "Updated" clock above it - Update % range tooltip to clarify it is session-static (daily model features from yesterday's close); ₹ range tooltip says it updates live - Raise ML hard-abort from 26 → 205 bars (matching dataset.py training floor) with a descriptive IPO/short-history error message; previously the model silently extrapolated outside its training distribution - Fix _start_intraday_refresh_scheduler docstring: "every 15 min" → "3 min" - Add SHORT-trade API tests (open, reject invalid direction, close P&L) - Bump cache buster to v=20260902d Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b85a206 -
Handle transient watchlist DB locks and cover with API tests
Khanna, Videh Rakesh Rakesh8d5fcbc
-
fix: make watchlist search and add responsive
Khanna, Videh Rakesh Rakesh314bc32
-
fix: live price AI context, top5 IST midnight reset, remove Primary Call UI
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 4.6Performance & latency fixes: - llm_client: _retry_post respects fast_fail (cuts 40s→12s per slow provider) - predictor_core: get_earnings_status() moved into I/O pool; pool drained via single concurrent.futures.wait() instead of 6 sequential result(timeout=10) calls - app.py: OHLCV warm + news pre-warm run in parallel (not serial) in single-ticker route - data_sources: fetch_live_price() bare yf.download() wrapped with 15s timeout - app.py: _WATCHLIST_PICK_AI_UNAVAILABLE_TTL 90s → 125s (outlasts Ollama 120s backoff) Prediction accuracy & correctness fixes: - ai_forecast: _MIN_SPREAD_PCT guard (INTRADAY 0.15%, 1D 0.40%, 3D 0.80%, 5D 1.20%) prevents near-zero range width when ATR power-law exponents converge at 3D/5D - predictor_core: NEUTRAL direction now sets no_trade_reason="neutral_signal" — prevents misleading Entry=Target=Price risk block on NEUTRAL calls - ai_forecast: AI prompt now shows "Price: ₹X (prev close ₹Y, today +Z%)" when live price deviates from OHLCV close; AI…4550acf
-
fix: normalize news payload shape + clearer watchlist error messages
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 4.6Guard against malformed news dicts reaching downstream fields (KeyError on 'label') with _normalize_news_payload in predictor_core. Map raw prediction errors to human-readable warnings via _classify_watchlist_warning in app.py. Contract tests cover both new helpers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0d4ead0
-
Initial deployment to Hugging Face Spaces
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 4.6- Dockerfile: Python 3.11-slim, port 7860 (HF Docker Space default) - app.py: host 0.0.0.0, PORT + SPACE_URL read from env vars - README.md: HF Space frontmatter (sdk: docker, app_port: 7860) - export_env_secrets.py: pushes .env to HF Spaces secrets via huggingface_hub - .gitignore: excludes .env, paper_trading.db, cache files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>41cc612