Skip to content

feat(v0.2): live ticks, paper trading, alerts, command palette, cracks, equities, geopolitics, weather#2

Open
dpk-jr wants to merge 1 commit into
mainfrom
feat/oil-dashboard-v2
Open

feat(v0.2): live ticks, paper trading, alerts, command palette, cracks, equities, geopolitics, weather#2
dpk-jr wants to merge 1 commit into
mainfrom
feat/oil-dashboard-v2

Conversation

@dpk-jr

@dpk-jr dpk-jr commented May 12, 2026

Copy link
Copy Markdown
Owner

This pull request was generated by @kiro-agent 👻

Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent


What's new in v0.2

Bugs fixed (v0.1 review pass)

  • OrderBook grouping buttons now actually change the ladder (were ignored).
  • MarketSentiment MA rows no longer always say "Above price"; derived live from closes.
  • StatsCards dropped hardcoded $82.45 price and the nonsensical progress formula.
  • SupplyDemand balance bar renders on both sides of the midpoint (was translating off-screen in deficit).
  • News links point at real sources and open in new tabs (was href="#").
  • Header nav buttons are click-able with local active state.
  • Price chart dropped the Math.max(30, …) clamp that broke NG/RBOB, and the barrel-only volume axis.
  • Removed stale MID constants leaking into OrderBook and RecentTrades.

New widgets

  • MarketSelector — per-instrument switcher with watchlist stars
  • CommandPaletteCmd/Ctrl+K, fuzzy search across markets, news, and actions
  • PriceAlerts — above/below rules, crossing detection, header badge
  • PaperTrading — order ticket, avg-price / realized / unrealized P&L, order history
  • CrackSpread — WTI 3-2-1, Brent 3-2-1, Gasoil, Jet, HSFO
  • EquityHeatmap — 18 energy names across 5 sectors
  • RefinedProducts — RBOB / HO / NG quick switcher
  • GeopoliticsMap — stylized SVG map with risk pins + sorted risk list
  • GulfWeather — active storms + shut-in oil/gas %

Infrastructure

  • MarketProvider store (instrument, timeframe, live toggle, priceMap, watchlist, alerts, paper trading), persisted via localStorage.
  • Live ticking engine (single interval, walks every instrument).
  • Indicators lib (SMA / EMA / RSI / Bollinger / VWAP).
  • PriceChart rewrite: ComposedChart, SMA 20/50 + Bollinger toggle, pause/resume, CSV export.
  • Liquidity imbalance bar under the order book.

Tested

  • Static audit: no React. namespace without import, no any, no dead imports, noUnusedLocals/Parameters clean.
  • Could not run npm install / build in the sandbox (registry blocked — INTEGRATIONS_ONLY network mode). Please run npm install && npm run build locally to confirm — paste any error and I'll fix it.

Not in scope

  • Real data adapters — still fully mocked, deterministic seed per instrument/timeframe.
  • Candlestick chart with drawing tools — noted in Roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant