META TERMINAL
economicsFed Rate Cut Q168¢+3.2%·cryptoBTC >$100k Apr44¢-1.8%·politicsTrump 202482¢+0.5%·technologyGPT-5 Mid 202555¢+2.1%·cryptoETH ETF Approval73¢+4.9%·economicsUS Inflation <2.5%48¢-0.7%·cryptoSolana flip ETH14¢-5.3%·politicsGov Shutdown 202539¢+1.4%·climateGlobal Temp >1.6°C31¢-0.2%·technologyApple Foldable22¢+0.8%·economicsFed Rate Cut Q168¢+3.2%·cryptoBTC >$100k Apr44¢-1.8%·politicsTrump 202482¢+0.5%·technologyGPT-5 Mid 202555¢+2.1%·cryptoETH ETF Approval73¢+4.9%·economicsUS Inflation <2.5%48¢-0.7%·cryptoSolana flip ETH14¢-5.3%·politicsGov Shutdown 202539¢+1.4%·climateGlobal Temp >1.6°C31¢-0.2%·technologyApple Foldable22¢+0.8%·
metaterminal@localhost:~type 'help' for commands
// INTRODUCTION

META TERMINAL

Cross-Market Prediction Intelligence
A unified terminal for prediction market research. Aggregates live quotes from Polymarket, Kalshi, and Manifold — then applies AI clustering, spread analysis, and smart order routing to surface edges across markets.
MARKETS TRACKED
42,384
QUOTES/HR
148,320
CLUSTERS
80
// THE PROBLEM
FRAGMENTED LIQUIDITY
Prediction markets are siloed. The same event trades at 68¢ on Polymarket, 71¢ on Kalshi, and 65¢ on Manifold — with no unified view to identify cross-venue spreads or arbitrage.
SIGNAL NOISE
Thousands of markets emit thousands of price signals every minute. Without automated anomaly detection and semantic clustering, identifying meaningful moves is impossible at scale.
ZERO INTELLIGENCE LAYER
Existing tools show raw prices but provide no AI-generated narratives, no directional consensus scoring, no cluster-level insight into which markets are semantically related.
// THE SOLUTION
A unified intelligence terminal for prediction markets

MetaTerminal ingests live quotes from all major platforms every 10 seconds, normalizes them into a unified data model, and continuously computes spreads, alerts, and embedding vectors.

The AI layer runs k-means clustering over embedded market titles to group semantically related events — revealing correlated themes invisible in raw data. On-demand gRPC calls to a Python agent generate Claude-powered narratives per market or cluster in seconds.

The trading layer routes smart orders across multiple markets, optimizing for spread savings and supporting both simulated execution and live Solana devnet broadcast mode.

// DATA FLOW
Polymarket + Kalshi + Manifold
↓ FetchConnectorQuotesJob (10s)
↓ ComputeSpreadsJob
↓ DetectAlertsJob
Ingest Queue
↓ EmbedEventJob (OpenAI)
Enrichment Queue
↓ ClusterEventsJob (k-means + PCA)
↓ AiAnalysisJob (claude via gRPC)
Analytics Queue
↓ Action Cable → Browser
Dashboard + Clusters + Insights
// AMBITION
01
PREDICTION GRAPH
Build the most comprehensive cross-market prediction intelligence graph — tracking how all liquid events relate, cluster, and move together.
02
INFORMATION EDGE
Surface arbitrage and directional edges before they close. An automated research analyst that works 24/7 across every open market.
03
SMART EXECUTION
Route capital efficiently across fragmented liquidity. Minimize spread leakage and execution cost through automated multi-leg order routing.
04
ON-CHAIN SETTLEMENT
Native Solana devnet integration today, mainnet tomorrow. Trustless settlement for prediction market positions via the MetaRouter program.
// ARCHITECTURE
System Components
Rails 8.1 Web App (Hotwire + Stimulus)
  ├── Dashboard, Clusters, Trading
  ├── Action Cable: /cable (live feed)
  └── API: /api/v1/*

Solid Queue Workers (PostgreSQL-backed)
  ├── ingest:      quote fetch + spreads
  ├── enrichment:  embeddings
  └── analytics:   clustering + AI

Python gRPC Agent (port 50052)
  ├── MarketInsightService
  ├── ClusterInsightService
  └── PricePredictionService

Data Sources
  ├── Polymarket (Gamma + CLOB API)
  ├── Kalshi (REST API)
  └── Manifold (REST API)

On-Chain
  └── Solana (devnet + mainnet)
Tech Stack
BackendRuby on Rails 8.1.2
FrontendHotwire (Turbo + Stimulus) + Tailwind
DatabasePostgreSQL + Solid Queue/Cache/Cable
AIClaude 3 (Anthropic SDK) + OpenAI Embeddings
ClusteringK-means + PCA (custom Ruby impl)
AgentPython + gRPC (Protobuf 3)
On-chainSolana + Anchor scaffold
AuthEmail/password + Solana wallet signature
InfraDocker / Kubernetes / Kamal