How Vezta Works
High-level architecture and data flow
Vezta brings together data from multiple prediction market platforms and delivers it to you through a single, unified interface. Here is how the pieces fit together.
Data Flow
Polymarket API ──┐
├──▶ Vezta Backend ──▶ PostgreSQL Database
Kalshi API ──────┘ │
│
┌──────┴──────┐
▼ ▼
REST API WebSocket
│ │
┌─────┴─────┐ │
▼ ▼ ▼
Web App Mobile App (real-time prices,
(Next.js) (Expo) orderbook, trades)How Aggregation Works
Vezta continuously ingests market data from both Polymarket and Kalshi through their respective APIs. The backend processes this data through several stages:
1. Market Ingestion
The backend runs scheduled jobs that pull market listings, prices, order book data, and trade history from each source platform. New markets are discovered automatically and added to the Vezta database.
2. Normalization
Since Polymarket and Kalshi have different data formats, the backend normalizes everything into a consistent schema. Market titles, categories, outcomes, probabilities, and volumes are all standardized so you can compare across platforms seamlessly.
3. Real-Time Updates
Once markets are ingested, Vezta maintains live connections to both platforms. Price changes, new trades, and order book updates are streamed to the backend, which then broadcasts them to connected web and mobile clients via WebSocket channels.
4. Signal Detection
Beyond raw market data, the backend runs a signal ingestion pipeline that monitors news sources (GDELT, RSS feeds, social media) and links relevant articles to markets. A separate pipeline detects unusual trading patterns like whale movements and smart money flows.
What This Means for You
As a trader, aggregation gives you several advantages:
-
Better price discovery -- See prices from both Polymarket and Kalshi side by side. When the same event is available on both platforms, you can compare and trade where conditions are most favorable.
-
Broader market coverage -- Some markets exist only on Polymarket, others only on Kalshi. Vezta surfaces all of them in one place, so you never miss an opportunity.
-
Unified portfolio -- Instead of checking multiple platforms to see your full exposure, Vezta tracks all your positions in a single portfolio view.
-
Faster reaction time -- Real-time WebSocket updates mean you see price movements the moment they happen, across all sources simultaneously.
Vezta is non-custodial. Your funds remain on the underlying platforms (Polymarket or Kalshi). Vezta routes your trades to the correct platform and tracks the results, but never holds your assets.
Platform Components
| Component | Role |
|---|---|
| Backend API | Market ingestion, trade routing, portfolio tracking, authentication |
| PostgreSQL | Persistent storage for markets, positions, users, signals |
| Redis | Caching, real-time pub/sub, background job queues |
| Web App | Browser-based trading terminal (desktop and tablet) |
| Mobile App | Native iOS and Android app with push notifications |
| WebSocket | Real-time data delivery for prices, orderbook, and notifications |