We're selectively onboarding design partners to refine this with us.
Base URLhttps://api.example.discrete.markets/v1
Concepts
Events represent real-world outcomes (e.g., "2024 Presidential Election"). Markets are tradeable contracts within events (e.g., "Trump wins Republican primary"). Events may exist on multiple venues with different tickers — Discrete normalizes and maps these markets into a unified representation.
Core APIs
Positions
GET /positions
Unified view of all positions across Kalshi + Polymarket. Returns exposure, P&L, current prices per position and aggregated by venue.
Orders
POST /orders
Submit order with smart routing (best price, lowest fee, or specific venue). Includes configurable pre-trade checks (e.g., liquidity, limits, policy).
GET /orders
List open and filled orders.
GET /orders/{order_id}
Single order status.
DELETE /orders/{order_id}
Cancel order.
Order Book
GET /events/{event_id}/orderbook
Aggregated order book across venues. Shows depth by venue at each price level.
Market Discovery
Search & Filter
GET /markets
List markets with filters: category, min liquidity, min volume, tradability score, settlement date range.
GET /markets/{market_id}
Single market details including current price, volume, and venue availability.
GET /markets/categories
List categories with market counts.
GET /markets/trending
Markets ranked by volume and price change.
GET /markets/settling
Markets settling soon.
Events
GET /events
List events with cross-venue mappings (Kalshi ticker ↔ Polymarket slug).
GET /events/{event_id}
Single event with all venue-specific details and child markets.