I'll start by exploring the current project structure and researching working real-time APIs for gold/forex in parallel.
Let me look at the existing project files to see what's currently there, and research free real-time gold/forex APIs in parallel.
The project is essentially a blank starter — so I'll build the full live markets dashboard from scratch. First, let me verify the exact response shape of the free gold API and check the remaining base files.
The free gold-api.com returns real-time spot data ("a few seconds ago"), no key needed. Confirmed plan:
- Crypto + live FX pairs: Binance public WebSocket streams (
@miniTicker, 1s ticks) + REST (24h tickers, klines) — fully CORS-open, no key
- Gold/Silver/Platinum/Palladium/Copper:
api.gold-api.com real-time spot, polled
- Forex majors: live EUR/GBP/TRY/BRL/ZAR via Binance fiat pairs + Frankfurter (ECB) for the rest with real 30-day history
Let me install the icon library and create the base files.
Now I'll create the core styling, types, and formatting utilities.
Now the core market engine — Binance WebSocket + REST, gold-api.com polling, and Frankfurter ECB reference data, all unified in one reactive store.
Now the shared UI primitives and the sparkline component.
Now the header with live feed status and the scrolling ticker tape.
Now the centerpiece — the hero board with an interactive canvas chart, big live price, and stats.
Now the asset grids — crypto cards, metals cards, and forex tiles.
Small cleanup needed — removing the unused import, adding the shimmer utility class, and building the main App composition.
Now the main App component that boots the engine and composes everything.
Let me verify main.tsx and then build the project.
Building to catch any TypeScript or bundling issues.
The build passes, but I've spotted a critical React issue: getSnapshot returns a fresh object on every call, which breaks useSyncExternalStore's caching and causes re-render loops. Let me fix it with a properly cached snapshot.
Now update commit() to refresh the cached snapshot before notifying listeners.
Let me also batch WebSocket-driven commits per animation frame so 15 ticks/sec don't each trigger a full subscriber re-render, then rebuild.
Final build to confirm everything is clean.
Build succeeded. I researched the APIs first, verified they actually respond, then rebuilt the app into PULSAR — a live markets terminal running on three keyless, CORS-open, real APIs:
Data sources (all verified working, no API keys, no mock data)
- Binance public API — 24h ticker REST seed, 30m klines for real chart history, and a combined WebSocket (
@miniTicker) pushing sub-second ticks for 10 cryptos plus fiat books
- gold-api.com (
api.gold-api.com/price/XAU…) — live Gold, Silver, Platinum, Palladium spot + Copper, polled every 8s
- Forex, hybrid: EUR/USD, GBP/USD, USD/TRY, USD/BRL, USD/ZAR stream live via Binance fiat pairs (inverse-converted); JPY, CHF, AUD, CAD, NZD, CNY, INR, SEK use Frankfurter/ECB with a real 30-day history chart and day-over-day change. If a live fiat stream goes quiet, it auto-falls back to the ECB fix
The terminal itself
- Scrolling ticker tape, UTC clock, and live feed-health chips (BINANCE WS / METALS SPOT / FX REF) with reconnect + staleness watchdog
- Hero board: huge flashing price, 24h high/low/volume stats, tick counter, and an interactive canvas chart with crosshair + tooltip — click any card anywhere to focus it
- Crypto/metals/forex grids with per-tick green/red flash animations, sparklines (real klines / session trace / ECB history), and LIVE vs ECB badges
- Dark precision-engineering aesthetic: Space Grotesk + IBM Plex Mono, tabular numerals, grid atmosphere, staggered reveals
- Engine is resilient: WS auto-reconnect with backoff, rAF-batched renders, and graceful STALE/DOWN states instead of blank screens
Files built: index.html, src/index.css, src/lib/types.ts, src/lib/format.ts, src/lib/market-engine.ts, src/components/ui.tsx, src/components/Sparkline.tsx, src/components/Header.tsx, src/components/TickerTape.tsx, src/components/HeroBoard.tsx, src/components/MarketGrids.tsx, src/App.tsx