Gemini 3.5 Flash · MCP · Server-Sent Events

Market Intelligence
Grounded Analysis

Three coordinated roles combine continuous crypto anomaly detection with current equity data, global crypto metrics, and ECB reference rates to generate grounded informational briefs.

Open Market Dashboard

Three-Role Architecture

Detection, coordination, and Gemini-assisted analysis remain separate responsibilities.

Anomaly Detector

Scans top 30 crypto assets every 60 s through the source adapters. Flags moves above threshold as anomalies.

Orchestrator

Coordinates agents. Manages tick schedule, state, and SSE broadcast to all connected clients.

Brief Generator

Receives a preloaded market snapshot and can request additional context through eight selected MCP tools.

10 Market Tools + system.ping

Crypto (4)

crypto.fetch_price
crypto.fetch_global
crypto.fetch_top_movers
crypto.fetch_historical

Stocks (3)

stocks.fetch_quote
stocks.search_symbol
stocks.fetch_candles

Forex (3)

forex.fetch_rate
forex.fetch_historical
forex.fetch_currencies
Gemini 3.5 Flash

Function calling allows Gemini to request additional market data when the preloaded snapshot is insufficient.

7 Market Data Providers

CoinGecko → CoinPaprika/Binance for crypto, Finnhub → Alpha Vantage → Yahoo for stocks, and ECB Frankfurter for forex.

SSE Status Streaming

Server-Sent Events publish orchestrator state and execution progress to connected dashboard clients.

Next.js 16 + TurbopackTypeScriptTailwind v4shadcn/uiRechartsGoogle GenAI SDKofetch